[SOLVED]Compiling PLSM2 demo (SDK)

Lshink

16-02-2006 03:52:27

Hello,

First time posting here, and yes, I am very new to using Ogre and PLSM2. Its unfortunatly part of my research, if it has all of the features I need.

Anyways, I've recently managed to be able to successfully compile the PLSM2 Demo, however I'm having a bit of trouble attempting to run it. When I try to run it, it simply brings up a Windows crash error (you know the one where it asks you if you want to send data to Microsoft).

Anyways, I'm a bit confused on why it doesn't work since it compiled without errors. Here is my Ogre.log if that possibly helps any:

22:26:37: Creating resource group General
22:26:37: Registering ResourceManager for type Material
22:26:37: Registering ResourceManager for type Mesh
22:26:37: Registering ResourceManager for type Skeleton
22:26:37: Loading library OgrePlatform.dll
22:26:37: OverlayElementFactory for type Panel registered.
22:26:37: OverlayElementFactory for type BorderPanel registered.
22:26:37: OverlayElementFactory for type TextArea registered.
22:26:37: Registering ResourceManager for type Font
22:26:37: ArchiveFactory for archive type FileSystem registered.
22:26:37: ArchiveFactory for archive type Zip registered.
22:26:37: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
22:26:37: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
22:26:37: Registering ResourceManager for type HighLevelGpuProgram
22:26:37: Loading library .\RenderSystem_Direct3D7
22:26:37: Direct3D7 Rendering Subsystem created.
22:26:37: ----- DirectDraw Detection Starts
22:26:37: Detected DirectDraw driver Primary Display Driver
22:26:37: Detected DirectDraw driver NVIDIA GeForce Go 6800
22:26:37: ----- DirectDraw Detection Ends
22:26:37: Loading library .\RenderSystem_Direct3D9
22:26:37: D3D9 : Direct3D9 Rendering SubSystem created.
22:26:37: D3D9: Driver Detection Starts
22:26:37: D3D9: Driver Detection Ends
22:26:37: Loading library .\RenderSystem_GL
22:26:37: OpenGL Rendering Subsystem created.
22:26:37: Loading library .\Plugin_ParticleFX
22:26:37: Particle Emitter Type 'Point' registered
22:26:37: Particle Emitter Type 'Box' registered
22:26:37: Particle Emitter Type 'Ellipsoid' registered
22:26:37: Particle Emitter Type 'Cylinder' registered
22:26:37: Particle Emitter Type 'Ring' registered
22:26:37: Particle Emitter Type 'HollowEllipsoid' registered
22:26:37: Particle Affector Type 'LinearForce' registered
22:26:37: Particle Affector Type 'ColourFader' registered
22:26:37: Particle Affector Type 'ColourFader2' registered
22:26:37: Particle Affector Type 'ColourImage' registered
22:26:37: Particle Affector Type 'ColourInterpolator' registered
22:26:37: Particle Affector Type 'Scaler' registered
22:26:37: Particle Affector Type 'Rotator' registered
22:26:37: Loading library .\Plugin_CgProgramManager
22:26:38: Loading library .\Plugin_PagingLandScapeSceneManager2
22:26:38: *-*-* OGRE Initialising
22:26:38: *-*-* Version 1.0.6 (Azathoth)
22:26:42: *-*-* OGRE Shutdown
22:26:42: Unregistering ResourceManager for type Font
22:26:42: Unregistering ResourceManager for type Skeleton
22:26:42: Unregistering ResourceManager for type Mesh
22:26:42: Unregistering ResourceManager for type HighLevelGpuProgram
22:26:42: Unloading library .\Plugin_PagingLandScapeSceneManager2
22:26:42: Unloading library .\Plugin_CgProgramManager
22:26:42: Unloading library .\Plugin_ParticleFX
22:26:42: *** Stopping Win32GL Subsystem ***
22:26:42: Unloading library .\RenderSystem_GL
22:26:42: D3D9 : Shutting down cleanly.
22:26:42: D3D9 : Direct3D9 Rendering SubSystem destroyed.
22:26:42: Unloading library .\RenderSystem_Direct3D9
22:26:42: *-*-* Direct3D Subsystem shutting down cleanly.
22:26:42: Direct3D7 Rendering Subsystem destroyed.
22:26:42: Unloading library .\RenderSystem_Direct3D7
22:26:42: Unregistering ResourceManager for type Material
22:26:42: Unloading library OgrePlatform.dll


I'm not sure what technical information could help with the windows crash dialog, but let me know what to get and I'll be glad to post it. Also, my compiled version of the demo only weights in at ~68kb, while the demo itself is ~75kb. Kinda strange.

Any help would be appreciated. Thanks in advance :)

tuan kuranes

16-02-2006 09:21:00

CVS or SDK ?
Did you succeed in using Binary demo SDK before ?
Did you run mapslitter ?

Lshink

16-02-2006 12:57:20

CVS or SDK ?

SDK

Did you succeed in using Binary demo SDK before ?

Yes, and actually what I tried also was copying the demo application over and running it to see if it was possibly perhaps my data (media), but it runs fine.

Did you run mapslitter ?

Yup, sure did.


I'll try rebuilding from scratch and running mapsplitter again. Maybe something possibly went wrong.

Thanks for the help so far though! :)

tuan kuranes

16-02-2006 13:24:57

So fast segfault may comes from wrong linkage - dll version.
Make sure you do compile against, link and use dll from same version (azatoth SDK and azatoth dependencties). Don't use dll coming from binary SDK.

Try to run debug version and get the call stack.

Lshink

16-02-2006 15:54:04

Yup, it was the wrong DLLs -- I was trying to use the ones from the binary SDK, replaced them with the ones in \Samples\Common\bin\Release\ and it worked perfectly!

Thanks so much! :)