After some code changes i manage to compile it now on linux, but i get a segmentation fault while starting...
After checking the backtrace, the problem must to do with the global new in OgreMemoryManager.h.
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x00e282fe in wxWindow::DoAddChild () from /usr/lib/libwx_gtk2-2.4.so.0
#2 0x00e195c5 in wxStaticText::Create () from /usr/lib/libwx_gtk2-2.4.so.0
#3 0x00e197db in wxStaticText::wxStaticText () from /usr/lib/libwx_gtk2-2.4.so.0
#4 0x08094445 in PanelEnvironment (this=0x93459f8, parent=0x92fe698, pos=@0xbff18ef8, size=@0xbff18ef0) at OgreMemoryManager.h:409
#5 0x0808e2fb in FrameOgreToolbox (this=0x92bb6e8, title=@0xbff18ff0, pos=@0xbff18fe8, size=@0xbff18fe0) at OgreMemoryManager.h:409
#6 0x08060af6 in ApplicationOgreToolbox::OnInit (this=0x92bb320) at OgreMemoryManager.h:409
#7 0x00dd5d80 in wxEntry () from /usr/lib/libwx_gtk2-2.4.so.0
#8 0x08060a83 in main (argc=1, argv=0xbff19144) at ApplicationOgreToolbox.cpp:26
I tried to place #include <OgreNoMemoryMacros.h> after ogre header includes, but it doesn't seem to work. Maybe i'm wrong.
I do not know wxwindows, but it seems to me, that embracing the wxwindows includes with #include <OgreNoMemoryMacros.h> ... #include <OgreMemoryMacros.h>. No guarantee though. Such memory allocation bugs are annoying.
Please note that a static box should not be used as the parent for the controls it contains, instead they should be siblings of each other. Although using a static box as a parent might work in some versions of wxWindows, it results in a crash under, for example, wxGTK.
wxStaticBox *sbSkyBoxSettings = new wxStaticBox(this,-1,"Skybox settings",wxPoint(5,60),wxSize(240,130));
new wxStaticText(sbSkyBoxSettings,-1,"Skybox:",wxPoint(10,20));
Changes:
* 0.1 RC1 is progressing and I'm updating the Grid with properties to a PropertiesGrid (like the one in .Net and in Chronos).
* I switched to wxWidgets 2.5.4.
* Site has been launched http://ogretoolbox.sf.net
These changes are not in the zip here on the forum, but will be in the 1.0 RC release. All that's left to do is to convert the object properties to the new propertygrid.
Can I change the SceneManager at Runtime as the Exterior scene manager is complaining on Ray Queries in scenes with no terrain?