我看了这个编译办法,http://bbs.osgchina.org/viewthread.php?tid=5243&highlight=%B1%E0%D2%EB
开始编译,运行到第7步正常,第八步没有出现
7.
点击Configure. 弹出编译器选项, 选择Visual Studio 9 2008, 点击确定. 8.
修改ACTUAL_3DPARTY_DIR这项, 指向D:\OSG\OpenSceneGraph\3rdParty. 将BUILD_OSG_WRAPPERS和BUILD_OSG_EXAMPLES都打上勾. 9.点击Configure, 第二次配置. 上方的下拉列表可以选择视图方式.
出错信息:
Check for working C compiler using: Visual Studio 9 2008
Check for working C compiler using: Visual Studio 9 2008 -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "cl" is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/wzhProj/MyOSGProj/OSGProj/OpenSceneGraph/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
Microsoft (R) Visual Studio 9.0.21022.8 °æ¡£
°æȨËùÓÐ (C) Microsoft Corp¡£±£ÁôËùÓÐȨÀû¡£
ÎÞ·¨´ò¿ª¡°D:\wzhProj\MyOSGProj\OSGProj\OpenSceneGraph\build\CMakeFiles\CMakeTmp\ALL_BUILD.vcproj¡±£¬ÒòΪ´Ë°æ±¾µÄ
此处省略一万字
²úÆ·Ìض¨µÄ¿ª¹Ø:
Òª´ÓÃüÁîÐи½¼Óµ÷ÊÔÆ÷£¬ÇëʹÓÃ:
VsJITDebugger.exe -p <pid>
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:29 (PROJECT)
Configuring incomplete, errors occurred! |