How to build MyGUI without Ogre?

Not about OpenMW? Just about Morrowind in general? Have some random babble? Kindly direct it here.
Post Reply
fishinggrapes
Posts: 2
Joined: 02 Jun 2019, 07:46
Gitlab profile: https://gitlab.com/vigneshgunasekaran

How to build MyGUI 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!
Last edited by fishinggrapes on 02 Jun 2019, 08:40, edited 1 time in total.
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: How to build MyGUI without Ogre?

Post by akortunov »

-- 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>
You need the OpenGL (4). "-DMYGUI_RENDERSYSTEM" is the argument which you should pass to CMake command.
Also since you are on Windows, I'd suggest you to download an already compiled MyGUI build.
fishinggrapes
Posts: 2
Joined: 02 Jun 2019, 07:46
Gitlab profile: https://gitlab.com/vigneshgunasekaran

Re: How to build MyGUI without Ogre?

Post by fishinggrapes »

I did pass the RenderSystem as OpenGL(4) too. Still getting the Same Error. When MyGUI says Dependencies, is it the Source Code of FreeType or the Compiled Dll? If So How do I make CMake aware of the Location of this Dll? Cmake also complains about missing OGRE dependencies. Howver, I am not using Ogre. How do I make Cmake know that?

Also, I am trying to build from source for Educational Reasons. I am learning about compiling stuff from source code and I don't want Compiled libraries in my Repo.

Thank You!
User avatar
AnyOldName3
Posts: 2668
Joined: 26 Nov 2015, 03:25

Re: How to build MyGUI without Ogre?

Post by AnyOldName3 »

From my experience of other libraries, I'd expect it to point to a folder containing an include directory with headers and a lib directory with .libs. However, it might actually want a folder with a subdirectory for each dependency, each of which has its own include and lib subdirectory. CMake doesn't care about DLLs, as you don't build against a DLL, you build against a .lib, and the .lib tells the compiled application to look for the DLL at runtime.
Post Reply