Page 1 of 1

[SOLVED] Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Fri Mar 20, 2015 09:25
by TheSHEEEP
Hey there,

I built CEGUI successfully in linux and can use it in my program.
Now I am trying to get CEED to work, on linux too.
I followed the guide ( http://cegui.org.uk/wiki/CEED ) to build CEGUI for that purpose and did not get any errors.

CEED also does start, but as soon as I want to do something (like loading a project), I get the following error message:
An attempt was made to load resources related to the project being opened, for some reason the loading didn't succeed so all resources were destroyed! The most likely reason is that the resource directories are wrong, this can be very easily remedied in the project settings.

This means that editing capabilities of CEED will be limited to editing of files that don't require a project opened (for example: imagesets).

Details of this error: CEGUI::GenericException in function 'CEGUI::DynamicModule::DynamicModule(const CEGUI::String&)' (/home/thesheeep/cegui/cegui/cegui/src/DynamicModule.cpp:222) : Failed to load module 'libCEGUI.so': /usr/local/lib/cegui-0.8/libCEGUI.so: cannot open shared object file: No such file or directory

Looking at that path, libCEGUI.so is indeed missing. But all other libs are present (libCEGUIBase, etc.). And as I said, the build & make install did not yield any errors.

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Sat Mar 21, 2015 19:39
by Ident
I am not sure if I understand this right: You try to build CEED on Linux for Windows?

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Sat Mar 21, 2015 22:23
by TheSHEEEP
No. I try to build CEED on Linux for Linux :)

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Sat Mar 21, 2015 23:36
by Ident
Okay you expressed yourself very very ambiguously there. Unfortunately i only have experience building it on Windows.

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Sun Mar 22, 2015 09:19
by TheSHEEEP
Yes, I can see now that I made one typo of replacing linux with Windows. Fixed ;)

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Tue Mar 24, 2015 08:09
by Kulik
Either your default image codec is "" or your default xml parser is "". Or both.

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Tue Mar 24, 2015 08:35
by TheSHEEEP
I'm currently on another machine and can't check it.
But I do not remember setting those manually.

I remember that on Windows they were set automatically, does it behave differently on linux?

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Wed Mar 25, 2015 15:53
by Kulik
They are set automatically but at least one XML parser and Image codec has to be found. Else it's set to "". I think.

cmake does warn you that none is going to be built but it is possible to miss that message.

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Wed Mar 25, 2015 16:01
by Ident
Kulik wrote:cmake does warn you that none is going to be built but it is possible to miss that message.


Wouldnt it be better to change it into causing an error?

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Fri Mar 27, 2015 09:02
by TheSHEEEP
I agree. It will be a few days until I can look into this again, but even if this is not the issue I am facing, this should be an error as it makes the lib practically unusable.

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Fri Mar 27, 2015 09:17
by Kulik
It actually can be a valid use case. That's why it's not an error.

For users that are initializing the library and passing their own XML parsers or image codecs that they built as part of their project.

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Fri Mar 27, 2015 10:26
by TheSHEEEP
And for the vast majority, it will be an error. The vast majority is always what should count considering ease of use.
Who'd use their own XML parser, really? It is such a minor thing. Image codec is more likely, but still...

The best solution IMO would be a CMake flag that can be checked in the GUI (or command line), if someone wants to use their own XML/image codec, he can check that flag and there will not be an error.
Most people won't care or even know about the flag anyway and will get an error that tells them what is going on. So they have to fix the missing libs problem or check the flag if they know they will use their own libs.

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Fri Mar 27, 2015 12:24
by Kulik
That's a good point. I think that would be a nice change to our build system.

So.. who's going to produce the patch? :P

Re: Linux Mint (Ubuntu based): libCEGUI.so not found

Posted: Wed Apr 08, 2015 11:02
by TheSHEEEP
Huh. I am back at my linux machine, did the whole build again and now everything works fine.
Maybe I installed a missing lib (freeimage or expat, maybe?) in the meantime which resolved the problem.

Still, I think the above problem remains a valid one.

Re: [SOLVED] Linux Mint (Ubuntu based): libCEGUI.so not foun

Posted: Wed Apr 08, 2015 12:05
by Ident
Please open a ticket for the Cmake change on CEGUI's bitbucket including description and link to this thread.
Also feel free to make a PR.