Reiiden制作笔记C(OGRE/CEGUI配置)

A OGRE SDK配置
 环境:(OGRE_HOME)/Bin/$(ConfigurationName)
 Include目录:
    $(OGRE_HOME)/include;
    $(OGRE_HOME)/include/OIS;
    $(OGRE_HOME)/include/OGRE;
    $(OGRE_HOME)/boost_1_42;
 Lib目录:
    $(OGRE_HOME)/lib/$(ConfigurationName);
    $(OGRE_HOME)/boost_1_42/lib
 附加依赖库:
    Debug:  OgreMain_d.lib OIS_d.lib
    Release: OgreMain.lib OIS.lib
 运行库:
    MDD / MD
    

B 编译CEGUI
 1 下载大约为10M的CEGUI-0.7.5.zip
    下载大约100M的CEGUI-SDK-0.7.5-vc9.zip
 2 解压,将CEGUI-SDK-0.7.5-vc9的dependencies拷贝至CEGUI-0.7.5中
    下列都是使用CEGUI-0.7.5的,最好将CEGUI-SDK-0.7.5-vc9删除,以免混乱
 3 打开config.lua文件,修改为正确目录
    OGRE_PATHS = { "D:/Program Files/OgreSDK_vc9_v1-7-1", "include", "lib" }
    OIS_PATHS = { "D:/Program Files/OgreSDK_vc9_v1-7-1", "include/OIS", "lib" }
    CEGUI_EXTRA_PATHS =
    {
        { "D:/Program Files/OgreSDK_vc9_v1-7-1/boost_1_42", "", "lib", "CEGUIOgreRenderer" },
        { "D:/Program Files/OgreSDK_vc9_v1-7-1/boost_1_42", "", "lib", "CEGUISampleHelper" }
    }
    OGRE_RENDERER = true
 4 Projects/Premake内部有各编译器的.Bat,运行build_vs2008.bat、build_samples_vs2008.bat,会生成.sln文件。
    3、4顺序不能错乱
 5 打开CEGUI工程,生成如下工程:
    CEGUIBase
    CEGUIOgreRenderer
    CEGUIFalagardWRBase
    CEGUIExpatParser

 

C 配置CEGUI
    Include目录:
        $(CEGUI_HOME)/cegui/include
    Lib目录:
        $(CEGUI_HOME)/lib
    附加依赖库:
        Debug:  CEGUIBase_d.lib CEGUIOgreRenderer_d.lib
        Release: CEGUIBase.lib CEGUIOgreRenderer.lib
    DLL拷贝到工作目录:
       CEGUIBase_d.dll CEGUIOgreRenderer_d.dll CEGUIExpatParser_d.dll CEGUIFalagardWRBase_d.dll
       CEGUIBase.dll CEGUIOgreRenderer.dll CEGUIExpatParser.dll CEGUIFalagardWRBase.dll
 

增加以下内容到resources.cfg(用指向CEGUI datafiles文件夹的路径替换掉path_to_cegui) 
 [Imagesets]
    FileSystem=path_to_cegui/imagesets
[Fonts]
    FileSystem=path_to_cegui/fonts
[Schemes]
    FileSystem=path_to_cegui/schemes
[LookNFeel]
    FileSystem=path_to_cegui/looknfeel
[Layouts]
    FileSystem=path_to_cegui/layouts

你可能感兴趣的:(c,Build,Path,include,dependencies,fonts)