Nachtwind
24-09-2005 11:48:25
Hi.
I have some problems following your Wiki entry (
http://www.ogre3d.org/wiki/index.php/OgreNet) at the point where swig is used. It is said it would be invoked on the .i files, but i dont know what that means :/
May someone tell me, or even have some place where the full wrapper can be found for download (Yes, i know... i am lazy

)
EagleEye
24-09-2005 17:59:53
Check out this pic:
See how that .i file is in the OgreBindings project? The COMPILE option of that file does this:
See the custom build step? It's telling the compiler to use THAT command line to compile that file. Basically it's invoking an external compiler (swig), which generates the .cs files you need to compile the rest of the project.
The solution should be set up to compile the bindings projects before trying to compile the others, so the .cs files will be created before you attempt to compile anything else.
If not, then just compile twice, or manually hit that compile option on all 3 of the bindings projects.
Nachtwind
24-09-2005 21:53:46
Thank you for that guide
Unfortunately this doesn't work here :/
I can't load the CVSed vcProj project in SharpDevelop. Is this somehow incompaatible (dont think so).
Is there any precompiled wrapper arround?
*keeps trying*
Maleficus
24-09-2005 22:01:59
You should have mentioned you were using sharpdevelop.
I don't know if sharpdevelop has the equivalent of build events, but if it does, use this:
"%SWIG_HOME%\swig.exe" -c++ -csharp -namespace OgreDotNet -I"%OGRE_HOME%\include" OgreBindings.i
This is the command line for swig to execute and generate the .cs files. Substitute OgreBindings.i with CeguiBindings. i for CeguiDotNet and so forth.
If sharpdevelop doesn't have custom build events, you can just call that from the command prompt. You could setup a batch file or something
Good luck!
PS we aren't providing precompiled binaries yet: development is too active and early, and stuff gets changed/broken/otherwise altered on a daily basis.
Nachtwind
24-09-2005 22:07:41
It does allow cusom build but is not able to load VSProj files. *Sln is not a problem.
Somehow i think about the thing of making a nightly batch update of the wrapper and provide it somewhere.. i once was in a Ultima Online Server Emulator project that had such kind of thing.. What do you think about it?
Maleficus
24-09-2005 22:11:57
Well in honesty you're not the first person to ask.
So what I'll do is at the end of a hard days coding I'll just stick OgreDotNet.dll, CeguiDotNet.dll, and OgreDotNet.Cegui.dll in a zip file, and upload it to my webspace.
People will still need to do a checkout from cvs to see the demos or have the config files though.
Nachtwind
24-09-2005 22:23:51
well, that will be good, too.
Thank you