Hello, I am compiling Ogre3D from sources using MinGW64 on Windows 8. I downloaded the latest version of the sources (https://bitbucket.org/sinbad/ogre/downloads) and the dependencies (https://bitbucket.org/cabalistic/ogredeps). First I generated a makefile for the dependencies in cmake, then a makefile for the library itself. After that I successfully compiled the dependencies, and placed them inside the Ogre3D folder. All was well until I tried compiling the library itself using msys, when I got this error:
make
[34%] Built target FreeImage
[37%] Built target freetype
[40%] Built target OIS
[41%] Built target zlib
[43%] Built target zziplib
[43%] Building CXX object OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.obj
../../OgreMain/src/OgreAlignedAllocator.cpp:1:0: error: CPU you selected does not support x86-64 instruction set
I've never seen this error before... can anyone help me?
Error Compiling Ogre3D on MinGW64?
-
- OGRE Retired Team Member
- Posts: 972
- Joined: Mon Jun 02, 2008 6:52 pm
- Location: Berlin
- x 65
Re: Error Compiling Ogre3D on MinGW64?
MinGW 64 bit is not supported, as the official MinGW itself ( here ) does not feature 64 bit.
There are some forks, though, which try to do it. Maybe contact this one?
I certainly hope that at some point the standard MinGW will also support 64 bit. Or it will be discontinued so maybe mingw-w64 (which you are probably using) becomes the standard. Or when 32 bit is no longer supported by Windows, then we will have to switch. Time will tell.
But until any of that happens, it will remain as it is now, as maintaining so many different MinGW versions (official mingw, mingw-w64, tdm-gcc, etc.) would just be too much effort. Sorry
If you do not really need 64 bit (very likely), I suggest you switch to the official mingw.
There are some forks, though, which try to do it. Maybe contact this one?
I certainly hope that at some point the standard MinGW will also support 64 bit. Or it will be discontinued so maybe mingw-w64 (which you are probably using) becomes the standard. Or when 32 bit is no longer supported by Windows, then we will have to switch. Time will tell.
But until any of that happens, it will remain as it is now, as maintaining so many different MinGW versions (official mingw, mingw-w64, tdm-gcc, etc.) would just be too much effort. Sorry

If you do not really need 64 bit (very likely), I suggest you switch to the official mingw.