以下为实践过程;

一 , Download OgreSourceCode

http://www.ogre3d.org/download/source

选择OGRE Source For Windows

二,研究BuildingOgre.txt

解压下载的Ogre 源码之后,可以在根目录下找到BuildingOgre.txt,按照BuildingOgre.txts

所介绍的开始进行compile;

三,  Getting CMake

Downfrom http://www.cmake.org,  安装cmake, 安装成功之后,可以运行cmake-gui来进行编译工作;

打开cmake-gui, 指定

Where is the source code ---- Ogre Source code 所在目录;假设为D:\Sourcecode\ogre\ogre_src

Where to build the binaries ---- 可以新建一个目录,来指定此目录,假设为

D:\Sourcecode\ogre\buildOrge

四, Gettingdependencies

下载编译Ogre需要的一些lib and dll,这里需要重点讲一下;

1,Dependencies

http://www.ogre3d.org/download/source中提供了一个DependenciesSource Repository with CMake build system 这样的一个压缩包,解压之后名为Dependencies,在其中包含了Cg, FreeImage, freeType, ois,zlib, zziplib;  将Dependencies 放在D:\Sourcecode\ogre\buildOrge

目录下,使用VS2005 编译Dependencies 所包含的所有lib;

下面来处理Dependencies中不包含的那些库文件;

2,DirectX

安装Microsoft DirectX SDK

3,POCO

http://pocoproject.org/

解压之后,运行build_vs80.cmd, 即使用VS2005编译poco

同时,在cmake-gui中,点击Add Entry, 新建一个path, 可以命名为POCO_HOME, 指向poco所在的文件夹,这样在编译的时候,可以找到poco;

4,CPPUNIT

http://sourceforge.net/projects/cppunit/files/cppunit/

加压之后,进入src, 使用VS2005 打开CppUnitLibraries.dsw, 编译整个工程;

编完之后,在cmake-gui中,点击Add Entry, 新建一个path, 可以命名为CPPUNIT_HOME, 指向cppunit所在的文件夹,这样在编译的时候,可以找到cppunit;

5, Doxygen

http://www.stack.nl/~dimitri/doxygen/download.html

download 适合windows的安装文件,进行安装;

6,Boost

http://www.boost.org/

download适合windows的zip or 7z;

直接运行bootstrap.bat, 会由于Path的缘故而fail, 所以直接打开 开始-程序-Microsoft Visual Studio 2005-Visual Studio Tools – Visual Stual2005 命令提示, 这个VS2005就为我们设定好了相应的path,执行ootstrap.bat;

运行bootstrap.bat成功,将得到bjam.exe, 直接双击运行bjam.exe会出现很多error, 找不到相关文件之类的,可以通过增加path来解决,同样为了方便,进入Visual Stual2005 命令提示,转到bjam.exe 所在目录,

运行

bjam --toolset=msvc-8.0 --build-type=complete --layout=versioned

(bjam --toolset=msvc-8.0 --without-python --build-type=complete  link=shared  threading=multi install)

toolset 选项指定编译器,VS2005指定为msvc-8.0

build-type 选项指定编译类型

PS: 环境变量Path被破坏后,会使VC\bin\vcvars32.bat,加载path fail,  引起编译错误;

CMakedepends on the following environment variables to find Boost succesfully:
BOOST_ROOT (d:\ boost)
BOOST_INCLUDEDIR (d:\ boost)
BOOST_LIBRARYDIR (d:\ boost\libs)
Well, at least BOOST_ROOT, but it can't hurt to set the twoothers.

如此编译完成之后,在cmake-gui中,点击Add Entry, 新建多个path, 分别为BOOST_ROOT,

BOOST_INCLUDEDIR, BOOST_LIBRARYDIR

7, GLSL

Optimizer: GLSL Optimizer http://github.com/aras-p/glsl-optimizer/

使用cmake-gui 产生Project.sln, 使用VS2005打开,进行编译,发现找不到stdint.hstdboo.h,

在根目录include下会有c99这个文件夹,将c99添加到包含目录;

发现找不到getopt.h, 将src\getopt 添加到包含目录;

使用VS2005编译过程中,可能会遇到一些问题,主要涉及VS2005对c99支持的不是

很好、 wgl相关——VS2005默认缺少一些opengl 开发库, 需要进行添加,注意修改就OK;

8, HLSL

HLSL2GLSLhttp://hlsl2glslfork.googlecode.com/

9, tbb

ThreadingBuilding Blocks http://www.threadingbuildingblocks.org/

10, SoftImage

Softimage SDKneeded for building XSIExporter <FALSE>

五:cmake-gui Configureand Generate

六:BuildingOgre

在D:\Sourcecode\ogre\buildOrge 下找到OGRE.sln, 用VS2005打开,进行编译;

If you havedoxygen installed and CMake picked it up,then there will be an additional build target called doc whichyou can optionally build. 使用VS2005 select and build the target 'DOC' ;

七:InstallingOgre

In Visual Studio, just select and build thetarget 'INSTALL'. This will create the folder 'sdk' inside your build directoryand copy all the required libraries there.

更多详细编译可参考官方文档http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Building+Ogre

Ogre SourceCode Compile by Windows VS2005相关推荐

  1. ffmpeg-0.8 开源编码解码库从linux下移植到windows vs2005

    最新 ffmpeg-0.8 开源编码解码库,从linux下移植到windows vs2005,全部开源. 需要 Intel C++ Compile 和 开源的SDL库支持,由于 Intel C++ C ...

  2. ffmpeg-0.6.3开源编码解码库,从linux下移植到windows vs2005,全部开源。

    ffmpeg-0.6.3开源编码解码库,从linux下移植到windows vs2005,全部开源. 需要 Intel C++ Compile 和 开源的SDL库支持,由于 Intel C++ Com ...

  3. ffmpeg-0.6.3 移植到 windows 开源代码

    ffmpeg-0.6.3开源编码解码库,从linux下移植到windows vs2005,全部开源. 需要 Intel C++ Compile 和 开源的SDL库支持,由于 Intel C++ Com ...

  4. ffmpeg-0.8 移植到 windows 开源代码

    最新 ffmpeg-0.8 移植到 windows 开源代码 Posted on 2011-07-23 10:50  mcodec  阅读(2281) 评论(28)   编辑   收藏   最新 ff ...

  5. YOLOv4:目标检测(windows和Linux下Darknet 版本)实施

    YOLOv4:目标检测(windows和Linux下Darknet 版本)实施 YOLOv4 - Neural Networks for Object Detection (Windows and L ...

  6. Yolo-v3 and Yolo-v2 for Windows and Linux 翻译

    Yolo-v3 and Yolo-v2 for Windows and Linux(适用于Windows和Linux的Yolo-v3和Yolo-v2) (neural network for obje ...

  7. Yolo-v2_ Windows平台下如何配置darknet-yolov2?(安装CUDA)

    Yolo-v2_Windows平台下如何配置? 官方链接:How to compile on Windows 我的win10配置信息: VisualStudio2015 opencv-3.3.0-vc ...

  8. yolov3 官网文档 设计到编译,训练,map等参数测试,windows和linux均有说明

    GitHub原文:https://github.com/AlexeyAB/darknet#how-to-compile-on-linux 参考博客原址:https://blog.csdn.net/qq ...

  9. windows + codeblocks + wxWidgets 连接MySQL数据库

    内容概要 序言 名词解释 背景介绍 编译惨案 goto 语句的任性 __pragma 指令的腥风血雨 代码无法链接的痛苦 天无绝人之路 结语 序言 看过 人月神话 这部著作的你,一定知道什么叫 没有银 ...

最新文章

  1. Nature综述: 蓝藻水华的形成机理及防治动态
  2. vector删除第i个元素_[LeetCode] 215. 数组中的第K个最大元素
  3. 用户控件(.ascx)调用网页(.aspx)的方法
  4. mysql插入ㄖ_原生JavaScript代码100个实例
  5. 怎么理解回调函数? 回调函数合集
  6. log4j中用变量配置日志输出文件位置
  7. 前端学习(2695):重读vue电商网站16之Upload 上传组件
  8. 有多少种 “图片格式”?
  9. 生活中的数学 —— 操场几何学
  10. 查看磁盘I/O操作信息
  11. Navicat for Oracle中如何使用外键
  12. Linux下的网卡驱动程序的编写过程(转)
  13. c++ 打印条码_条码打印软件之优化导入PDF文档的清晰度
  14. SD卡无法格式化怎么办?恢复SD卡这样做
  15. windows磁盘空间释放(二)
  16. 4┃音视频直播系统之浏览器中通过 WebRTC 进行桌面共享
  17. 内核网络数据结构-SKB
  18. java poodle,Java http客户端和POODLE
  19. openwrtx86安装docker_群晖Docker安装openwrt简易流程
  20. 10、自上而下的电路架构设计

热门文章

  1. 邻频干扰邻区与无干扰邻区有什么明确的差异?
  2. 多线程---并发容器的使用
  3. 大数据揭秘选择题不会“都选C”,靠谱吗?
  4. python错误提示未定义tn_python程序中的全局名称错误[关闭]
  5. 前端VSCode常用插件安装和使用
  6. ECALL Swtichless调用及tRTS端Swtichless初始化
  7. 已知abc+cba=1333,其中a,b,c均为一位数,求abc的值
  8. win10添加开机自启软件
  9. Coding and Paper Letter(六十七)
  10. 小白学 Python 数据分析(1):数据分析基础