User forums > Using Code::Blocks
OpenGL wxSmith wxAui
stahta01:
--- Quote from: gd_on on January 18, 2011, 04:20:25 pm ---So, I tried to install and use wxWidgets 2.9.1, but first I had problems when building the library : I have found through this forum and some others that it seems necessary to add a USE_STC=0 on the make line, and set explicitly wxUSE_STC = 0 in setup.h.
--- End quote ---
The above is needed if you wish to build Code::Blocks from source using wxWidgets 2.9.x as the wxWidgets used inside Code::Blocks. To use wxWidgets with your application you need to build it as needed by your app NOT by what the Code::Blocks app needs.
If you wish to use wxWidgets opengl you need to build wxWidgets with the option enabled.
Like was mentioned in
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.9_Monolithic_Build_with_openGL_for_Windows
Tim S.
gd_on:
I know that (and this wiki page too : I think I have correctly followed instructions because wxWidgets opengl specific samples work as expected).
If I don't enter wxUSE_STC=0, wxWidgets 2.9.1 compilation itself fails at link time, when building the library (.a and/or .dll file) : a problem with wxTheAssertHandler.
I have also verified that wxUSE_GLCANVAS is correctly set in setup.h.
The OpenGL window works as expected in NeHe/seb_seb0 examples. It's an other problem with some events not correctly set, I think. Certainly because I do something wrong, but what ?
gd_on
stahta01:
Opps, my mistake. I really have no idea what to suggest. wxSmith is not really something I use.
I am OK on Compiler/Linker error fixing; but, not the good on wxWidgets runtime issues.
Tim S.
Navigation
[0] Message Index
[*] Previous page
Go to full version