[ solved ] OgreNewt + linux problems

ForgottenMaster

14-12-2008 23:31:10

Hi,

I am trying to compile the OgreNewt demo number 5 on a linux machine. It compiles fine, but when I run it, it crashes on initialisation. Running through the gdb tells me that the point which caused the segfault is actually ExampleFrameListener.h in the windowResized method, at the point where the width and height are being assigned to the mouse state width and height. ( more accurately at the point where the width is being assigned )

I am guessing that this means the mouse state does not exist at that point so that trying to access its' width and height components causes a segfault.

All of the standard ogre sample programs run fine on my machine. Another program I wrote for my university coursework using Ogre and OgreNewt runs fine on the windows machines at uni, but also segfault on my linux machine.

Does anybody know how this could be fixed?

Thanks in advance

ForgottenMaster

16-12-2008 12:12:19

Sorted it out. It wasn't an OgreNewt specific problem. Just that linux didn't like programs built with codeblocks for some reason