compilation errors CMake MyGUI 3.0.1 with Ogre Shoggoth1.6.5

finta

25-07-2010 19:20:35

Hello, I'm compiling with cmake MyGUI and I get errors:

----------------------LOG -----------------------------------------------------------------------------------------

Configuring MYGUI 3.0.1
Looking for FREETYPE...

Could not locate FREETYPE

Looking for OGRE...

Found Ogre Shoggoth (1.6.5)

Found OGRE: optimized;C:/OgreSDK/lib/OgreMain.lib;debug;C:/OgreSDK/lib/OgreMain_d.lib

Looking for OGRE_Paging...

Could not locate OGRE_Paging

Looking for OGRE_Terrain...

Could not locate OGRE_Terrain

Looking for OGRE_Property...

Could not locate OGRE_Property

Looking for OGRE_RTShaderSystem...

Could not locate OGRE_RTShaderSystem

Looking for OIS...

Found OIS: optimized;C:/OgreSDK/lib/OIS.lib;debug;C:/OgreSDK/lib/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>



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



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



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

Call Stack (most recent call first):

CMake/Dependencies.cmake:102 (MACRO_DISPLAY_FEATURE_LOG)

CMakeLists.txt:167 (include)



Configuring incomplete, errors occurred!


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

I can not solve the problem, I appreciate any help however small.
Thanks!

Altren

26-07-2010 02:27:22

http://www.ogre3d.org/tikiwiki/MyGUI+Compiling

finta

26-07-2010 11:12:49

Altren Thanks for the reply but I can not remove the errors.
I defined as environment variables in Windows Vista:
MYGUI_DEPENDENCIES_DIR = c:\OgreSDK
OGRE_DIR = c:\OgreSDK

And the problem continues. I do not understand where the fault as Ogre works perfectly so that dependencies exist.

In fact in the log we can see the line:
Found OGRE: optimized;C:/OgreSDK/lib/OgreMain.lib;debug;C:/OgreSDK/lib/OgreMain_d.lib

From here you start to not find some files but not
marked in red:

Looking for OGRE_Paging...
Could not locate OGRE_Paging
Looking for OGRE_Terrain...
Could not locate OGRE_Terrain

Do you know if these files are needed for the compilation?

Altren

26-07-2010 13:15:41

Try also set OGRE_SOURCE and OGRE_BUILD directories.
Those components is not necessary and not used in MyGUI, but usually they are not found when OGRE can't be properly found.

finta

26-07-2010 13:16:36

I want to state which of the steps I have taken to the actual error:

1.- I've got source on sourceforge (http://sourceforge.net/projects/my-gui/files/)

2.- unzip MyGUI_3.0.1_source.zip on c:\Usuarios\finta\Documentos\

3.- run CMake 2.8.2 (cmake-gui)

4.- the tutorial says : Building sources from archive : Right click MyGUIEngine and compile it!
but not so easy and I see these errors:

CMake Error at CMakeLists.txt:5 (include):
include could not find load file:

PrecompiledHeader


CMake Error at CMakeLists.txt:37 (use_precompiled_header):
Unknown CMake command "use_precompiled_header".


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!


So I compile from MyGUI3.0, these errors go away, but other errors appear me:

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:102 (MACRO_DISPLAY_FEATURE_LOG)
CMakeLists.txt:161 (include)


Configuring incomplete, errors occurred!


Surely someone has been through this before, teaching is learning twice
Please show us!

Altren

26-07-2010 14:09:47

You also need to download and compile Dependencies. Read wiki page.

finta

28-07-2010 08:48:59

Altren, thanks for your help,
I have compiled the dependencies and I managed to compile it MyGUI. :D

Configuring done

Now I am ready to make the "hello world" with MyGUI, I hope
take me less time than the compilation.

thanks!

mephisto

03-03-2012 22:07:20

CMake Error at CMakeLists.txt:5 (include):
include could not find load file:

PrecompiledHeader

I got this message after successfull compiling of dependencises.(Debug/Release)
i set MYGUI_DEPENDENCIES_DIR to C:\dev\libs\MyGUI\MyGUIDependencies_MSVC_20100109\Dependencies
i am compiling for vs2008 9.
using OgreSDK_vc9_v1-7-2

But I got no problem with MyGUI 3.0
It shoud be nice to precise the thing to do :)

Thanks for attention.

Altren

03-03-2012 23:11:01

Try to update CMake if you are using some old version. Also check, that you actually have this file (shoulde be in CMake/Utils directory).

mephisto

03-03-2012 23:38:06

hm... verything seens ti be fine, this happens when I try in console mode:

C:\Program Files\CMake 2.8\bin>cmake C:\downloads\MyGUI_3.2.0\MyGUI_3.2.0\MyGUIE
ngine
CMake Error at CMakeLists.txt:5 (include):
include could not find load file:

PrecompiledHeader


-- Unknown svn revision. It won't be included into build.
CMake Error at CMakeLists.txt:61 (use_precompiled_header):
Unknown CMake command "use_precompiled_header".


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Altren

30-03-2012 09:33:36

In CMake gui set sources directory to directory where you downloaded sources (directory, that contain MyGUIEngine and other folders, but not MyGUIEngine itself).
Also I updated wiki page.