Compiling MyGUI

lepawel

29-07-2013 01:21:10

Hi,
So I have been trying to get MyGUI to work for the past few hours, and I pretty much gave up, but I already abandoned CEGUI, so I am trying my luck with this one.
I have the 3.2.0 version of MyGUI, and 2.8.11.2 of Cmake. I have tried everything I can, including improvisation, which led me to the following:
I have dependencies compiled, and added like so:
X:\Quests\Ogre\MyGUI_3.2.0\MyGUI_3.2.0\Dependencies
using 'Advanced' in Cmake, I have added both Boost and doxygen manually (that's the improvisation part) which got me a little further (i.e it does not say 'Could NOT find Boost' etc)
Still, I am getting the following error every time I hit 'configure' in Cmake:
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>


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


+ freetype: Portable font engine <http://www.freetype.org>;


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


Line: 232 in CmakeLists.txt inside MyGUI 3.2.0 folder states:
include(Dependencies)
which makes me wonder, what the F?
Any help will be much appreciated. I have already scanned the forum for similar problems, and found one almost the same, except the solution didn't work.

Altren

29-07-2013 02:57:41

You also need to download and compile Dependencies. Read http://www.ogre3d.org/tikiwiki/tiki-ind ... +Compiling.

lepawel

29-07-2013 13:09:27

Ok, so here's what Ive done:
ereased all unzipped stuff
unpacked myGUI to one folder,
unpacked myGUI dependencies to another
built the dependencies using 2008.sln file (converted to vs10)
in CMake, I have seleted the myGUI folder as source code
a different folder as target
configured it with VS10 Win64 setting.
got an error during configuration
I have added the myGUI dependencies folder (one that leads to lib/include/bin folders) path
still got an error
downloaded whole OGRE dependencies pack from here, this one to be precise:
Dependencies-vc110-x64-16.07.2013.7z
unpacked to a folder, they all seem to be built
tried using those as dependencies path (tried parsing -DMYGUI_DEPENDENCIES_DIR=PATH_HERE as well)
still an error

Here's my CMake at the moment:


P.S, it's the first time i'm playing with Cmake and plugins for OGRE, so it probably is some high-end newb error

lepawel

29-07-2013 18:14:00

Ok, since the last reply is being verified for 10 hours, I will post an update (hopefully it won't need verification).
I have re-downloaded whole OGRE, whole myGUI, myGUI dependencies, OGRE dependencies and am still stuck.
I keep getting same error.
My question is:
what is the exact path to the dependencies in cMake?
The 'tutorial' MyGUI Compiling is absolutely noob-unfriendly, it basically says: to make cookies, buy products below, and bake cookies, no recipe, no instructions.
I keep getting the following error:
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>


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


+ freetype: Portable font engine <http://www.freetype.org>


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

I have tried specifying path to both OGRE and MyGUI dependencies, I have successfully compiled all of MyGUI dependencies, but in OGRE dependencies, I have couple of errors when building among others, OIS and FreeType. I have tried directing it to all folders inside Dependencies, both OGRE and MyGUI, there is no hint on what to do when you have both path in place and the error
Any help appreciated.

Sawyer

11-08-2013 21:52:45

I was getting the same error with OGRE (trunk) and mygui (trunk)
mingw + msys 8)
one thing with CMake is that you can fix some errors by just Configuring again. I defined as many of the directories as possible in cmake-gui. OGRE_HOME env variable set. BTW, not using installed SDK and my built libs (like OIS) in ogre/build/Dependencies/src, while includes are in ogre/Dependencies/src.

OGRE_BUILD c:/ogre/build
MYGUI_DEPENDENCIES_DIR c:/mygui/build/Dependencies
FREETYPE_FT2BUILD_INCLUDE_DIR c:/ogre/Dependencies/src/freetype/include
FREETYPE_INCLUDE_DIR c:/ogre/Dependencies/src/freetype/include
FREETYPE_LIBRARY_DBG c:/ogre/build/Dependencies/src/freetype/libfreetype_d.a
FREETYPE_LIBRARY_REL c:/ogre/build/Dependencies/src/freetype/libfreetype.a

also had a couple other problems (again, using trunk):

One problem shared with OGRE: When adding the Boost libraries to CMAKE_*_LINKER_FLAGS_* (as in -lboost_system-mgw47-*), they are inserted at the *beginning* of the link libraries. You can see this with "make VERBOSE=1". Newer GCCs (e.g. 4.7.2) consider library order to be important, and can fail with a completely cryptic message. As I went through with OGRE..

For those using trunk, a few OGRE_VERSION vs. MYGUI_DEFINE_VERSION() conditionals selecting the wrong branches of code - or at least, using "staticCast" class members that do not exist in trunk, maybe removed since 1.9. simple temp fix..