Page 1 of 1

FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 13, 2016 15:20
by Deathsbreed
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!

Re: FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 13, 2016 18:10
by YaronCT
Deathsbreed: Which debian version and which cegui version?

Re: FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 13, 2016 18:13
by Deathsbreed
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.

Re: FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 13, 2016 18:30
by YaronCT
I'll look into it. Thanx for reporting!

Re: FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 20, 2016 18:54
by xXArthurXx
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.

Re: FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 20, 2016 19:06
by Deathsbreed
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').

Re: FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 20, 2016 19:52
by xXArthurXx
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.

Re: FindCEGUI.cmake Doesn't Work on Debian

Posted: Mon Jun 20, 2016 20:03
by Deathsbreed
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).