vs2005下编译多线程的ogre1.6.0

来源:互联网 发布:腾讯社招java面试题 编辑:程序博客网 时间:2024/05/23 11:58

1. 下载源程序
     ogre-v1-6-0.zip
     ogre dependence (OgreDependencies_VC8SP1_Eihort_20071227.zip)
2. 解压,将ogre dependence 解压生成的两个文件夹放到ogre-v1-6-0.zip加压后的目录

3.修改源码支持多线程
    修改 ogreMain/ogreConfig.h  将#define OGRE_THREAD_SUPPORT 0  改为 #define OGRE_THREAD_SUPPORT 1
4.编译(release 和的debug)
    注意:编译时需要boost的thread和date_time库的支持(编译过程已经在上一篇随笔中讲过了)
   设置vc2005 的头文件和库文件引用路径包括(d3d和boost)
 5.最后编译会生成的目录ogre/lib 
 

构建自己的工程
1.在应用ogre是需要加入头目录和库目录
        D:/ogre/Dependencies/include
        D:/ogre/OgreMain/include
        D:/ogre/Samples/Common/include

        D:/ogre/lib
        D:/ogre/Dependencies/lib/Debug
        D:/ogre/Dependencies/lib/Release
2.工程属性中:
     c/c++ =====》代码生成 =======》运行时库 选为 多线程调试 DLL (debug模式)  、多线程 DLL (release模式)
     配置属性=====》常规=======》输出目录 设为 D:/ogre/Samples/Common/bin/Debug 或 D:/ogre/Samples/Common/bin/Release (省得每个项目都要拷贝dll和cfg文件)
    

原创粉丝点击