how to load libOgre.dll while using Ogre.dll

Problems building or running the engine, queries about how to use features etc.
Post Reply
DJDQfff
Gnoblar
Posts: 3
Joined: Wed May 18, 2022 11:30 am

how to load libOgre.dll while using Ogre.dll

Post by DJDQfff »

I am new to use Ogre,when i try the Ogre.dll,i get a wrong.

"DllNotFoundException: Unable to load DLL 'libOgre' or one of its dependencies.Can't find the module"

The code :Root root =new Root

Language:C#

The Ogre.dll is in the folder "ogre-sdk-v13.3.4-msvc141-x64\lib\cli\ogre-sharp-13.3.4"

I download the package from official download page,specific the MSVC SDK(v141 toolset, x64, Python 3.7, Java JNI, .NET).

This version seems to be specificly build for C#,and i get the ogre.dll in the path above.
It actually can be recognized in Visual Studio 2019 .I can find the classes of ogre.
But when i run the project, it throw the exceptions.
I don't know how to solve it.

DJDQfff
Gnoblar
Posts: 3
Joined: Wed May 18, 2022 11:30 am

Re: how to load libOgre.dll while using Ogre.dll

Post by DJDQfff »

I did it ,and run "dotnt run "the project succeffuly,but whne i run it in vs2019, it will still throw a exception

Post Reply