|
发表于 2013-5-19 22:50:33
|
显示全部楼层
编译osgBullet出现的问题
1、在D盘根目录下建立文件夹osgWorks、osgBullet,放置解压好的文件,分别在osgWorks、osgBullet这两个文件夹里面新建文件夹bin(放置CMAKE_INSTALL_PROFIX)、build(放置生成文件)。
2、先编译osgWorks,把CMakeLists.txt拖进CMake里面,设置CMAKE_INSTALL_PROFIX的value为D:/osgWorks/bin,但是CMAKE_LINKER得Value设成什么样呢?不知道,只好先放着(默认为MAKE_LINKER-NOTFOUND),然后把OPENTHREADS_INCLUDE_DIR等等路径设好,如下:
D:/Program Files/OSG/OpenSceneGraph/bin/include/OpenThreads
D:/Program Files/OSG/OpenSceneGraph/bin/lib/OpenThreads.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/OpenThreadsd.lib
D:/Program Files/OSG/OpenSceneGraph/bin/include/osgDB
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgDB.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgDBd.lib
D:/Program Files/OSG/OpenSceneGraph/bin/include/osgGA
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgGA.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgGAd.lib
D:/Program Files/OSG/OpenSceneGraph/bin/include/osgSim
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgSim.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgSimd.lib
D:/Program Files/OSG/OpenSceneGraph/bin/include/osgText
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgText.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgTextd.lib
D:/Program Files/OSG/OpenSceneGraph/bin/include/osgUtil
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgUtil.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgUtild.lib
D:/Program Files/OSG/OpenSceneGraph/bin/include/osgViewer
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgViewer.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgViewerd.lib
D:/Program Files/OSG/OpenSceneGraph/bin/include/osg
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osg.lib
D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgd.lib
然后configure,出现osg版本不可识别的错误,如下所示:
[ FindOpenSceneGraph.cmake:130 ] Failed to parse version number, please report this as a bug
Found osgGA: D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgGA.lib
Found osgText: D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgText.lib
Found osgViewer: D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgViewer.lib
Found osgSim: D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgSim.lib
Found osgDB: D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgDB.lib
Found osgUtil: D:/Program Files/OSG/OpenSceneGraph/bin/lib/osgUtil.lib
Found osg: D:/Program Files/OSG/OpenSceneGraph/bin/lib/osg.lib
Found OpenThreads: D:/Program Files/OSG/OpenSceneGraph/bin/lib/OpenThreads.lib
CMake Error at D:/Program Files (x86)/cmake-2.8.7-win32-x86/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:199 (message):
ERROR: Version 2.6.1 or higher of the OSG is required. Version .. was
found.
Call Stack (most recent call first):
CMakeModules/FindOSGHelper.cmake:125 (find_package)
CMakeLists.txt:41 (include)
Configuring incomplete, errors occurred!
不管它,继续generate,接着出现这样的错误:
[ FindOpenSceneGraph.cmake:130 ] Failed to parse version number, please report this as a bug
CMake Error at D:/Program Files (x86)/cmake-2.8.7-win32-x86/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:199 (message):
ERROR: Version 2.6.1 or higher of the OSG is required. Version .. was
found.
Call Stack (most recent call first):
CMakeModules/FindOSGHelper.cmake:125 (find_package)
CMakeLists.txt:41 (include)
Configuring incomplete, errors occurred!
so,现在我该怎么办呢??? |
|