Building OD on ArchLinux

Building OD on ArchLinux

Postby MCMic » 14 Apr 2014, 17:26

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.
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Building OD on ArchLinux

Postby MCMic » 14 Apr 2014, 17:27

Oh, and I had to do "cmake -DCMAKE_COMPILER_IS_GNUCXX=1 ."
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Building OD on ArchLinux

Postby Akien » 14 Apr 2014, 17:30

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 :-)
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Building OD on ArchLinux

Postby MCMic » 14 Apr 2014, 17:48

Oh, ok, thanks for the explanation.

So it’d be a good thing to fix the FindCEGUI module.
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Building OD on ArchLinux

Postby paul424 » 14 Apr 2014, 17:52

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 ...
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Building OD on ArchLinux

Postby MCMic » 14 Apr 2014, 17:59

By the way, are you the same Akien which was in Lyon this week-end? (at JDLLs)
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Building OD on ArchLinux

Postby Akien » 14 Apr 2014, 20:23

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?
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Building OD on ArchLinux

Postby Akien » 14 Apr 2014, 20:28

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.
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Building OD on ArchLinux

Postby MCMic » 15 Apr 2014, 18:26

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 -_-)
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Building OD on ArchLinux

Postby Bertram » 15 Apr 2014, 19:09

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,
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Who is online

Users browsing this forum: No registered users and 1 guest