Updating the "building from source" wiki page

boinst

07-10-2009 06:31:20

Hey, as I'm trying to get Mogre 1.6 building from source, I'm working on updating the wiki following these instructions. If you have come across a better set of instructions to work from, or if anyone has any tips to offer for this process, please let me know!

Edit 1: First sign of success! Mogre 1.4 is building fine :) now on to Mogre 1.6.

boinst

12-10-2009 07:17:11

I'm nearly there, but not quite.

I'm following kelebron's build process word-for-word, but I get to step 6, and ./Mogre/Mogre/include/auto has an empty CLRObjects.inc file, which results in the following errors once I get to step 8:


d:\source code\mogre 1.6\mogre\ogre\ogremain\include\ogrearchive.h(82) : error C2504: 'CLRObject' : base class undefined
d:\source code\mogre 1.6\mogre\ogre\ogremain\include\ogrearchive.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\source code\mogre 1.6\mogre\ogre\ogremain\include\ogrearchive.h(84) : warning C4183: 'DECLARE_INIT_CLROBJECT_METHOD_OVERRIDE': missing return type; assumed to be a member function returning 'int'
d:\source code\mogre 1.6\mogre\ogre\ogremain\include\ogrehardwarebuffer.h(69) : error C2504: 'CLRObject' : base class undefined
d:\source code\mogre 1.6\mogre\ogre\ogremain\include\ogrehardwarebuffer.h(72) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\source code\mogre 1.6\mogre\ogre\ogremain\include\ogrehardwarebuffer.h(72) : warning C4183: 'DECLARE_INIT_CLROBJECT_METHOD_OVERRIDE': missing return type; assumed to be a member function returning 'int'

...and a long list of other nearly identical errors.

It's clear that I'm getting something wrong at the AutoWrap stage. Can anyone point me in the right direction? I went through every step to the letter, there were no discernible errors until the build stage.

GantZ

12-10-2009 11:49:56

re check step 3 and 4, patching and adding CLR file in the ogremain directory is the key point.

i 've also check you're batch file in the wiki, i have notice that you patch the ogre source after launching cpp2java, it must be done before.

good job otherwise, having an up to date build process in the wiki and an automated way of building mogre will greatly help other users :)

boinst

13-10-2009 06:38:01

You, sir are a gentleman and a saint. You nailed it right on the head. Build seems to be working perfectly :D Just need to test the binaries now.