Page 1 of 1

Building OD on ArchLinux

PostPosted: 14 Apr 2014, 17:26
by MCMic
Finally managed to build the game on ArchLinux.

I had to do the following things:
- change CEGUIBase to CEGUIBase-0 and CEGUIOgreRenderer to CEGUIOgreRenderer-0 in cmake/modules/FindCEGUI.cmake
- add cegui-0/CEGUI to PATH_SUFFIXES line 18 of cmake/modules/FindCEGUI.cmake
- after cmake, use cmake-gui to remove the ending CEGUI in CEGUI_INCLUDE_DIR (this might be a bug of the FindCEGUI.cmake which search CEGUI.h instead of CEGUI/CEGUI.h)

The first two things are because ArchLinux CEGUI packages are weird and add this "-0" suffix because it’s the major version number.

Re: Building OD on ArchLinux

PostPosted: 14 Apr 2014, 17:27
by MCMic
Oh, and I had to do "cmake -DCMAKE_COMPILER_IS_GNUCXX=1 ."

Re: Building OD on ArchLinux

PostPosted: 14 Apr 2014, 17:30
by Akien
MCMic {l Wrote}:The first two things are because ArchLinux CEGUI packages are weird and add this "-0" suffix because it’s the major version number.


Arch's package it's not weird, I packaged CEGUI 0.8 the same way in Mageia: it's the path chosen by upstream, because upstream is weird :-)

Re: Building OD on ArchLinux

PostPosted: 14 Apr 2014, 17:48
by MCMic
Oh, ok, thanks for the explanation.

So it’d be a good thing to fix the FindCEGUI module.

Re: Building OD on ArchLinux

PostPosted: 14 Apr 2014, 17:52
by paul424
Ohh man , on OpenSuse I have the same , I though only my distro is special. Than if nido could modify the script would be great ...

Re: Building OD on ArchLinux

PostPosted: 14 Apr 2014, 17:59
by MCMic
By the way, are you the same Akien which was in Lyon this week-end? (at JDLLs)

Re: Building OD on ArchLinux

PostPosted: 14 Apr 2014, 20:23
by Akien
MCMic {l Wrote}:By the way, are you the same Akien which was in Lyon this week-end? (at JDLLs)

I am :-) Were you holding one of the booths there?

Re: Building OD on ArchLinux

PostPosted: 14 Apr 2014, 20:28
by Akien
MCMic {l Wrote}:- after cmake, use cmake-gui to remove the ending CEGUI in CEGUI_INCLUDE_DIR (this might be a bug of the FindCEGUI.cmake which search CEGUI.h instead of CEGUI/CEGUI.h)

The simpler way would be to give this argument to the cmake call: -DCEGUI_INCLUDE_DIR=/usr/include/cegui-0

I gave my patch on this topic: viewtopic.php?f=36&t=5385#p55253
It basically does what MCMic explained (though there is a part about SFML2, but it is Mageia-specific I think).

@nido: Maybe you could push part of those path changes to the development branch (for the Linux build)? Since it's the default upstream path for CEGUI 0.8.x, I suppose most distros will use it.

Re: Building OD on ArchLinux

PostPosted: 15 Apr 2014, 18:26
by MCMic
This patch should fix the problem and not break anything on other distros. Can you guys try it and see if it works for you?
http://mcmic.haxx.es/0001-Fixes-CEGUI-cmake-module.patch

(Note: The forum refuses the patch extension -_-)

Re: Building OD on ArchLinux

PostPosted: 15 Apr 2014, 19:09
by Bertram
MCMic {l Wrote}:This patch should fix the problem and not break anything on other distros. Can you guys try it and see if it works for you?

Actually, makes tings work better for me on Debian. :)
I'll try it on windows, but I'll import it on github.

Makes me think: Have you tried warning the CEGui upstream team about improving compilation already? I do think this patch can't hurt on official cmake module database
or in CEGui official repo, for instance.

Best regards,