[Fluxus] fluxus macos patch

Jordan Benwick jb at antiflux.org
Mon Nov 5 21:35:21 PST 2007


hi,

I tried this patch today on my Tibook (PPC) with 10.3.9.

did have one minor problem with scons looking for libfluxus in /Users/libfluxus, 
which i got around with a symlink to it's real location.

But mainly I got stuck on:

g++ -o fluxus-0.14 src/GLEditor.o src/GLFileDialog.o src/Interpreter.o src/Repl.o 
src/Recorder.o src/FluxusMain.o src/PolyGlyph.o src/main.o -L/opt/local/lib 
"-L/Applications/PLT Scheme v371/lib" -L/Users/libfluxus -lpng12 -lfreetype -lz -lfftw3 
-lm -lsndfile -lm -lpthread -ldl -ljpeg -ltiff -lfreetype -lz -lpng -lode -ljack 
-lsndfile -lfftw3 -llo "-F/Applications/PLT Scheme v371/lib/" "-F/Applications/PLT Scheme 
v371/lib/" -framework GLUT -framework OpenGL -framework CoreAudio -framework PLT_MzScheme 
-framework GLUT -framework OpenGL -framework CoreAudio -framework PLT_MzScheme
ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit defined in indirectly 
referenced dynamic library /usr/lib/libobjc.A.dylib
scons: *** [fluxus-0.14] Error 1
scons: building terminated because of errors.

Hoping someone might have a fix, or can say if it's just my 10.3 (or libobjc?) bein too 
old.

thanks,
jordan


On Fri, Nov 02, 2007 at 12:20:35PM +0100, gabor papp wrote:
> 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



More information about the Fluxus mailing list