makefile - 在 OS X Lion 中编译 64 位 FLAC/libFLAC

标签 makefile osx-lion 64-bit configure

我想在我尝试构建的应用程序中使用 libFLAC 动态库,但我不太熟悉 configuremake 参数实际上让 FLAC 进行编译。

我尝试过 CC="gcc -m64"CXX="g++ -m64"./configure 并且似乎运行良好,没有问题,但是当我运行 make,我仍然得到

[...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

有什么建议吗?

最佳答案

要使其在 Lion 上编译,请禁用汇编器优化:

% ./configure --disable-asm-optimizations

关于makefile - 在 OS X Lion 中编译 64 位 FLAC/libFLAC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8694676/

相关文章:

macos - NSView 上的光标放置在 NSTextField 上

osx-lion - 无法解析http ://localhost:8080/on Mac OSX Lion

sqlite - SQLite x86中的ExecuteQuery命令运行非常慢

windows-vista - 您会为 Windows Vista 推荐 32 位还是 64 位系统?

c++ - 在 Linux 中执行 C++ makefile 时遇到问题(在 mac 上工作正常)

ios - 在 OS X 上安装 OpenSSL 时出现架构不支持错误

java - OSX Lion 上 Java 应用程序的全屏功能

python - Win 64bit GetThreadContext 返回 zeroe'd out 寄存器,或 0x57 错误代码

安卓 JNI 生成文件 : where to set CFLAGS?

用于生成随机数的字符设备实现