查看: 1792|回复: 0

CMake配置Osgearth时出现无法打开"pthread.h"文件

[复制链接]

该用户从未签到

发表于 2019-10-13 20:37:44 | 显示全部楼层 |阅读模式
CMake使用vs2013编译器配置Osgearth2.10.1时出现以下错误


Determining if the include file pthread.h exists failed with the following output:
Change Dir: E:/OsgCore/OSGEarth/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe cmTC_180de.vcxproj /p:Configuration=Debug /platform=Win32 /p:VisualStudioVersion=12.0 /v:m
Microsoft(R) 生成引擎版本 12.0.40629.0

[Microsoft .NET Framework 版本 4.0.30319.34209]

版权所有 (C) Microsoft Corporation。保留所有权利。



  用于 x86 的 Microsoft (R) C/C++ 优化编译器 18.00.40629 版版权所有(C) Microsoft Corporation。  保留所有权利。

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_180de.dir\Debug\\" /Fd"cmTC_180de.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue E:\OsgCore\OSGEarth\CMakeFiles\CMakeTmp\CheckIncludeFile.c

  

  CheckIncludeFile.c

E:\OsgCore\OSGEarth\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: 无法打开包括文件: “pthread.h”: No such file or directory [E:\OsgCore\OSGEarth\CMakeFiles\CMakeTmp\cmTC_180de.vcxproj]


求解决方法
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表