GunterD
23-10-2009 00:07:56
I'm trying to build OgreDotNet in Windows using Visual Studio.
I downloaded the code from the site indicated in the OgreDotNet Revival thread. I have installed the Ogre 1.4.9 SDK and have swigwin version 1.3.40. I ran cmake in my C:\OgreDotNet folder, and it ran successfully and created OgreBindings.sln for me. I compiled that solution, and it ran successfully, creating OgreBindings.dll and others in C:\OgreDotNet\bin\debug.
I ran runprebuild.bat and it successfully created OgreDotNet.sln for met. I opened and compiled that solution, and it built successfully, so everything seemed to be working alright.
However, I tried to run the DemoSimple application to test that it worked, and I got the following exception thrown from line 113 in Root.cs. System.TypeInitializationException - "The type initializer for 'OgreDotNet.OgreBindingsPINVOKE' threw an exception" Looking down at the InnerExceptions, it said "The type initializer for SWIGExceptionHelper threw an exception", and under that "Unable to load DLL 'OgreBindings': The specified module could not be found".
I tried looking elsewhere in the forums, and it seemed the fix to similar problems in the past was to either change the SDK to version 1.2.0 (which I would think shouldn't apply here) or to copy DLLs from the SDK over into the folder. I've tried every combination of copying dll's I can think of without any effect.
Am I doing something obviously wrong here?
I downloaded the code from the site indicated in the OgreDotNet Revival thread. I have installed the Ogre 1.4.9 SDK and have swigwin version 1.3.40. I ran cmake in my C:\OgreDotNet folder, and it ran successfully and created OgreBindings.sln for me. I compiled that solution, and it ran successfully, creating OgreBindings.dll and others in C:\OgreDotNet\bin\debug.
I ran runprebuild.bat and it successfully created OgreDotNet.sln for met. I opened and compiled that solution, and it built successfully, so everything seemed to be working alright.
However, I tried to run the DemoSimple application to test that it worked, and I got the following exception thrown from line 113 in Root.cs. System.TypeInitializationException - "The type initializer for 'OgreDotNet.OgreBindingsPINVOKE' threw an exception" Looking down at the InnerExceptions, it said "The type initializer for SWIGExceptionHelper threw an exception", and under that "Unable to load DLL 'OgreBindings': The specified module could not be found".
I tried looking elsewhere in the forums, and it seemed the fix to similar problems in the past was to either change the SDK to version 1.2.0 (which I would think shouldn't apply here) or to copy DLLs from the SDK over into the folder. I've tried every combination of copying dll's I can think of without any effect.
Am I doing something obviously wrong here?