查看: 2020|回复: 4

osgBullet的编译

[复制链接]

该用户从未签到

发表于 2013-1-22 12:24:05 | 显示全部楼层 |阅读模式
最近看到论坛里有用osgBullet,请问有木有知道下下来osgBullet_02_00_00和osgWorks_02_00_00该如何设置用cmake编译啊?需要一些具体的步骤?感激!!!!

该用户从未签到

发表于 2013-1-22 13:27:04 | 显示全部楼层
先编译osgWorks然后编译osgBullet即可,Cmake中设置所有所需的依赖项然后Generate出解决方案,编译出结果

该用户从未签到

 楼主| 发表于 2013-1-22 15:40:18 | 显示全部楼层
array 发表于 2013-1-22 13:27
先编译osgWorks然后编译osgBullet即可,Cmake中设置所有所需的依赖项然后Generate出解决方案,编译出结果

编译中遇到了这样的问题 QQ截图20130122153905.png
然后底下提示
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!


该怎么设置啊?

该用户从未签到

发表于 2013-1-23 09:38:19 | 显示全部楼层
您没有配置OSG的相关选项,先选中Advanced然后配置缺失的各个OSG库的路径

该用户从未签到

发表于 2014-12-24 13:54:46 | 显示全部楼层
同样遇到这样的问题,但是不知道具体的操作方法
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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