[Flac-dev] Compiling 64-bit libFLAC/libFLAC++ on OS X Lion, anyone successful?

Raymond Edwards raymond.edwards at gmail.com
Sun Jan 1 13:47:29 PST 2012


I have also asked this question on stackoverflow (http://stackoverflow.com/questions/8694676/compiling-64-bit-flac-libflac-in-os-x-lion), which you can answer if you're interested in reputation points.

I am very unfamiliar with compiling C/C++ source of this size, and I'm having trouble debugging the issue.  Basically, in the root folder of the FLAC bundle, even if I use the flags specifying 64-bit like so:

CC="gcc -m64" CXX="g++ -m64" ./configure

make still fails with the following output:

[...lots of output with seemingly no errors...]
/usr/bin/ranlib: archive member: .libs/libFLAC.a(bitreader_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) /usr/bin/ranlib: archive member: .libs/libFLAC.a(cpu_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
/usr/bin/ranlib: archive member: .libs/libFLAC.a(fixed_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
/usr/bin/ranlib: archive member: .libs/libFLAC.a(lpc_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
/usr/bin/ranlib: archive member: .libs/libFLAC.a(stream_encoder_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match)
ranlib .libs/libFLAC.a ranlib: archive member: .libs/libFLAC.a(bitreader_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
ranlib: archive member: .libs/libFLAC.a(cpu_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
ranlib: archive member: .libs/libFLAC.a(fixed_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
ranlib: archive member: .libs/libFLAC.a(lpc_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
ranlib: archive member: .libs/libFLAC.a(stream_encoder_asm.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match) 
ranlib: for architecture: x86_64 file: .libs/libFLAC.a(float.o) has no symbols
make[4]: *** [libFLAC.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any suggestions how to proceed?  I'd like to use the dynamic libraries in my 64-bit Cocoa app.


More information about the Flac-dev mailing list