1

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

问题是找不到 pthread.h。 我在我的系统(Mac OSX 10.6.8)上的任何地方都找不到 pthread.h,而且我在 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
4

0 回答 0