Page 1 of 1

Compiling Ogre with VS2013 (RC, then RTM)

Posted: Wed Sep 11, 2013 7:31 pm
by Klaim
Today I decided to try see the cost of converting my project to VS2013. To my surprise it was far easier than VS2010->VS2012 (except having to get Boost from trunk and recompile all of it completely). Here is the part relative to Ogre:

1. Very Good News: Ogre 1.9 sources (2f4fcc6507123ac6eca1ede7da4af45c736542c9) compiles (32bit) and run just fine in my current setup without any modification to the sources nor CMake! Congrats! :D
2. Less Good News: Ogre Dependencies don't compile but the fix is easy - basically min() and max() calls in FreeImage are missing inclusion of the algorithm header in several CPP files (I suppose it's not missing in FreeImage headers as these headers don't seem to expose standard C++ headers). The following is the list of the cpp files that need to add '#include <algorithm>', as I don't know exactly where it should be reported, here or in the repo or to FreeImage (is it directly taken from them or is it a modified version?):

ImfAcesFile.cpp in ogre_dependencies\src\FreeImage\Source\OpenEXR\IlmImf
ImfOutputFile.cpp in ogre_dependencies\src\FreeImage\Source\OpenEXR\IlmImf
ImfScanLineInputFile.cpp in ogre_dependencies\src\FreeImage\Source\OpenEXR\IlmImf
ImfTiledMisc.cpp in ogre_dependencies\src\FreeImage\Source\OpenEXR\IlmImf
ImfTiledOutputFile.cpp in ogre_dependencies\src\FreeImage\Source\OpenEXR\IlmImf

3. Once this is fixed, my app seems to run the same way than with VS2012, so I guess that's a success. :mrgreen:
4. However I didn't try to compile the full Ogre sources, with samples, yet. I'm preparing to do so (also to hunt another bug I pointed there:

I'll report here if I find more errors.

Re: Compiling Ogre with VS2013 (RC)

Posted: Thu Sep 12, 2013 6:06 pm
by Klaim
1. I compiled the all Ogre targets with no problem (32bit) other than the dependencies needing the previously mentionned fix;
2. By default, the CMake config will never generate the Sample projects if you dont turn OGL3+ renderer on;
3. OGL3+ renderer fails to load into the Sample Browser at the moment;

I tried in Release and ReleaseWithDebugInfo modes, just run the Sample Browser and started a random sample. I didn't try all samples.

Re: Compiling Ogre with VS2013 (RC)

Posted: Mon Oct 07, 2013 8:47 am
by Transporter
Wait for the release of VS2013. I had the same issue with a few headers at VS2012 RC.

Re: Compiling Ogre with VS2013 (RC, then RTM)

Posted: Sat Oct 19, 2013 12:59 am
by Klaim
Got the VS2013 RTM, and after reporting errors in Boost I'm getting back here but I didn't have time to get in depths. Quick preview:

1. OgreMain compiles (at least in my project's build) but it's not a recent revision of 1.9, I didn't change it since my initial message (other than the patches I provided);
2. RenderSystem GL compiles (in my project, same revision)
3. In my project, all Ogre projects relying on tbb seem to not be able to link with it (in Debug at least, didn't find the time to test other builds) but I think it's more related to my project;

I'll try to compile the sample browser this weekend instead of my project, but globally it looks good.