FindCEGUI.cmake Doesn't Work on Debian

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Deathsbreed
Just popping in
Just popping in
Posts: 6
Joined: Wed Mar 30, 2016 21:06

FindCEGUI.cmake Doesn't Work on Debian

Postby Deathsbreed » Mon Jun 13, 2016 15:20

The project I'm working on is going to be using CEGUI for the GUI of our game (not surprising, CEGUI seems to be the only good GUI framework in C++ out there), and our project uses the CMake build system. My comrade uses a Fedora machine while I use Debian GNU/Linux, on his machine the FindCEGUI.cmake file (taken from the CEGUI repo) works just fine, but on mine I get a huge error :cry: :

Code: Select all

-- Looking for CEGUI...
-- Could not locate CEGUI
CMake Error at cmake_modules/FindCEGUI.cmake:247 (message):
  Required library CEGUI not found! Install the library (including dev
  packages) and try again.  If the library is already installed, set the
  missing variables manually in cmake.
Call Stack (most recent call first):
  cmake_modules/FindCEGUI.cmake:490 (findpkg_finish)
  cmake_modules/DMUXClient.cmake:49 (find_package)
  CMakeLists.txt:10 (include)


I've managed to go through the FindCEGUI.cmake file and locate the root of the problem with my very minimal knowledge of CMake (compared the the beast which is this CMake file). Apparently it's coming from when it searches for the include directory, because it only searches for `cegui-${CEGUI_VERSION_MAJOR_DEFAULT}', while on debian it would require it to be referring to the major version (which never changes), the minor version, and the patch version (because whoever is maintaining CEGUI for Debian wants to get on my nerve :evil: ).

I would fix this myself, except this is way past my knowledge of CMake. So I wanted to know if someone could help me fix this issue so we can contribute it back to the repo so more Debian users don't have to go through this. I know that I could specify where they are manually (which is what I'll do for now), but I don't think that that's a long-term solution.

Here's a link to the FindCEGUI.cmake file I've been using: https://bitbucket.org/cegui/cegui/raw/d ... EGUI.cmake

Thanks!

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: FindCEGUI.cmake Doesn't Work on Debian

Postby YaronCT » Mon Jun 13, 2016 18:10

Deathsbreed: Which debian version and which cegui version?

User avatar
Deathsbreed
Just popping in
Just popping in
Posts: 6
Joined: Wed Mar 30, 2016 21:06

Re: FindCEGUI.cmake Doesn't Work on Debian

Postby Deathsbreed » Mon Jun 13, 2016 18:13

yaronct wrote:Deathsbreed: Which debian version and which cegui version?

Sorry, forgot to say that. I'm currently using the CEGUI from the Debian Testing/Stretch repos, currently at v0.8.7.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: FindCEGUI.cmake Doesn't Work on Debian

Postby YaronCT » Mon Jun 13, 2016 18:30

I'll look into it. Thanx for reporting!

xXArthurXx
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Jun 13, 2016 15:06

Re: FindCEGUI.cmake Doesn't Work on Debian

Postby xXArthurXx » Mon Jun 20, 2016 18:54

Hey :D,
I'm using Debian or rather the Linux Mint Debian Distrubution, and I had no problems with using CMake to compile CEGUI.
So the problem should be a client specific problem.
May be the physic with you !

User avatar
Deathsbreed
Just popping in
Just popping in
Posts: 6
Joined: Wed Mar 30, 2016 21:06

Re: FindCEGUI.cmake Doesn't Work on Debian

Postby Deathsbreed » Mon Jun 20, 2016 19:06

xXArthurXx wrote:Hey :D,
I'm using Debian or rather the Linux Mint Debian Distrubution, and I had no problems with using CMake to compile CEGUI.
So the problem should be a client specific problem.


I've already narrowed down the issue, and it seems to be with how the Debian maintainer is doing things. This would mean that it's not going to affect Linux Mint or even Ubuntu. This problem is limited to purely Debian systems, not necessarily debian-based (I guess).

Either way, the problem persists that it lies in the include directory for CMake which uses the major, minor, and patch versions whereas on other distributions it only uses the major (that is, most people have `/usr/include/cegui-0', whereas on Debian it's `/usr/include/cegui-0.8.7').

xXArthurXx
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Jun 13, 2016 15:06

Re: FindCEGUI.cmake Doesn't Work on Debian

Postby xXArthurXx » Mon Jun 20, 2016 19:52

Deathsbreed wrote:
xXArthurXx wrote:Hey :D,
I'm using Debian or rather the Linux Mint Debian Distrubution, and I had no problems with using CMake to compile CEGUI.
So the problem should be a client specific problem.


I've already narrowed down the issue, and it seems to be with how the Debian maintainer is doing things. This would mean that it's not going to affect Linux Mint or even Ubuntu. This problem is limited to purely Debian systems, not necessarily debian-based (I guess).

Either way, the problem persists that it lies in the include directory for CMake which uses the major, minor, and patch versions whereas on other distributions it only uses the major (that is, most people have `/usr/include/cegui-0', whereas on Debian it's `/usr/include/cegui-0.8.7').


Okay, thanks, good to know. Well I thought the Linux Mint Debian Distrubution is a pure Debian system.
May be the physic with you !

User avatar
Deathsbreed
Just popping in
Just popping in
Posts: 6
Joined: Wed Mar 30, 2016 21:06

Re: FindCEGUI.cmake Doesn't Work on Debian

Postby Deathsbreed » Mon Jun 20, 2016 20:03

xXArthurXx wrote:
Deathsbreed wrote:
xXArthurXx wrote:Hey :D,
I'm using Debian or rather the Linux Mint Debian Distrubution, and I had no problems with using CMake to compile CEGUI.
So the problem should be a client specific problem.


I've already narrowed down the issue, and it seems to be with how the Debian maintainer is doing things. This would mean that it's not going to affect Linux Mint or even Ubuntu. This problem is limited to purely Debian systems, not necessarily debian-based (I guess).

Either way, the problem persists that it lies in the include directory for CMake which uses the major, minor, and patch versions whereas on other distributions it only uses the major (that is, most people have `/usr/include/cegui-0', whereas on Debian it's `/usr/include/cegui-0.8.7').


Okay, thanks, good to know. Well I thought the Linux Mint Debian Distrubution is a pure Debian system.


That might be the case, but we most likely have different repos and different maintainers (the Debian maintainer just so happens to be a dick).


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 4 guests