Hi,
I'm trying to use NeHe and NeHeAUI projects (in the zip files above given by seb_seb0) but I meet some problems with wxwidgets.
I have wxWidgets 2.8.11 version and I work with Win XP SP3. My compiler is gcc 4.5.1, TDM version sjlj. I use a self compiled C::B, svn 6820.
I need some adaptations in the cbp projects but they compile and link.
Problems happens at execution :
The File/Quit menu does nothing, a click on the cross at the right top of the window does nothing too. The only way to stop the program is to kill it with the task manager (or within Code::Blocks with the taskbar stop button). An other (bad) solution, is to add exit(0); after the Close() instruction in onQuit : this works for the Quit menu but not for the standard cross exit icon.
If I click on the menu Help/About, I ear a beep but the message box is not displayed. It appears if I press the Alt key.
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. But is it all I need to do ?
Obviously not, because the problems are not all solved.
With this new lib, the Quit menu and the cross icon to stop the program now work (without this ugly exit(0)
. Nevertheless, the help/About has always the same reaction : program seems to hang (waiting an event ?) unless I press the Alt key.
With NeHeAUI version (but not with NeHe version), I obtain also an error message at Quit, telling me that "GetEventHandler() == this" failed because some event handlers have not been removed.
Probably, my wxWidgets build command is not the right one (for 2.9.1 but may be also for 2.8.11).
I use for 2.8.11 :
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release USE_OPENGL=1
I have tried SHARED=0 to obtain only static libs, (now in gcc_lib sub folders instead of gcc_dll) but this does not really change the behavior of the programs.
for 2.9.1, as told before, I add USE_STC=0.
I can also add that the different samples or wxWidgets examples work normally, and particularly the opengl penguin example, which I want to use as a start base for a future work. So, is it also a problem with wxsmith ?
If someone can give me some more information... (if someone as already adapted the opengl penguin sample to wxsmith ...
)
thanks
gd_on