|
楼主 |
发表于 2013-1-22 15:40:18
|
显示全部楼层
array 发表于 2013-1-22 13:27
先编译osgWorks然后编译osgBullet即可,Cmake中设置所有所需的依赖项然后Generate出解决方案,编译出结果
编译中遇到了这样的问题
然后底下提示
Could NOT find osgGA (missing: OSGGA_LIBRARY OSGGA_INCLUDE_DIR)
Could NOT find osgText (missing: OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)
Could NOT find osgViewer (missing: OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)
Could NOT find osgSim (missing: OSGSIM_LIBRARY OSGSIM_INCLUDE_DIR)
Could NOT find osgDB (missing: OSGDB_LIBRARY OSGDB_INCLUDE_DIR)
Could NOT find osgUtil (missing: OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR)
Could NOT find osg (missing: OSG_LIBRARY OSG_INCLUDE_DIR)
Could NOT find OpenThreads (missing: OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
CMake Error at E:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake:226 (message):
ERROR: Missing the following osg libraries: osgGA osgText osgViewer osgSim
osgDB osgUtil osg OpenThreads.
Consider using CMAKE_PREFIX_PATH or the OSG_DIR environment variable. See
the E:/Program Files/CMake
2.8/share/cmake-2.8/Modules/FindOpenSceneGraph.cmake for more details.
Call Stack (most recent call first):
CMakeModules/FindOSGHelper.cmake:125 (find_package)
CMakeLists.txt:41 (include)
Configuring incomplete, errors occurred!
该怎么设置啊? |
|