Download and install ogre SDK, set the environment variable ogre_home = x: \ ogre \ OgreSDK_vc11_v1-9-0 and ogre_runtime = % ogre_home % \ bin \ debug; % ogre_home % \ bin \ release, and add ogre_runtime to the path.
Download the mygui-related files. The directory structure is
Mygui
|-Build
|-Dependencies
|-Mygui_3.2.0
|-Mygui_3.2.0_win32
Compile dependencies, use cmake to specify the source directory as mygui_3.2.0, build directory as build, manually set FreeType-related lib and generate a project to generate mygui. ogreplatform, and copy the lib directory to ogre_home, And the DLL in BIN to the corresponding directory under ogre_home \ bin.
Create a project and set the working directory
$ (Ogre_home) \ bin \ $ (configuration)
Add a directory
$ (Ogre_home) \ include \ ogre; $ (mygui_home) \ platforms \ ogre \ ogreplatform \ include; $ (mygui_home) \ myguiengine \ include; $ (ogre_home) \ include \ ogre \ overlay; $ (ogre_home) \ boost; $ (ogre_home) \ include; % (additionalincludedirectories)
Additional library directory
$ (Mygui_home) \ Lib \ $ (configuration); $ (ogre_home) \ boost \ Lib; $ (ogre_home) \ Lib \ $ (configuration); % (additionallibrarydirectories)
Additional Dependencies
Ogremain_d.lib; ois_d.lib; ogreoverlay_d.lib; myguiengine_d.lib; mygui. ogreplatform_d.lib; % (additionaldependencies)