Then I clone the MyGUI for Ogre 2.1 from GitHub GitHub
Then I read this article to learn to compile MyGUI
After reading, I clone the MyGUI source and setup with CMake:
- MYGUI_DEPENDENCIES_DIR = Dependencies. (ref here)
- OGRE_SOURCE_DIR = Ogre 2.1 source (I have to set it manually, seem the environment variable not work)
- OGRE_BUILD = Ogre 2.1 build folder which is generated from CMake
- MYGUI_RENDERSYSTEM = 8 (ref here)
But after set MYGUI_RENDERSYSTEM = 8, I got the error:
Code: Select all
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SDL2_IMAGE_INCLUDE_DIR (ADVANCED)
...
SDL2_IMAGE_LIBRARY (ADVANCED)
Note: currently (18/10/2017), I see that GitHub is marking MyGUI: build error, I don't know the reason I can't compile MyGUI has anything to do with this.