If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
This guide is meant to help people who know how to compile Mogre. It will not show how to compile Mogre from scratch because there are other guides
dealing with this issue. Because of the fact that the default instructions are covering only compiling Mogre for x86 systems, this page will show where the differences in the build process are and what needs to be changed.
Note:
This guide was written for Mogre 1.7. In future versions it could be different.
Start up
To give an example, our directory is called "C:\Mogre". The default output directory in all our projects is "bin\$(Configuration)". We already did a x86 build and now we do not want that our binaries and libraries are messed up. So we need to separate the x86 and the x64 output files.
Therefore we change the name of our output directory to "bin.x64\$(Configuration)". After the build is finished we got a "bin" and a "bin.x64" folder in our project directory with both "Debug" and "Release" subfolders. If we would do both builds at the same time the best way to go would be to use the same output path for all configurations and all platforms: "bin\$(Platform)\$(Configuration)".
Compiling the dependencies
At first the dependencies need to be compiled for x64. This is quite easy because you simply have to compile the "Debug|x64" and "Release|x64" targets and you should get your libraries and binarires without problems.
Choose the names of the output folders wisely because you will need them for CMake in the next step and a clear file structure makes life easier.
Make sure that zlib.lib and zziplib.lib copy to the debug and release directories. If they don't, you will need to manually copy them.
Using CMake
When we are running CMake we have to choose a different generator then for x86 builds. It's the same name but with the postfix "Win 64". The output project files will only contain x64 targets (and the default CMake generated projects that are not needed).
Besides of the generator you also have to change the names and paths to the dependencies files if you didn't keep them as for the x86 build.
Building Ogre
Ogre can be built without modifications because CMake has generated x64 projects and linked to the x64 binaries/libraries.
Building Mogre
For Mogre we have to create a solution platform called "x64" since in the default dowload it doesn't exist. Therefore go to the properties window of the Mogre project and click on configuration manager in the right top corner. From the list of platforms you can choose "New" and then you select "x64" from the list.
Now we are using batch build for building the "Debug|x64" and "Release|x64" targets.
Recompile Ogre
At last we have to recompile Ogre to make it link back to Mogre but again no changes are necassary.
Conclusion
Actually there are only some small chganges necessary to build Mogre for x64 systems. Keep in mind that all other steps to build Mogre need to be taken as well, this page simply points out which steps have changed!
Contributors to this page: idcsteve
,
mcdonte
and
Beauty
.
Page last modified on Thursday 09 of February, 2012 15:50:33 UTC by idcsteve
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.

