CMake Configuring Issues when choosing MinGW Makefiles Generator

Problems building or running the engine, queries about how to use features etc.
Post Reply
SpaceFreak
Gnoblar
Posts: 1
Joined: Sat Jul 31, 2021 12:49 am

CMake Configuring Issues when choosing MinGW Makefiles Generator

Post by SpaceFreak »

Ogre Version: 1.12.12
Operating System: Windows 10
Render System: :?:

I am trying to build Ogre3D for MinGW (I want nothing to do with Visual Studio). As a result, I picked MinGW Makefiles when picking a generator during the CMake configuration. I get errors like the following during the configuration step, during the time it tries to install dependencies.

Code: Select all

[  2%] Generating zlib1rc.obj

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\windres.exe: preprocessing failed.

mingw32-make.exe[2]: *** [CMakeFiles\zlib.dir\build.make:73: zlib1rc.obj] Error 1

mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:117: CMakeFiles/zlib.dir/all] Error 2

mingw32-make.exe: *** [Makefile:145: all] Error 2
What can I do to fix this? It seems like zlib is pretty important to Ogre, and I am also missing crucial libraries such as assimp.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: CMake Configuring Issues when choosing MinGW Makefiles Generator

Post by paroj »

looks like something is choking upon the space in the mingw path.
Try installing it at C:/mingw-w64.
Post Reply