Help Compiling MyGui.

mkultra333

03-11-2010 15:25:38

Need help compiling.
Downloaded MyGui 3.0 zip, extracted it to my ogre location, which is c:/Ogre/ogre.
I know I need to use CMake, I'm not really that familiar with it and need more help. I'm using CMake 2.8.1

Set CMake source dir to C:/Ogre/ogre/MyGUI3.0
Set CMake build binaries to C:/Ogre/ogre/MyGUI3.0

Ran configure but get lots of errors.


Configuring MYGUI 3.0.1
Looking for FREETYPE...
checking for module 'freetype2'
package 'freetype2' not found
Found FREETYPE: optimized;C:/GTK/lib/freetype.lib;debug;C:/Ogre/ogre/Dependencies/lib/debug/freetype2311_D.lib
Looking for OGRE...
checking for module 'OGRE'
package 'OGRE' not found
Could not locate OGRE
Looking for OIS...
checking for module 'OIS'
package 'OIS' not found
Found OIS: optimized;C:/Ogre/ogre/Dependencies/lib/release/OIS.lib;debug;C:/Ogre/ogre/Dependencies/lib/debug/OIS_d.lib
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Error at CMake/Utils/MacroLogFeature.cmake:91 (MESSAGE):



-----------------------------------------------------------------------------


-- The following REQUIRED packages could NOT be located on your system.

-- Please install them before continuing this software installation.

-- If you are in Windows, try passing -DMYGUI_DEPENDENCIES_DIR=<path to
dependencies>

-- Also check that you buildind with RenderSystem that you need or set
another with -DMYGUI_RENDERSYSTEM=<1 2 or 3 for Direct3D_9 OGRE or OpenGL>


-----------------------------------------------------------------------------


+ ogre: Support for the Ogre render system <>


-----------------------------------------------------------------------------
Call Stack (most recent call first):
CMake/Dependencies.cmake:102 (MACRO_DISPLAY_FEATURE_LOG)
CMakeLists.txt:161 (include)


Configuring incomplete, errors occurred!


The wiki article mentions these, http://www.ogre3d.org/tikiwiki/MyGUI+Compiling, but I don't understand the solutions.


If you see next message

-- The following REQUIRED packages could NOT be located on your system.
-- Please install them before continuing this software installation.
-- If you are in Windows, try passing -DMYGUI_DEPENDENCIES_DIR=<path to
dependencies>


set MYGUI_DEPENDENCIES_DIR to path where you have Dependencies.

If you see next message

-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ ogre: Support for the Ogre render system <>


this mean that CMake can't find where your Ogre sources is. Set OGRE_DIR option manually (or OGRE_BUILD and OGRE_SOURCE for OGRE with CMake).


Where do I set these variables and dependencies? Also, I have OGRE_HOME environment variable set, doesn't that matter?

Altren

03-11-2010 15:47:29

In CMake set OGRE_DIR variable with proper path to Ogre.

mkultra333

04-11-2010 02:22:28

Sorry, my question is rather, where in CMake do I set these variables? Is it a text file somewhere or some menu option? (I have cmake gui). I'm not that familiar with CMake.

Altren

04-11-2010 13:12:23

There is list of options in main CMake gui window. And to add new one press "Add entry" button and type
Name: OGRE_DIR
Type: PATH
Value: C:\path\to\Ogre (replace with yours)