Many THANKS to CrazyEddie for his help and the Developer Documents as well. http://www.cegui.org.uk/docs/current/
I have updated Xavire's Practical Application Cegui example to use the new Ogre 1.7 and Cegui 0.7:
PracticalApp_CEGUI DOWNLOAD: http://www.megaupload.com/?d=J7FRMCPS
wiki source (old example, don't download here): http://test.ogitor.org/tiki/Practical+A ... +More+Meat
wiki source (old example, don't download here): http://www.ogre3d.org/wiki/index.php/Pr ... _More_Meat
You will need Ogre 1.7 SVN: https://svn.ogre3d.org/svnroot/ogre/branches/v1-7
Cegui 0.7 Branch SVN: https://crayzedsgui.svn.sourceforge.net ... nches/v0-7
(turtoise SVN: http://tortoisesvn.net/downloads)
Cegui Dependencies: http://www.cegui.org.uk/wiki/index.php/ ... oads_0.7.1
(Extract to the Cegui folder, IE: cegui\dependencies)
You will also need a copy of "premake.exe" to put in your cegui\projects\premake folder
Next you need to configure cegui for OGRE use before you build it (config.lua)
Look for the below values and set them accordingly then save the file (obviously set the paths according to where your ogre folder resides):
Code: Select all
STATIC_BUILD_WITH_DYNAMIC_DEPS = true
OGRE_PATHS = { "E:/dev/ogre/OgreMain", "include", "lib" }
OIS_PATHS = { "E:/dev/ogre/Dependencies", "include/OIS", "lib" }
OPENGL_RENDERER = false
DIRECT3D9_RENDERER = false
DIRECT3D10_RENDERER = false
IRRLICHT_RENDERER = false
OGRE_RENDERER = true
SAMPLES_GL = false
SAMPLES_DX9 = false
SAMPLES_DX10 = false
SAMPLES_IRRLICHT = false
SAMPLES_OGRE = true
then run the corresponding batch build file to build cegui project settings.
After you build cegui, find the "cegui\cegui\include" folder
copy that "include" folder to "ogre\Dependencies\include"
so you will have: "ogre\Dependencies\include\include"
then rename it so that it is: "ogre\Dependencies\include\cegui"
Build Ogre using CMake: http://www.ogre3d.org/wiki/index.php/Bu ... With_CMake
Set an environmental variable for the location of your ogre folder.
Variable name: OGRE_HOME
Variable value: E:\dev\ogre
(obviously set this to the path where your ogre folder resides)
Then in in your PracticalApp_CEGUI project settings goto general section and look for
Output Directory & Intermediate Directory and set them to: $(OGRE_HOME)\build\bin\debug
then in the Debugging Section look for Working Directory and set it to: $(OGRE_HOME)\build\bin\debug
also make a copy of "datafiles" folder to the "ogre\build\bin" folder
so you will have "ogre\build\bin\datafiles"
the "datafiles" folder can be found at: "cegui\datafiles\"
make a copy of resource folder included with PracticalApp_CEGUI to the ogre\build\bin\debug folder
copy all of the .dll files from "cegui\dependencies\bin" to "ogre\build\bin\debug"
You should now be able to build and run this program.