准备:
MyGUI_3.0.1_source.zip
MyGUIDependencies_MSVC_20100109.zip
环境变量设置:
MYGUI_DEPENDENCIES_DIR:注意依赖库一定要与OGRE的依赖库一致
OGRE_BUILD:H:\OgreManagement\ogre_src_v1-7-2_build
OGRE_DIR:H:\OgreManagement\ogre_src_v1-7-2_build\sdk
OGRE_SOURCE:H:\OgreManagement\ogre_src_v1-7-2
Cmake选择64位配置后,生成,编译即可。
Compiling
Open generated solution/use makefiles and compile MyGUIEngine and MyGUI.OgrePlatform targets.
You also may run demos or tools. You don't need to do anything other than starting compilation process.
Using
To use MyGUI in your project, add to your project next settings:
Insert in include files:
(PathToMyGUI)\MyGUIEngine\include
(PathToMyGUI)\Platforms\Ogre\OgrePlatform\include
Insert in lib path:
(PathToMyGUI)\lib\Release
(PathToMyGUI)\lib\Debug
In linker additional dependencies add
MyGUIEngine.lib MyGUI.OgrePlatform.lib or MyGUIEngine_d.lib MyGUI.OgrePlatform_d.lib