Could not load dynamic library OgrePlatform.dll

Problems building or running the engine, queries about how to use features etc.
Mace
Gnoblar
Posts: 2
Joined: Sun Jan 23, 2005 6:07 pm
Location: Sweden

Could not load dynamic library OgrePlatform.dll

Post by Mace »

Hi.
Ive downloaded and managed to compile the API and Samples today,
although i get this error when trying to compile a new project for my base code.

--------------------------
Error #: 9
Function: DynLib::load
Description: Could not load dynamic library OgrePlatform.dll. System Error: Unknown Error.
File: c:\dev\api\ogrenew\ogremain\src\ogredynlib.cpp
Line: 83
Stack unwinding: DynLib::load(..) <- <<beginning of stack>>
--------------------------

Ive set up the project settings exactly like instructed in the wiki guide and it all compiles fine, except that i get this error when trying to run the application.

Any ideas what might be wrong?
Lodes
Google Summer of Code Student
Google Summer of Code Student
Posts: 228
Joined: Mon Mar 17, 2003 12:02 am
Location: San Jose, CA, USA

Post by Lodes »

Look in the Samples/Common/bin/Release and Debug folders there you will see there are a few dlls and files that you must copy over to where your executable is.

OgrePlatform.dll is one of the files, you will also need resources.cfg and such. You might even need to edit the various .cfg files to fit your project directory structure and might have to copy a few files off of Samples/Common /Media if you are using some ogre resources. Hope that helps.

I am pretty sure some ogre docs do cover this, been a long time since I've gone through them though so can't know for sure.

EDIT: haha, found your answers in the faq, http://www.ogre3d.org/docs/FAQ.html just read it through, you'll find your answers.

This link explains a few other things: http://www.ogre3d.org/docs/Readme/ReadMe_Building.html
Mace
Gnoblar
Posts: 2
Joined: Sun Jan 23, 2005 6:07 pm
Location: Sweden

Post by Mace »

hm, i compiled the stlport and it removed that problem and created another.
I didnt use stlport since i had .NET 2003 and i read somewhere that it works too, although not 100% compatible.

When i compile stlport i get these file among others:
stlport_vc7_stldebug.lib
stlport_vc7_stldebug.dll

But the compiler asks for:
stlport_vc71_stldebug.lib

I tried renaming the lib/dll but without success..
User avatar
PeterNewman
Greenskin
Posts: 128
Joined: Mon Jun 21, 2004 2:34 am
Location: Victoria, Australia

Post by PeterNewman »

When you compile STLPort you need to follow the 7.1 instructions, not the 7 instructions, there's a slight difference. (Different config file I think).