Swig not converting all the files?

Linenoise

27-09-2005 03:59:36

I haven't even started yet and I'm already stuck! I got the source from CVS, downloaded and installed swig 1.3.25, and installed the 1.04 ogre sdk. I didn't feel like shelling out a ton of money for the complete Visual Studio (I write code all day for a living, it's a hobby at home!), but I do have the Visual C# 2003. Of course, this means when I load the OgreDotNet solution, the .vcproj files won't work. No biggie - I grab the command line it was using to "compile" (ie, call swig) and run it at the command prompt - everything seems to go ok, except not all of the expected .cs files are made. OgreOverlay* for example - the .h file is present in the ogre SDK include directory, the file is referenced in OgreBindings.i, but no .cs is output - and no indication what went wrong. Help!

Maleficus

27-09-2005 04:03:31

Even if you get swig to do it's thing, you're only half way there. Those vc files have to build into an unmanaged dll, that act as an intermediary between the ogre dll and OgreDotNet. For that you'll need a c compiler in some form or another.

If you can't build the vc projects, use:

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=15

It'll only be a bit behind cvs commits. And when you consider nondevelopers have to wait 24 hours for cvs updates, this is more recent.