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

Stephen F. Booth me at sbooth.org
Sun Jan 1 14:34:17 PST 2012


On my system (10.7.2, Xcode 4.2) invoking ./configure builds for 64 bit by default.  The only additional step to take is turning off assembly code:

% ./configure --disable-asm-optimizations
% make
% file src/libFLAC/.libs/libFLAC.dylib 
src/libFLAC/.libs/libFLAC.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Stephen

On Jan 1, 2012, at 4:47 PM, Raymond Edwards wrote:

> 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.
> _______________________________________________
> Flac-dev mailing list
> Flac-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/flac-dev



More information about the flac-dev mailing list