install ALUT on OSX - macos

i am interested in installing the cabal package
turing-music but i can't find the ALUT library on macports needed for the haskell binding to ALUT (http://hackage.haskell.org/package/ALUT).
Where can i find ALUT development libraries on OSX 10.6.3 so that compile the cabal package ALUT.

ALUT is not part of the OpenAL standard, so it is not included with OpenAL. Download the freealut source code and build it from source. If you want, create a Portfile and submit it to the Macports project.

Related

CMake FIND_PACKAGE finds wrong version of SQLite3 on MacOS Monterey

I need to use a new version of SQLite3 in a project built using CMake. To find external dependencies we usually use the FIND_PACKAGE() command which tends to work fine. However, FIND_PACKAGE(SQLite3) finds the very old version shipped with the OS rather than the up-to-date version provided by Homebrew. Homebrew refuses to relink to its own headers, binaries and libraries. I guess I could do that manually, but I am hesitant if Homebrew so strongly discourages it (refuses even when --force flag is given).
Any pointers on how to control where CMake looks for SQLite3 would be very appreciated.

I can't install the library gloss, in Mac OS Catalina (Haskell)

I am trying to install the Haskell gloss library, on Mac OS Catalina, but I have a lot of problems.
I download the tar.gz file from that page.
The first thing I did was follow this steps to install Haskell.
Already with cabal installed (the previous link downloads it), I used this command cabal install gloss. But report the following error:
❯ cabal install gloss
Resolving dependencies...
cabal: Cannot build the executables in the package gloss because it does not
contain any executables. Check the .cabal file for the package and make sure
that it properly declares the components that you expect.
I already did cabal update. And then again cabal install gloss, but nothing.
Then I did cabal v2-update, all okey. And cabal v2-install --lib gloss, but here the report was:

How to minimize install of Qt for using PyQt on MacOS?

I was trying to install PyQt on my MacOS. With SIP installed, an error occurred when python3 PyQt-gpl-5.4/configure.py inputted:
Error: Use the --qmake argument to explicitly specify a working Qt qmake.
It seems that Qt should be installed before PyQt. There're many optional components in the installation of Qt:
-Qt 5.4
--clang 64-bit
--source components
---Add-Ons
---Essentials
--.....
Which components should I choose for installing qmake??
qmake is the executable that is included with any version of the qt libraries; and there is a different version of qmake for each compiler the Qt Libraries are built with/against. On a mac, and for building projects that run on OSX, you will probably want clang x64. And you will find qmake under ~/Qt/5.x/clang_64/bin It will also install qt creator (I don't think you can uncheck it), but you don't need all the extras besides that.
Building with qmake often needs XCode installed and the Command Line Tools (CLT) to use its included compiler. With Python, you probably won't need the compiler, unless you need to build some of its libraries.
Hope that helps.

Porting a GTK+ App to Mac OSX

I have a GTK+ Application (ready with Autotools) which i have developed on my Linux box. Now I need to port this one to OSX.
I have successfully installed jhbuild, which in turn installed GTK+ and stuff on the Mac (10.5.8)
I just don't know what to do next. Trying to ./configure && make && make install (on my app copied to the Mac) fails since pkg-config is not installed on the Mac.
Do I really need to write a jhbuild moduleset in order to compile this app?
I need two libraries as well: libxml2 and libsoup-2.4. Will jhbuild tae care for integrating them...?!
My question now is: What is the simplest way to port a GTK+ Application to OSX and is there a tutorial or how-to on it?
I recommend installing Homebrew which is a command line package manager for mac. Once installed open terminal and run brew install pkg-config to install pkg-config then brew install gtk+ and/or brew install gtk+3 to install gtk+ 2 or 3 respectively.
After that is done you should be able to compile with your makefiles.
Are you sure that jhbuild installed GTK? Did you do
jhbuild bootstrap
jhbuild build meta-gtk-osx-bootstrap
jhbuild build meta-gtk-osx-core
as instructed on the "GTK OSX Building" page? If you did this, then pkg-config is definitely installed, because those packages wouldn't have built without it.
Are you building your application from within the jhbuild environment? i.e. did you do
jhbuild shell
before trying to build your application?
Isn't using jhbuild a bit overkill ? Wouldn't a Mac OS X GTK bundle from gtk.org be enough ? I think it provides pkg-config as the Win32 version provides it. Jhbuild is interesting if you have tons of dependencies to build, or want to build GTK yourself, but from what I understand, you just want to port a GTK application...

Where is sdl-config installed on MacOS 10.6 (Snow Leopard)

After installing SDL and SDL-devel in MacOS X 10.6 (Snow Leopard), trying to configure some source code that requires SDL yields:
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.2.0 not found!
Does anyone know where to find sdl-config? I guess I can build SDL from source, but why should I have to, when there exist pre-built packages?
you can use macports to install libsdl or libsdl-devel (v1.2 or v1.3)
http://www.macports.org/
after installing macports to install libsdl type
port install libsdl
it will install sdl-config at /opt/local/bin
I had the exact same problem.
I found out that sdl-config was installed in two locations:
/sw/bin/sdl-config
and
/opt/local/bin/sdl-config
In the one located in /sw/bin I changed the prefix to /opt/local — then it worked.
The output you're showing is from a unix style configure for automake. According to this site: http://www.libsdl.org/faq.php?action=listentries&category=7 (second and third questions) you can't use the dmg (which you showed the link for) as a unix style installation directly. See the links on the above page for a DarwinPorts or Fink installation or, indeed, you'll have to build it from source as described on the page.
To directly answer your question, you should find the libraries in /Library/Frameworks/.

Resources