关于#include文件的Mac OS X上的SCons-Compiler错误

时间:2011-01-24 13:11:21

标签: xcode macos makefile scons

我正在尝试在Mac OS X 10.6.6 Snow Leopard上编译Geekinfo。我的配置是:

  • 支持OSX 10.4的Xcode 3.2
  • Python 2.71
  • SCons 2.01。

我也安装了Xcode 2.5。

我签出了最新的svn存储库

然后我在同一目录中运行 scons 。它应该已经编译了库(正如我以前在使用MSVC 2008的Windows XP中成功完成的那样)但是我得到的输出(在OSX中)是:

scons: Reading SConscript files ...

scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "/Users/muhammadumar/Desktop/gk/SConstruct", line 14, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build.x86_32
o build.x86_32/src/geekinfo.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/geekinfo.cpp
sh: o: command not found
o build.x86_32/src/basesystem.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/basesystem.cpp
sh: o: command not found
o build.x86_32/src/smbios.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/smbios.cpp
sh: o: command not found
o build.x86_32/src/system_old.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/system_old.cpp
sh: o: command not found
o build.x86_32/src/x86processor.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/x86processor.cpp
sh: o: command not found
o build.x86_32/src/glcontext.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/glcontext.cpp
sh: o: command not found
o build.x86_32/src/gpu.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/gpu.cpp
sh: o: command not found
o build.x86_32/src/Memory.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/Memory.cpp
sh: o: command not found
o build.x86_32/src/Motherboard.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/Motherboard.cpp
sh: o: command not found
o build.x86_32/src/OperatingSystem.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/OperatingSystem.cpp
sh: o: command not found
o build.x86_32/src/Processor.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/Processor.cpp
sh: o: command not found
o build.x86_32/src/System.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/System.cpp
sh: o: command not found
o build.x86_32/src/macosxsystem.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/macosxsystem.cpp
sh: o: command not found
o build.x86_32/src/macosxmodel.o -c -Wall -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -fasm-blocks -msse3 -O2 -arch i386 -Ibuild.x86_32/include -Iinclude -Ibuild.x86_32/include -Iinclude src/macosxmodel.cpp
sh: o: command not found
ar rc build.x86_32/libgeekinfo.a build.x86_32/src/basesystem.o build.x86_32/src/smbios.o build.x86_32/src/system_old.o build.x86_32/src/x86processor.o build.x86_32/src/glcontext.o build.x86_32/src/gpu.o build.x86_32/src/Memory.o build.x86_32/src/Motherboard.o build.x86_32/src/OperatingSystem.o build.x86_32/src/Processor.o build.x86_32/src/System.o build.x86_32/src/macosxsystem.o build.x86_32/src/macosxmodel.o
ar: build.x86_32/src/basesystem.o: No such file or directory
ar: build.x86_32/src/smbios.o: No such file or directory
ar: build.x86_32/src/system_old.o: No such file or directory
ar: build.x86_32/src/x86processor.o: No such file or directory
ar: build.x86_32/src/glcontext.o: No such file or directory
ar: build.x86_32/src/gpu.o: No such file or directory
ar: build.x86_32/src/Memory.o: No such file or directory
ar: build.x86_32/src/Motherboard.o: No such file or directory
ar: build.x86_32/src/OperatingSystem.o: No such file or directory
ar: build.x86_32/src/Processor.o: No such file or directory
ar: build.x86_32/src/System.o: No such file or directory
ar: build.x86_32/src/macosxsystem.o: No such file or directory
ar: build.x86_32/src/macosxmodel.o: No such file or directory
scons: *** [build.x86_32/libgeekinfo.a] Error 1
scons: building terminated because of errors.

我无法理解上述内容所以请帮助我,或者请向我提供geekinfo二进制文件。

2 个答案:

答案 0 :(得分:1)

如果是make,则问题是“CC”宏被定义为空。该命令看起来像'$(CC)-o ...',而' - '将被make解释为'忽略来自此命令的错误'。

是否有任何转换为​​SCons,我不确定,但我首先要担心编译器设置(或不设置)的内容。

答案 1 :(得分:0)

感谢您访问此帖子但我的问题已解决。 scons没用。我为库做了一个qmake配置,它编译成功。测试程序也可以。 Qt rock!