Problems with running Ogre samples under MVC++ .Net 2003

Problems building or running the engine, queries about how to use features etc.
Baldrake
Halfling
Posts: 63
Joined: Tue Apr 13, 2004 1:09 am

Problems with running Ogre samples under MVC++ .Net 2003

Post by Baldrake »

I've been having trouble executing the samples provided with the Ogre distribution. I am using:
  • Ogre 0.15.1
  • Dependencies 0.13.0
  • STLPort 4.6.2
I installed as per instructions and set up the appropriate lib and include paths, and compiled both release and debug configurations.

The samples run fine in debug mode within VC++.

When I run them in release mode, I get a warning message like: "'Demo_Shadows.exe' does not contain debugging information. (No symbols loaded.) Click OK to debug anyway." I'm not sure why I'm getting this, as I'm not attempting to debug.

When I try to run them outside VC++ (by double-clicking the executable), I get a cascade of problems with libraries not being found. When I add the library locations to the PATH environment variable, eventually I get the error:

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


I'm far from expert with the VC++ environment, so I assume there's some trivial setting I have wrong...

Thanks for any ideas!
User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark

Re: Problems with running Ogre samples under MVC++ .Net 2003

Post by DWORD »

Baldrake wrote:When I run them in release mode, I get a warning message like: "'Demo_Shadows.exe' does not contain debugging information. (No symbols loaded.) Click OK to debug anyway." I'm not sure why I'm getting this, as I'm not attempting to debug.
You should "Start Without Debugging" (Ctrl+F5).
Baldrake wrote:When I try to run them outside VC++ (by double-clicking the executable), I get a cascade of problems with libraries not being found. (...)
You should be running the samples from the ogrenew/Samples/Common/Bin/Release or Debug folders.
Baldrake
Halfling
Posts: 63
Joined: Tue Apr 13, 2004 1:09 am

Post by Baldrake »

Thank you, Christian!
thebjoern
Gnoblar
Posts: 1
Joined: Tue Jan 18, 2005 3:36 pm
Location: Austria

Post by thebjoern »

On a sidenote: For .net 2003 you dont need the STLport anymore... will work just fine without it
Baldrake
Halfling
Posts: 63
Joined: Tue Apr 13, 2004 1:09 am

Post by Baldrake »

Yep.. FWIW, the docs are inconsistent on whether STLPort is needed or not. I first tried without and was getting linker errors, so I am now using it...