macports gcc4.7找不到pthread.h

时间:2012-10-24 19:49:29

标签: macos compilation macports ogre3d gcc4.7

我已经使用macports安装了gcc4.7并尝试构建Ogre3d 1.8。

问题是找不到pthread.h。 我在我的系统上找不到pthread.h(Mac OSX 10.6.8),我在macports上找不到pthread的任何端口。有谁知道macports的gcc47编译器是否坏了?我下载了gcc4.7编译器的源代码,zip文件包含了pthread.h。

(因为你可以在日志中读到的是系统头文件中包含的pthread.h而不是Ogre3d,所以我不能只跳过依赖项)

错误输出:

In file included from /opt/local/include/gcc47/c++//x86_64-apple-darwin10/bits/gthr.h:150:0,
                 from /opt/local/include/gcc47/c++/ext/atomicity.h:34,
                 from /opt/local/include/gcc47/c++/bits/basic_string.h:41,
                 from /opt/local/include/gcc47/c++/string:54,
                 from /Users/parwrange/Documents/Blacksun/src/blacksun/3rdPartySrc/ogre_src_v1-8-1/OgreMain/include/OgrePrerequisites.h:33,
                 from /Users/parwrange/Documents/Blacksun/src/blacksun/3rdPartySrc/ogre_src_v1-8-1/OgreMain/include/OgreArchive.h:31,
                 from /Users/parwrange/Documents/Blacksun/src/blacksun/3rdPartySrc/ogre_src_v1-8-1/OgreMain/include/OgreStableHeaders.h:41,
                 from /Users/parwrange/Documents/Blacksun/src/blacksun/3rdPartySrc/ogre_src_v1-8-1/OgreMain/src/OgreAlignedAllocator.cpp:28:
/opt/local/include/gcc47/c++//x86_64-apple-darwin10/bits/gthr-default.h:41:21: fatal error: pthread.h: No such file or directory

0 个答案:

没有答案