posts - 27, comments - 14, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

     摘要:   阅读全文

posted @ 2009-01-08 12:57 heeeey 阅读(1873) | 评论 (0)编辑 收藏

     摘要:   阅读全文

posted @ 2009-01-02 16:23 heeeey 阅读(608) | 评论 (0)编辑 收藏

     摘要:   阅读全文

posted @ 2009-01-02 15:00 heeeey 阅读(455) | 评论 (0)编辑 收藏

     摘要:   阅读全文

posted @ 2008-12-25 11:21 heeeey 阅读(1208) | 评论 (0)编辑 收藏

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文件)
    

posted @ 2008-12-23 16:51 heeeey 阅读(933) | 评论 (0)编辑 收藏

编译过程整理如下(vs2005 sp1):
1.下载boost库1.37.0。
    解压到目录D:\boost1370
2. 编译bjam(要编译boost,需要先编译出bjam,然后利用bjam来编译boost)
   1)修改D:\boost1370\tools\build\v2\user-config.jam
    添加
   
using msvc : 8.0 : : <compileflags>/wd4819 <compileflags>/D_CRT_SECURE_NO_DEPRECATE <compileflags>/D_SCL_SECURE_NO_DEPRECATE <compileflags>/D_SECURE_SCL=0 ;
using python : 2.6 ; 

   2) 运行cmd 定位到D:\boost1370\tools\jam\src目录下
       执行 build.bat 。会在该目录下生成bin.ntx86\bjam.
3. 编译boost库
   1)将bjam.exe拷贝到D:\boost1370下
    2)执行D:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat 设置编译环境。
   3)运行:
         bjam "-sTOOLS=vc-8_0" --with-thread install debug release 。只编译thread库(生成静态库和动态库(mt-gd))
         bjam "-sTOOLS=vc-8_0" --with-thread install debug release runtime-link=static  (生成 mt-sgd 的静态库(runtime-link-static))
         bjam "-sTOOLS=vc-8_0" --with-date_time install debug release。只编译date_time库
         bjam "-sTOOLS=vc-8_0" --with-date_time install debug release runtime-link=static

4. 编译结果
    在 C:\Boost\目录下生成include 和lib里面就是头文件和静态库。
   各种库的不同参考  http://weiwu83.javaeye.com/blog/98388

posted @ 2008-12-23 02:53 heeeey 阅读(1492) | 评论 (1)编辑 收藏

问题出现在程序运行清单上,默认是"嵌入清单",清单文件是"$(IntDir)\$(TargetFileName).embed.manifest"

调试程序运行时,不知道为什么却定位不到这个文件,我们如果手动把"程序名.embed.manifest"改为"程序名.manifest",调试程序即可定位到。

所以,需要更改默认项目的工程属性。工程属性->配置属性->清单工具->输入和输出->嵌入清单==>改为否。

posted @ 2008-12-22 12:59 heeeey 阅读(1737) | 评论 (3)编辑 收藏

仅列出标题
共3页: 1 2 3