找不到Carbon / Carbon.h文件,安装pygame

时间:2014-05-09 09:44:19

标签: python macos pygame macos-carbon

这是我在尝试从pygame包构建setup.py时所获得的。

running build
running build_py
running build_ext
building 'pygame.sdlmain_osx' extension
/usr/bin/gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -I/opt/X11/include -arch i386 -Ddarwin -I/Library/Frameworks/SDL.framework/Versions/Current/Headers -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/sdlmain_osx.m -o build/temp.macosx-10.6-intel-2.7/src/sdlmain_osx.o
src/sdlmain_osx.m:24:10: fatal error: 'Carbon/Carbon.h' file not found
#include <Carbon/Carbon.h>
         ^
1 error generated.
error: command '/usr/bin/gcc' failed with exit status 1

我按照这些说明操作:http://pygame.org/wiki/MacCompile

我有Carbon.framework位于Library / Frameworks /

我正在使用mac并使用python 2.7

0 个答案:

没有答案