lopemanc
16-02-2006 14:49:55
I asked a question a few days back under the "Compiling ODN step by step" thread. Since I got no reply, I am now thinking I asked the wrong question.
I was trying to get ODN to compile under VS 2005 and not having a lot of luck. But maybe I don’t need to do this to use it. Some threads have mentioned prebuilt binaries. Where exactly can I get the prebuilt binaries to work with the latest OGRE release?
alberts
16-02-2006 15:53:16
ODN (I have tried 1.0.6) also compiles and runs with the EXPRESS edition of VS.NET 2005. You have to "swig" and build the bindings dlls with the C++ version of the ide and then compile ODN with the C# version. There is only a minor problem with the file Line3d.h, which you have to convert from mac to windows or unix codification.
What is exactly the error you get?
lopemanc
16-02-2006 16:33:38
Well actually it is not so much of an error, more like getting stuck. Your response has helped some. I was confused about what part to C++ versus C#.
If I understand I should open then sln file from within VS C++. Then go to a few of the ".i" files (as instructed in the wiki) and an individulaly compile them. If I understand this this will actually swig them and generate the CS file. If what I have stated is correct, then my problem is that the ".i" files are not present. Well at least they dont show int he solution browser. Tried existing and reentering to no avail. Am I on the right track? Any sugestions?
alberts
16-02-2006 18:23:53
Yes, you are on the right track.
I opened ogredotnet.sln file with the C++ ide and after converting it to a VS2005 version only the projects "CeguiBindings", "GangstaBindings", "OgreBindings" and "OgreBindings_Cegui" were available. The *.i files must be inside these projects. Be sure you don't accidentally removed them.
Remember to build the c++ solution after generating the *.cs files to create de *_bindings.dll files.
I used the ogreNet.sln file to open ODN in the C# ide. It is not needed to convert to the VS2005 version, but the projects "CeguiBindings", "GangstaBindings", "OgreBindings" and "OgreBindings_Cegui" were unavailable.
lopemanc
21-02-2006 15:05:31
Thanks. I am not sure what I did differently when following the steps this time but I did get further. In your last post you specify to complile the "GangstaBindings" file. I had not seen this request elsewhere. Do I need to download gansta separately first, because I dont seem to have all the files that it is looking for. I am assumming that gansta is not required to build and run ODN so I am going to try to proceed without it. Here's some of the errors I get:
GangstaBindings.i(37): Error: Unable to find 'GaPreReqs.h'
1>GangstaPtr.i(12): Error: Unable to find 'GaPtr.h'
1>GangstaTypes.i(11): Error: Unable to find 'GaTypes.h'
1>GangstaParameter.i(19): Error: Unable to find 'GaParameter.h'
rastaman
21-02-2006 16:54:44
hi lopemanc
you don't need to compile GangstaBindings or GangstaNet or DemoGAPyramid.
for gangstaNet you will need to download it seperatly and apply a patch to get it to work right. I never got around to adding instruction for it.