Help needed - ogremain crash

Problems building or running the engine, queries about how to use features etc.
yueelien
Gnoblar
Posts: 1
Joined: Wed Jan 05, 2005 9:18 pm

Help needed - ogremain crash

Post by yueelien »

hello all.

i just install Ogre distrib and compile it entirely (no errors, some lill warn)

but when i try to run a sample (like demo_water or others) prog crash (with each rendering method)

Any ideas ?

AMD 3000+ 512mo
Radeon 9800 Pro
sys Windows XP
Compilo VC6++ compiled in Release Mode

T i A
User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark

Post by DWORD »

I think you need to provide more details. You should run the demos from the ogrenew/Samples/Common/bin/Release or Debug folder, otherwise they can't find the necessary files.

If that's not the problem, try building in debug mode, and see if that gives some more information when running. Try posting the log from a debug run.
kingsley
Gnoblar
Posts: 2
Joined: Sun Jan 09, 2005 2:31 am

Post by kingsley »

Hi, I am a newbie as well setting up for the first time.
I also got the same error when running from inside VS7.
It throws an uncaught exception when trying to open "ogre.cfg".
When you run the exe directly from its directory it works fine - however you loose the convenience of running it straight from VS. Is this normal?


-----------------------------

12:33:59: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ConfigFile::load
Description: 'ogre.cfg' file not found!.
File: c:\ogre\ogremain\src\ogreconfigfile.cpp
Line: 48
Stack unwinding: <<beginning of stack>>

-----------------------------

Kingsley
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 »

kingsley:
Pressing ctrl F5 will still throw this exception but it won't ask you about it and if you're trying to debug by pressing F5, just click continue instead of break when it asks you and the demo will start just fine.

PS: I always forget stuff :) After you run a demo once, ogre.cfg will be created so it won't throw that exception anymore.
kingsley
Gnoblar
Posts: 2
Joined: Sun Jan 09, 2005 2:31 am

Post by kingsley »

Thanks Lodes,

I was able to build and run tutorial 1 which in turn must have created ogre.cfg. The demos all run fine now (that is those that my humble graphics card can handle :)