美文网首页ogre我爱编程
OGRE——编译ogre源码总结

OGRE——编译ogre源码总结

作者: 长青之木 | 来源:发表于2018-04-07 13:14 被阅读56次

需要安装的软件

  • cmake
  • hg(linux上面执行:sudo apt-get install mercurial),windows安装:tortoisehg-4.2.2-x64
  • boost可选。

下载

下载依赖和源码:hg clone https://bitbucket.org/sinbad/ogre/hg clone https://bitbucket.org/cabalistic/ogredeps

编译

  1. 先用cmake生成ogre deps依赖的vs工程文件。然后用vs打开,分别选用debug和release进行编译,ALL_BUILD和INSTALL进行编译。最好将C:\OgreSDK\Dependencies\build\ogredeps加入环境变量OGRE_DEPENDENCIES_DIR。时间共30min左右。
  2. 再用cmake生成ogre源码的vs工程文件。在生成过程中,需要手工修改cmake configure之后,配置中的路径OGRE_DEPENDENCIES_DIR为:C:\OgreSDK\Dependencies\build\ogredeps。然后用vs分别用debug和release进行编译。时间共40min左右。

检验

编程ogre源码成功后,可以运行:ogre_src\build\bin\debug目录下的文件:SampleBrowser_d.exe。效果如图:

image.png image.png

参考链接

来源: http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Prerequisites
来源: http://www.ogre3d.org/tikiwiki/tiki-index.php?page=CMake+Quick+Start+Guide
http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Getting+Started+With+CMake

后续的问题

建立ogre 的tutorial工程的时候总是编译不过去。

image.png

相关文章

  • OGRE——编译ogre源码总结

    需要安装的软件 cmake hg(linux上面执行:sudo apt-get install mercurial...

  • 读《食人魔花园》

    ——Le Jardin de l' Ogre (Leïla Slimani) 食人魔: Un ogre (du l...

  • ogre3D在Mac平台的编译

    本文主要介绍如何在Mac平台下编译一份可以在iOS上运行的ogre3d引擎的sdk,OGRE简单来说就是一个图形引...

  • Build ogre3d on mac

    ogre3d wiki

  • OGRE教程(一):环境配置与安装

    配置前的注意事项 今天我们来介绍OGRE的环境配置及其详细安装过程。本文作者使用的是OGRE 1.10 + Vis...

  • ORGE

    compile ogre under ubuntu build ogredeps android http://w...

  • AT S1E22 Donny

    Synopsis When Finn and Jake see a bullying ogre named Don...

  • 配置OGRE SDK

    环境配置参考 https://blog.csdn.net/ddogyuan/article/details/795...

  • Ogre中Octree最大深度

    忽然想到之前退出的一个Ogre讨论超级群,想看看群里是否还有人分享Ogre相关技术资源(主要原因是前一段时间使用O...

  • 使用Ogre读取文件

    Ogre为我们实现了一个叫做Archive的类:文档存档类(我的理解是一个文件系统的目录,或者一个压缩包)。使用该...

网友评论

    本文标题:OGRE——编译ogre源码总结

    本文链接:https://www.haomeiwen.com/subject/cocyhftx.html