Statically linked Linux-version

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#31 Post by kroddn »

Revision 2227 is available as statically linked version.

Note: the typo "lastest" was corrected into "latest" :-)

Code: Select all

2aa56e559314993135b1496bb0f9636f  latest.tar.gz
http://psitronic.de/div/FO/

Laryllan
Space Krill
Posts: 5
Joined: Wed May 30, 2007 8:12 am
Location: Germany

Re: Statically linked Linux-version

#32 Post by Laryllan »

Would it be possible to provide packages for the moste commonly used distros?
I use Ubuntu and without your statically linked version I wouldn't be able to start the game at all.
Compiling for myself is quite an issue - I was forced to recompile some python libs and was never sure if the new libs could break my system, so I am just not willing to do this myself.

My guess is: with this version of yours, it should be quite easy to provide some .deb or .rpm packages.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#33 Post by kroddn »

It should be no problem to take the tar.gz and build a deb out of it, containing the statically linked version. This then should work on ever debian-based distro. But - I do not have the time to figure that out for now.

User avatar
The Silent One
Graphics
Posts: 1129
Joined: Tue Jul 01, 2003 8:27 pm

Re: Statically linked Linux-version

#34 Post by The Silent One »

This version works excellent for Ubuntu 7.04. Thank you for providing it, kroddn!
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#35 Post by kroddn »

Do you have accelerated video-drivers installed?

Please execute:

strace -f -o /tmp/trace ./freeorion

And then upload the resulting /tmp/strace somewhere. Maybe i can find out where your problem comes from.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#36 Post by kroddn »

I uploaded revision 2355 as statically linked version.

http://psitronic.de/div/FO/freeorion_re ... tic.tar.gz

User avatar
Tortanick
Creative Contributor
Posts: 576
Joined: Sat May 26, 2007 8:05 pm

Re: Statically linked Linux-version

#37 Post by Tortanick »

I tried it out on Debian etch, works beautifully. Thanks! Is there any reason why this isn't the default installation method for Linux, considering that freeorion is too early in development for Distro support.

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

Re: Statically linked Linux-version

#38 Post by Geoff the Medio »

Tortanick wrote:I tried it out on Debian etch, works beautifully. Thanks!
Indeed, thanks kroddn.
Is there any reason why this isn't the default installation method for Linux, considering that freeorion is too early in development for Distro support.
There are reportedly compatibility problems between different distros that will prevent this version from running in some cases. See earlier in this thread for discussion.

It seems to work great for debian-like distros though, and there is a link on the FreeOrion download page on the wiki.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#39 Post by kroddn »

Some problems occur when using python2.5 - on Ubuntu 7.10 I had to install python2.4 to fix some error-messages appearing on the console.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#40 Post by kroddn »


pht
Space Krill
Posts: 1
Joined: Fri Mar 07, 2008 9:24 am

Re: Statically linked Linux-version

#41 Post by pht »

To my knowledge, static linking means no dynamic library dependencies. As far as I can see, v2379 is still depending on libGL and a few others.

User avatar
loonycyborg
Compilation Expert
Posts: 219
Joined: Thu Jul 06, 2006 10:30 pm
Location: Russia/Moscow

Re: Statically linked Linux-version

#42 Post by loonycyborg »

It's necessary to link against OpenGL dynamically to use correct implementation(nvidia, ati...). It won't cause problems on different distros because OpenGL API is standardized.
In Soviet Russia, forum posts YOU!!

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#43 Post by kroddn »

loonycyborg is right. With "statically linked" I meant "almost all libs statically linked". The main libs, which should be available on modern distributions, can be linked dynamically.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: Statically linked Linux-version

#44 Post by kroddn »

I released a new Version (SVN FO revision 2450 / GG revision 645):

http://psitronic.de/div/FO/

Now there is a Loki Installer which helps installing the game. Just run setup.sh inside the archive. The installer creates a system-wide symlink "freeorion" and menu-entries, if you wish to.

Read http://psitronic.de/div/FO/README.txt for instructions.

hagish
Space Krill
Posts: 3
Joined: Tue Apr 01, 2008 11:37 pm

Re: Statically linked Linux-version

#45 Post by hagish »

current version works perfect out of the box under ubuntu 7.10 gutsy

Post Reply