[Fluxus] Scons and 32bits

Ted tedr56 at gmail.com
Wed Feb 15 09:49:38 PST 2012


Thanks for the advice.
I tried with

export CCFLAGS=' -arch i386 '
export LINKFLAGS=' -arch i386 '
scons

and gave me this:

Checking for C library m... no
ERROR: 'm' must be installed!

I supposed it was cause by the non 32bits racket libs
So, I compile racket with

export CPPFLAGS=' -m32 '
export LDFLAGS=' -m32 '
./configure --enable-shared --prefix=/usr/local/racket-5.1.1_32
make
sudo make install

and seemed to work

but when I come in fluxus, it seems to have difficulties to find my 32bits racket,
even with

PATH=$PATH:/usr/local/racket-5.1.1_32/
PATH=$PATH:/usr/local/racket-5.1.1_32/bin
PATH=$PATH:/usr/local/racket-5.1.1_32/lib/
scons RacketPrefix=/usr/local/racket-5.1.1_32 ADDONS=0

it don't pass the 'm' library test.
With some terminal restart, sometimes it pass.
But it stop when the linker come and I get 

g++ -o modules/fluxus-audio/fluxus-audio_ss.so -rdynamic -shared modules/fluxus-audio/src/FluxusAudio.os modules/fluxus-audio/src/AudioCollector.os modules/fluxus-audio/src/JackClient.os /usr/local/racket-5.1.1_32/lib/racket/mzdyn3m.o -L/usr/local/racket-5.1.1_32/lib/racket -L/usr/local/racket-5.1.1_32/lib -L/usr/lib -Llibfluxus -ljack -lfftw3 -lsndfile
/usr/bin/ld: i386 architecture of input file `/usr/local/racket-5.1.1_32/lib/racket/mzdyn3m.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
scons: *** [modules/fluxus-audio/fluxus-audio_ss.so] Error 1

if I check the mzdyn3m.so file, I have a 32 file


file /usr/local/racket-5.1.1_32/lib/racket/mzdyn3m.o 
/usr/local/racket-5.1.1_32/lib/racket/mzdyn3m.o: ELF 32-bit LSB
relocatable, Intel 80386, version 1 (SYSV), not stripped


Here is my travel in the compilation quest.
If someone have a idea on something I missed or didn't make right...

Tanks.

Ted 


> hi Ted,
> 
> ffgl 64-bit is on my todo list for a long time.
> compiling fluxus in 32-bit is done in osx. if you check the SConstruct 
> file for i386, you will find it. basically you just have to pass '-arch 
> i386' for the compiler and the linker.
> 
> best,
> gabor



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20120215/2b934c66/attachment-0001.html>


More information about the Fluxus mailing list