farm
10-08-2006 00:27:17
Hello!
First, I must say that yes, I am a newbie with OGRE.
I have some problems using OGRE.Net in C# (Visual Studio 2005 Pro).
I have downloaded the SDK version 1.2.2 from SourceForge, then the OgreDotNet from the CVS, just as the wiki says (Ogre SDK into D:\OGRESDK, dotnet into an ogreaddons\ogredotnet subfolder - no spaces or whatsoever), then downloaded SWIG and installed it properly.
I have managed to compile both the c++ projects (OgreDotNet_vc8.sln) and the c# ones (OgreDotNet_vcs8.sln) as well, excluding those using Gangsta, because as for now, I don't need them.
Then I have created a new console app, again, just as the wiki says. Dropped the appropariate files in the bin\debug folder, added the references, then pressed build. The build succeded, and I was happy. For at most a second, until I get the following error: "Unable to load DLL 'OgreBindings': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". Then, I have tried to get some help: I googled a bit, and found this: http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=821. I got happy again, that others had this problem as well, and it seems they could solve it. I have restarted everything from scratch, and followed the steps ElectricBliss wrote, as his problem could be solved. The only exception is that I have used SDK version 1.2.2, as mentioned above.
But, here is something: I DO have the Ogrebindings.dll in the bin\debug directory.
My application's code is the following:
This really should work, I think (this is a copy-paste from the wiki).
As I hope you see, I have tried to be an as-good-as-possible newbie, looked for answers before asking stupid questions. However, the aswers did not work in my case.
I have more than 12 hours in making it work, without success. Please, tell me what did I do wrong (or did not do at all), as I would really like to use OGRE.
Thank you:
Farm
First, I must say that yes, I am a newbie with OGRE.
I have some problems using OGRE.Net in C# (Visual Studio 2005 Pro).
I have downloaded the SDK version 1.2.2 from SourceForge, then the OgreDotNet from the CVS, just as the wiki says (Ogre SDK into D:\OGRESDK, dotnet into an ogreaddons\ogredotnet subfolder - no spaces or whatsoever), then downloaded SWIG and installed it properly.
I have managed to compile both the c++ projects (OgreDotNet_vc8.sln) and the c# ones (OgreDotNet_vcs8.sln) as well, excluding those using Gangsta, because as for now, I don't need them.
Then I have created a new console app, again, just as the wiki says. Dropped the appropariate files in the bin\debug folder, added the references, then pressed build. The build succeded, and I was happy. For at most a second, until I get the following error: "Unable to load DLL 'OgreBindings': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". Then, I have tried to get some help: I googled a bit, and found this: http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=821. I got happy again, that others had this problem as well, and it seems they could solve it. I have restarted everything from scratch, and followed the steps ElectricBliss wrote, as his problem could be solved. The only exception is that I have used SDK version 1.2.2, as mentioned above.
But, here is something: I DO have the Ogrebindings.dll in the bin\debug directory.
My application's code is the following:
using System;
using System.Drawing;
using OgreDotNet;
using Math3D;
namespace TutorialApplication1
{
class TutorialApplication : ExampleApplication
{
protected override void CreateScene()
{
}
//[STAThread]
static void Main(string[] args)
{
using(TutorialApplication app = new TutorialApplication())
{
app.Start();
}
}
}
}
This really should work, I think (this is a copy-paste from the wiki).
As I hope you see, I have tried to be an as-good-as-possible newbie, looked for answers before asking stupid questions. However, the aswers did not work in my case.
I have more than 12 hours in making it work, without success. Please, tell me what did I do wrong (or did not do at all), as I would really like to use OGRE.
Thank you:
Farm