Skip to main content

History: MyGUI Compiling

Source of version: 20

Copy to clipboard
            {maketoc}

!!!!Sources
First of all, you have to download the source files.
You can get them [http://sourceforge.net/project/showfiles.php?group_id=193706|on sourceforge] or download the fresh version from svn e.g. using TortoiseSVN from next repository:
{MONO()}~np~https://my-gui.svn.sourceforge.net/svnroot/my-gui/trunk~/np~{MONO}
Or if you using Linux type
{MONO()}~np~svn co https://my-gui.svn.sourceforge.net/svnroot/my-gui/trunk my-gui~/np~{MONO}

!!!!Dependencies
You need to have MyGUI's dependencies. The only dependency is FreeType.
GNU/Linux users need to install libfreetype6-dev (and libois-dev if you want to build demos/tools).
Non linux users:
* Download MyGUI's dependencies (either from [http://www.ogre3d.org/download/source|OGRE website] or [http://sourceforge.net/projects/my-gui/files/MyGUI%20dependencies/|here (Visual Studio only)] ). (If you have downloaded the OGRE dependencies, you don't need to download any extra MyGUI dependencies.)
* __Build dependencies before trying to configure MyGUI__ with CMake. Remember that you need to __build both Release and Debug__ versions.

!!!!Configuring
After getting sources you need to install CMake ( [http://www.cmake.org/cmake/resources/software.html] ).

Run CMake-gui, set sources directory to directory where you downloaded sources (directory, that contain MyGUIEngine and other folders, but __not MyGUIEngine itself__).
Also you can (and it's recommended to) set CMake build directory not same as sources directory - this is usually convenient.
Press Configure if you use Cmake-gui. Select proper generator for your compiler/IDE. That will probably cause some CMake errors, because we also should set where Ogre and dependencies are.

If you see next message
{CODE(wrap="1")}  -- 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>{CODE}
set MYGUI_DEPENDENCIES_DIR to path where you have Dependencies.

If you see next message
{CODE(wrap="1")}  -- 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 <>{CODE}
this mean that CMake can't find where your Ogre sources is:
* if you use old OGRE (< 1.7) set OGRE_DIR option manually.
* otherwise set OGRE_SOURCE directory (that contain OgreMain and other OGRE directories, not OgreMain itself) and OGRE_BUILD directory (that was used as build directory in CMake - contain bin and lib directories).
* if Ogre was built with boost __set BOOST_ROOT__ option manually.

Press Configure until all settings is not red.

Also you can look through options with MYGUI_ prefix, that might be interesting for you. Most commonly used is MYGUI_STATIC, also you can enable/disable tools, demos and unit tests if you need/don't need them.

Press Configure until all settings are not red.

Then press Generate and you'll get makefiles/project files for your IDE.

!!!!Compiling
Open generated solution/use makefiles and compile MyGUIEngine and MyGUI.OgrePlatform targets. 
You also may run demos or tools. You don't need to do anything other than starting compilation process.

!!!!Using
To use MyGUI in your project, add to your project next settings:

Insert in include files:
{MONO()}(PathToMyGUI)\MyGUIEngine\include
(PathToMyGUI)\Platforms\Ogre\OgrePlatform\include{MONO}
Insert in lib path:
{MONO()}(PathToMyGUI)\lib\Release
(PathToMyGUI)\lib\Debug{MONO}
In linker additional dependencies add
{MONO()}MyGUIEngine.lib MyGUI.OgrePlatform.lib{MONO} or {MONO()}MyGUIEngine_d.lib MyGUI.OgrePlatform_d.lib{MONO}

---
Alias: (alias(MyGUI_Compiling))
        

History

Information Version
Mon 16 of May, 2016 03:34 GMT-0000 sercero Changed the order of how the libs should be added, otherwise there are errors in MinGW linking 25
Mon 20 of Apr, 2015 14:17 GMT-0000 Altren 24
Sun 22 of Dec, 2013 19:11 GMT-0000 Altren 23
Thu 30 of May, 2013 21:59 GMT-0000 Altren 22
Sun 05 of May, 2013 21:56 GMT-0000 Altren 21
Wed 22 of Aug, 2012 08:04 GMT-0000 Altren Remove wrong and ugly solution. Correct solution already mentioned in this page (set Boost_ROOT directory). 20
Fri 15 of Jun, 2012 11:41 GMT-0000 Altren 19
Sun 01 of Apr, 2012 17:29 GMT-0000 Altren 18
Fri 30 of Mar, 2012 08:35 GMT-0000 Altren 17
Fri 30 of Mar, 2012 08:31 GMT-0000 Altren 16
Sat 25 of Feb, 2012 12:55 GMT-0000 Hronom 15
Sat 22 of Jan, 2011 19:27 GMT-0000 Altren 14
Sat 22 of Jan, 2011 19:26 GMT-0000 Altren 13
Wed 19 of Jan, 2011 13:38 GMT-0000 Altren 12
Tue 18 of Jan, 2011 11:33 GMT-0000 Altren 11
Tue 18 of Jan, 2011 11:20 GMT-0000 Altren 10
Tue 18 of Jan, 2011 11:09 GMT-0000 Altren 9
Fri 10 of Dec, 2010 16:17 GMT-0000 Altren 8
Fri 10 of Dec, 2010 15:47 GMT-0000 Altren 7
Fri 10 of Dec, 2010 15:46 GMT-0000 Altren 6
Wed 30 of Jun, 2010 01:06 GMT-0000 JustBoo 5
Tue 15 of Jun, 2010 01:17 GMT-0000 Altren 4
Mon 28 of Dec, 2009 05:31 GMT-0000 jacmoe 3
Mon 28 of Dec, 2009 05:30 GMT-0000 jacmoe 2
Fri 11 of Sep, 2009 12:09 GMT-0000 Altren 1