How do I compile MyGUi for OpenGL without Ogre?

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
fishinggrapes
Gnoblar
Posts: 1
Joined: Sun Jun 02, 2019 7:59 am

How do I compile MyGUi for OpenGL without Ogre?

Post by fishinggrapes »

I am trying to build MyGUI without Ogre, as I am using my own OpenGL Graphics Rendering API. But I am not well versed in Cmake and got stuck in building MyGUI. It seems that MyGUI is dependent on FreeType and has an Optional Dependency on Ogre, if we're using the Ogre Renderer. If I try to configure MyGUI, I get these Errors.
The C compiler identification is MSVC 19.16.27031.1
The CXX compiler identification is MSVC 19.16.27031.1
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Configuring MYGUI 3.4.0
ERROR compiled OGRE DLL's wasn't found
Looking for FREETYPE...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMAKE_PREFIX_PATH: Dependencies;F:/Downloads/Programming/mygui-master/build/Dependencies;F:/Downloads/Programming/mygui-master/Dependencies;F:/Downloads/Programming/mygui-master/build/../Dependencies;F:/Downloads/Programming/mygui-master/../Dependencies
Could not locate FREETYPE
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
CMake Warning at CMake/Packages/FindOGRE_Old.cmake:49 (FIND_PACKAGE):
By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OGRE", but
CMake did not find one.

Could not find a package configuration file provided by "OGRE" with any of
the following names:

OGREConfig.cmake
ogre-config.cmake

Add the installation prefix of "OGRE" to CMAKE_PREFIX_PATH or set
"OGRE_DIR" to a directory containing one of the above files. If "OGRE"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMake/Dependencies.cmake:50 (find_package)
CMakeLists.txt:203 (include)


Looking for OGRE
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=<3, 4, 5, 6, 7 for OGRE, OpenGL,
Direct3D_9, Direct3D_11 or OpenGL 3.x>


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


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

+ ogre: Support for the Ogre render system <>


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


Configuring incomplete, errors occurred!
See also "F:/Downloads/Programming/mygui-master/build/CMakeFiles/CMakeOutput.log".
I tried to add an Entry for DMYGUI_DEPENDENCIES_DIR in Cmake, but I don't know what it should point to: A folder containing the Source Code of FreeType or the Compiled Binaries of FreeType. I tried both and still get errors. Also, I don't want Ogre Dependency. How do I remove it? Please point me in the Right Direction!
Pellaeon
Goblin
Posts: 230
Joined: Thu Apr 28, 2011 12:23 pm
x 28

Re: How do I compile MyGUi for OpenGL without Ogre?

Post by Pellaeon »

For compiling MyGUI you need the build directory of Ogre (not only the SDK).
You can compile and use MyGUI with Ogre 1.11.x and it works. With Ogre 1.12. the MyGUI controls vanish (at least in our application, I suppose some overlay problem). Seems there are some changes in Ogre which influences MyGUI. Unfortunately, MyGUI is not maintained anymore. So we are switching to imgui, which is maintained and also much more powerful than MyGUI.
Post Reply