ok, managed to get Ogre and CEGUI working from source. I had to compile CEGUI with:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCEGUI_BUILD_PYTHON_MODULES=OFF -DCEGUI_BUILD_LUA_MODULE=OFF -DCEGUI_BUILD_LUA_GENERATOR=OFF
Since I have Boost 1.60 and python doesn't work, and lua which refuses to compile for reasons I don't really understand. I don't think it matters as I'm not using any of those yet.
I'm going to give a shot to my program and tell you how it went.
segfaults with notifyDisplaySizeChanged
Moderators: CEGUI MVP, CEGUI Team
Re: segfaults with notifyDisplaySizeChanged
I'm going to start with "OH MY GOD".
Allow me to explain how this got resolved:
After putting together my new libs and doing stuff in codeblocks to get it all working, and cleaning up my system, etc, etc... I've been having a new issue... At least, a different symptom:
After some googling around I found this post on the CEGUI forums: viewtopic.php?t=3391
I checked my code, and here's what I was doing:
I have in my Application class (it's like my base class) a method called createGUI() and another called createListeners(). What they do is pretty self explainatory. createGUI initialises CEGUI, and createListeners initialiases my different listeners including my WindowEventListener.
a go() method in the application class is in charge of executing said methods in a certain order... which was kinda wrong I now make sure to call createGUI() before createListeners().
Inside createListeners(), I manually call my windowResized method once, for reasons that I cannot seem to recall... Bottom line is, I can only do that once the GUI is properly setup, otherwise crashes occure and Kraken appears.
I cannot explain why the crash changed from a segfault to an assertion failed though... that one's a mystery. But the problem seems to be solved.
@yaronct: Did I get that right in your opinion ?
Allow me to explain how this got resolved:
After putting together my new libs and doing stuff in codeblocks to get it all working, and cleaning up my system, etc, etc... I've been having a new issue... At least, a different symptom:
Code: Select all
SpaceFuckery: /home/mobarre/snarchi/cegui/cegui/include/CEGUI/Singleton.h:78: static T& CEGUI::Singleton<T>::getSingleton() [with T = CEGUI::System]: Assertion `ms_Singleton' failed.
After some googling around I found this post on the CEGUI forums: viewtopic.php?t=3391
I checked my code, and here's what I was doing:
I have in my Application class (it's like my base class) a method called createGUI() and another called createListeners(). What they do is pretty self explainatory. createGUI initialises CEGUI, and createListeners initialiases my different listeners including my WindowEventListener.
a go() method in the application class is in charge of executing said methods in a certain order... which was kinda wrong I now make sure to call createGUI() before createListeners().
Inside createListeners(), I manually call my windowResized method once, for reasons that I cannot seem to recall... Bottom line is, I can only do that once the GUI is properly setup, otherwise crashes occure and Kraken appears.
I cannot explain why the crash changed from a segfault to an assertion failed though... that one's a mystery. But the problem seems to be solved.
@yaronct: Did I get that right in your opinion ?
Re: segfaults with notifyDisplaySizeChanged
I've re-tested with stock ogre and cegui libs from archlinux and now works like a charm !
Thanks a lot for the help on this one.
Cheers !
Thanks a lot for the help on this one.
Cheers !
Re: segfaults with notifyDisplaySizeChanged
@mobarre: sounds reasonable.. still a mystery y u encountered a problem and I didn't, but I'm too tired to investigate it..
good luck!
good luck!
Who is online
Users browsing this forum: No registered users and 10 guests