Debian compilation: GiGi + Bullet

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
bertram
Space Krill
Posts: 3
Joined: Wed Nov 21, 2012 9:27 am

Debian compilation: GiGi + Bullet

#1 Post by bertram »

Hi!

I must say I've been following FreeOrion development since versions 0.3.x, and I quite enjoy the direction of the project so far. :)

Now, as for the compilation, I've got several questions:
(Sorry in advance if they've been answered already)
- Could there a way to make the locally compiled GiGi lib used when compiling the game in a fresh clone of the repo,
so that one doesn't have to install GiGi again and again on each changes made on it?
- Since Debian curioulsy doesn't have it yet, have you considered including an optionally used version of the bullet sources,
so that the game is compilable on Debian without having to download bullet and do all the process of installation?

I know the second question might be irrelevant in few months when debian will include bullet, and has other flaws, but the first one is the most interesting to me.

Best regards,

Bertram

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Debian compilation: GiGi + Bullet

#2 Post by Geoff the Medio »

The FreeOrion CMake files could probably be modified to look in different places for the GiGi library binaries. cmake/FindGiGi.cmake would like need to be modified.

I don't think there's been any considerating of adding the bullet source to the FreeOrion repository.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Debian compilation: GiGi + Bullet

#3 Post by Nagilum »

bullet should be in a separate deb.
Preferably even split into a libbullet and libbullet-dev.

bertram
Space Krill
Posts: 3
Joined: Wed Nov 21, 2012 9:27 am

Re: Debian compilation: GiGi + Bullet

#4 Post by bertram »

Hi,
Nagilum wrote:bullet should be in a separate deb.
Preferably even split into a libbullet and libbullet-dev.
Definitely, it's just they couldn't do it yet.
Geoff the Medio wrote:The FreeOrion CMake files could probably be modified to look in different places for the GiGi library binaries. cmake/FindGiGi.cmake would like need to be modified.
I won't promise anything yet, but if I finish something working, I'll share it here.

Best regards,

bertram
Space Krill
Posts: 3
Joined: Wed Nov 21, 2012 9:27 am

Re: Debian compilation: GiGi + Bullet

#5 Post by bertram »

Hi again,

I wondered also: Is bullet used in the 2d interface? or the 3d one only?
Because I also wondered: If it's used in the 3d interface only, maybe linking against it could be disabled for "normal builds" along with the 3d battle code?

Best regards,

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Debian compilation: GiGi + Bullet

#6 Post by Geoff the Medio »

bertram wrote:Is bullet used in the 2d interface? or the 3d one only?
2D only, though I think some server battle code that's intended to go with the 3D combat interface also uses it.
...maybe linking against it could be disabled for "normal builds" along with the 3d battle code?
Yes, that could probably also be done.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Debian compilation: GiGi + Bullet

#7 Post by Nagilum »

Had some time to debianize bullet-2.81 for Debian Wheezy:
https://cakebox.homeunix.net/~nagilum/b ... 1_i386.deb
https://cakebox.homeunix.net/~nagilum/b ... 1_i386.deb
The sources are also here:
https://cakebox.homeunix.net/~nagilum/bullet/
It's far from perfect but should work.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Debian compilation: GiGi + Bullet

#8 Post by Nagilum »

Since the wheezy version of ogre demands boost-1.49 I recompiled it with boost-1.50 from sid.
https://cakebox.homeunix.net/~nagilum/ogre/
has the debs and the source.
Hmm, maybe I should set up a real repo. :-/

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Debian compilation: GiGi + Bullet

#9 Post by Nagilum »

Ok, I set up the repo
http://www.nagilum.org/repo/

/etc/apt/sources.list:
deb http://www.nagilum.org/repo/ freeorion main contrib
deb-src http://www.nagilum.org/repo/ freeorion main contrib

curl http://www.nagilum.org/repo/[email protected] | apt-key add -

apt-get install libogre-1.8-dev/freeorion libbullet-dev

User avatar
Promi
Space Krill
Posts: 4
Joined: Thu Apr 04, 2013 5:02 am
Location: Germany

Re: Debian compilation: GiGi + Bullet

#10 Post by Promi »

This package doesn't work for me:

promi@freebeer:~$ freeorion
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/bin/freeorion.elf)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libGiGi.so)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libOgreMain.so.1.8.1)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libBulletCollision.so.2.81)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libLinearMath.so.2.81)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libboost_filesystem.so.1.53.0)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libboost_serialization.so.1.53.0)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libpng15.so.15)
/usr/local/freeorion/bin/freeorion.elf: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/freeorion/lib/libtiff.so.5)

It's not working with the libc of Debian wheezy.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Debian compilation: GiGi + Bullet

#11 Post by Nagilum »

Yeah, I'm afraid that is too old.
Even if I would include a more recent a libc it wouldn't work due to the old xorg.
You need a newer base system.
I'll see if I can make something work but no promises.

Post Reply