I was just having a look at some code I once wrote (to continue working on it), but once I try to start this thingy, Xorg complains about some wrong window parameters:
Hmm, both the resolution and the depth/stencil combination should be supported. Now it would be intereseting which call does issue the first error. Another question: Do you use compiz or some other 3d extension of Xorg?
(gdb) run
Starting program: /home/marcel/code/c++/40tons/40tons
[Thread debugging using libthread_db enabled]
Irrlicht Engine version 1.4.1
Linux 2.6.25-9.slh.1-sidux-686 #1 SMP PREEMPT Tue Jun 24 23:26:13 UTC 2008 i686
Creating X window...
XErrorEvent: BadValue (integer parameter out of range for operation)
XErrorEvent: BadWindow (invalid Window parameter)
XErrorEvent: BadWindow (invalid Window parameter)
XErrorEvent: BadWindow (invalid Window parameter)
XErrorEvent: BadWindow (invalid Window parameter)
XErrorEvent: GLXBadDrawable
Could not make context current.
XErrorEvent: BadDrawable (invalid Pixmap or Window parameter)
XErrorEvent: BadWindow (invalid Window parameter)
[New Thread 0xb69276e0 (LWP 5636)]
XErrorEvent: BadDrawable (invalid Pixmap or Window parameter)
XErrorEvent: BadDrawable (invalid Pixmap or Window parameter)
Using renderer: OpenGL
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb69276e0 (LWP 5636)]
0xb7c7d1e0 in irr::core::fast_atof_move (c=0x0, out=@0xbffe27e4)
at ../../include/fast_atof.h:62
62 ../../include/fast_atof.h: No such file or directory.
in ../../include/fast_atof.h
This is what gdb tells me when I run my code in it. Not that it would help me further... It shouldn't need any header files at runtime anymore, should it?
Hmm, just a few hints for gdb first. Instead of 'step' which really does everything that is executed in between, you can also call 'next', which skips the details of the next command - you only need to call step when you need to look into the method...
And you can set breakpoints. Something like 'break irr::CIrrDeviceLinux::createWindow()' should work. Then just run the program and it will stop when enetering the method.
Ok, you trace exactly stops at the most important point. Up to now you just created the keymap, which is pretty boring But next, the window is created, which is the problem here...
Sorry if this sounds stupid, but I don't really get further on this:
I have told gdb to look into the irrlicht source directory (gdb ./40tons -d /home/marcel/code/c++/40tons/Irrlicht), but when I tell it to create a breakpoint at CIrrDeviceLinux.h:createWindow, it says this source file doesn't exist.
How do I tell it to look into this file? [getting frustrated... linux can be damn complex ]