CEGUI 0.8 Linux Installation

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

User avatar
dermont
Quite a regular
Quite a regular
Posts: 75
Joined: Mon Aug 29, 2005 16:15

CEGUI 0.8 Linux Installation

Postby dermont » Sun Jul 03, 2011 10:37

There is stray "$" in CEGUI.pc.in.

Libs: -L${libdir} -l$@CEGUI_BASE_LIBNAME@

And why are the libraries now installed to CMAKE_INSTALL_PREFIX/lib/CEGUI-0.8 instead of CMAKE_INSTALL_PREFIX/lib?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: CEGUI 0.8 Linux Installation

Postby Kulik » Sun Jul 03, 2011 11:57

I am not an expert to answer the stray $.

However the reason for the lib/CEGUI-X.Y is to allow slotted installs (so that you can install CEGUI 0.7, 0.8, etc...). We have done this to speed up adoption (games have trouble migrating to newer versions because distributions don't have them, they don't have them because none migrated...).

User avatar
dermont
Quite a regular
Quite a regular
Posts: 75
Joined: Mon Aug 29, 2005 16:15

Re: CEGUI 0.8 Linux Installation

Postby dermont » Sun Jul 03, 2011 15:03

Kulik wrote:However the reason for the lib/CEGUI-X.Y is to allow slotted installs (so that you can install CEGUI 0.7, 0.8, etc...). We have done this to speed up adoption (games have trouble migrating to newer versions because distributions don't have them, they don't have them because none migrated...).


Fair enough it will interesting to see how you manage "slotted installs" over various distros.

For example on Ubuntu the libraries are installed to /usr/local/lib/CEGUI-0.8 and therefore won't be found at run-time. So how is this meant to be handled:

a) Create a /etc/ld.so.conf.d/CEGUI.conf with path to libs /usr/local/lib/CEGUI-0.8. There may be still a problem with libs being picked up from /usr/local/lib (??)

b) or preferable link with rpath.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: CEGUI 0.8 Linux Installation

Postby CrazyEddie » Thu Jul 07, 2011 19:05

I've not looked at it yet, but thanks for raising the issue with the .pc file and the stray $.

For finding the libs at runtime, it is intended that rpath / runpath be used.

[edited to add]
With regard to slotted installs, that is actually optional, but enabled by default since that is what we would prefer distros to do for future releases. Though ultimately it's up to the distro and package maintainers to decide what is best for their users. Disabling the appropriate cmake option will result in stuff being placed as it is for 0.7 and earlier.

CE.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 0 guests