Results 1 to 1 of 1
Hi,
I just installed wxwidgets and opengl on Ubuntu 10.10, and tried to compile the opengl/wxwidgets example taken from the wxwidgets-wiki: WxGLCanvas
My compilation line is
Code:
gcc my_program.cpp `wx-config ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-30-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 1
opengl compilation error
Hi,
I just installed wxwidgets and opengl on Ubuntu 10.10, and tried to compile the opengl/wxwidgets example taken from the wxwidgets-wiki: WxGLCanvas
My compilation line is
This seems to work, and produces the executable file a.outCode:gcc my_program.cpp `wx-config --cxxflags --libs --gl-libs` -lglut
When I try to run a.out, I get the following error:
Any ideas? Unfortunately I don't know how to do a --sync or backtrace...Code:The program 'a.out' received an X Window System error. This probably reflects a bug in the program. The error was 'BadDrawable (invalid Pixmap or Window parameter)'. (Details: serial 319 error_code 9 request_code 137 minor_code 8) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)


Reply With Quote
