[Fluxus] fluxus macos patch

gabor papp gabor.lists at mndl.hu
Fri Nov 2 04:20:35 PDT 2007


i tried to modify the sconscripts to make fluxus compile on mac. i used
an intel macbook.

you will need the packages fluxus requires from darwinports
(http://darwinports.com/), and plt-scheme installed in /Applications/.
the current version is v371, which is installed in /Applications/PLT\
Scheme\ v371/.

use the patch in the fluxus directory

patch -p1 <fluxus-macos.patch

then type

scons
sudo scons install

i'm not sure how it is possible to make an .app bundle from the compiled
files, since files have to be installed in the scheme 'collects' location.

i could not figure out how to compile with the plt_mzscheme framework in
a way that fluxus does not require the framework in the current library
when it is run. any help would be appreciated with this. maybe it can be
put on path, or the absolute location of the framework can be stored in
the executable somehow as it is done with opengl or glut.

now i copy /Applications/PLT\ Scheme/\ v371/PLT_MzScheme.framework
to the directory i want to run fluxus from.

---

i tried to use pkg-config to get the include directories.

pltlib and pltinclude can also be submitted in the command line, because
these locations vary in different linux distributions. sometimes they
are '/usr/include/plt', '/usr/lib/plt', but they can be
'/usr/lib/plt/include', '/usr/lib/plt/lib' also.

mzscheme is compiled as a framework and not a library on mac, so it has
to be removed from the list of libraries, when compiled on mac. i only
check for the scheme.h header on mac now, because CheckLib does not work
with frameworks.

i hope i didn't break anything and it still compiles in linux. i tried
it in fedora and it worked fine.

despite the problems of the solution, i hope this will be usable for
people with macs.

gabor
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fluxus-macos.patch
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20071102/4279fc8e/attachment-0001.txt>


More information about the Fluxus mailing list