Using OpenGL thru wxWidgets, need help
I'm following OpenGL Game Development book. It describes the creation of Editor and Engine (unfortunately, using VC++).
I need to create a simple User Interface to use OpenGL thru it. Some people advised me to use wxWidgets... and it seems quite good to me. But: I can't run wxWidgets OpenGL samples. Errors cube.h cube.cpp Makefile What should I do? Thanks. |
Well, sorry. I'm a fool.
I've made a little editing in cube.cpp and spoiled it a bit:) But here's the error I get now: Code:
kornerr@darkstar:~/cpp/wx/samples/opengl/cube$ make Or there's smth wrong with my Gtk? Thanks. |
It's not finding your wx_gtk_gl library, either because you don't have it installed, or it's not in your search path. If it is installed, add the path to it in your search path by using -L/path/to/lib.
I just did a quick search on my system and found /usr/local/lib/libwx_gtk_gl-2.4.so, so it's possible you need to change -lwx_gtk_gl to -lwx_gtk_gl-#.# where #.# is the version you have installed. |
"slocate libwx_gtk_gl" gives me nothing.
I've installed wxWidgets, but why don't I have this lib? Is this a part of wxWidgets? What should I do? Thanks. |
I don't remember for sure, but I seem to recall having to compile wxWidgets with OpenGL support. I never really did much with OpenGL in wxWidgets beyond getting a simple app working.
|
Thanks, deiussum.
I needed "lwx_gtk2_gl-2.6" :) |
All times are GMT -5. The time now is 03:37 PM. |