Linux packages

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

Moderator: Committer

Post Reply
Message
Author
bolche
Space Krill
Posts: 3
Joined: Wed Dec 17, 2008 1:49 am

Linux packages

#1 Post by bolche »

In the wiki (http://www.freeorion.org/index.php/Programming_Work) it is said that there is need of people to compile and provide binaries and packages.
I can provide packages for Gentoo and Ubuntu, static or dynamic linked. Is this still needed?
Unfortunatelly, I don't own a Mac, but AFAIK the free OS Darwin is compatible with Mac OS and I can give a shot in compiling it in Darwin, but I don't know if it will be usable. Anyone has tried that?

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Linux packages

#2 Post by IConrad »

If you could do a binary which runs on amd64 Ubuntu 8.10 you would be a god-send!! :) (At least, you would to me... I dunno if anyone else is trying to run it.)

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

Re: Linux packages

#3 Post by Geoff the Medio »

Linux releases are definitely still needed. You might want to have a look at what kroddn has been doing, here:

viewtopic.php?f=9&t=1792

He's been providing mostly-statically linked binaries until recently. He has a file on his site to link graphviz statically, which might be of help. You might also want to get in contact with him to discuss this. He's still dropping by the forums regularly, even if he hasn't been posting much.

I don't know anything about OSX or Darwin, but having giving it a try probably couldn't hurt. If it works for OSX, great, and if it's just Darwin, then almost-as-great.

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

Re: Linux packages

#4 Post by Tortanick »

bolche wrote: I can provide packages for Gentoo and Ubuntu, static or dynamic linked. Is this still needed?
Static linked are best since they work on practically all distros.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Linux packages

#5 Post by OndrejR »

Problem with linux packages(and maybe with windows, mac) should be resolved by nightly builds. It would help testing althought unit testing in FreeOrion is missing. There aren't many people on this board who are able to compile FreeOrion in Linux. And it should be compiled statically because sometimes they simply can't compile when it is some problem with dependency in their distro.

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

Re: Linux packages

#6 Post by Geoff the Medio »

OndrejR wrote:Problem with linux packages(and maybe with windows, mac) should be resolved by nightly builds.
If you'd like to make regular Linux builds, feel free to start a thread like kroddn's and keep it updated, and we can link to it from the Downloads wiki page.
It would help testing althought unit testing in FreeOrion is missing.
tzlaine originally had some unit testing for effects code, but it didn't get much use, and I don't really see much use for it in general. It's hard to define "correct" behaviour for most non-trivial functions in a game like this...

That said, I'm not a software engineer and don't know that much about unit testing. If someone wants to make a use case and add some unit tests, we'll likely commit the patches.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Linux packages

#7 Post by OndrejR »

Geoff the Medio wrote:If you'd like to make regular Linux builds, feel free to start a thread like kroddn's and keep it updated, and we can link to it from the Downloads wiki page.
I don't know how other projects make nightly builds. Probably they wrote own scripts. If it was human, he would forget. It has to be computer and automatically. Next six months I have no time for this, but later maybe. I have also problem with OS architecture. I had only amd64(compiling dynamically problem isn't). And upload binary to download server should be automatically too. But this is solvable(somebody with i686 OS can plan compiling at certain time with cron and script to upload to ftp is not problem).

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Linux packages

#8 Post by OndrejR »

In Debian I found packages svn-autoreleasedeb and svn-buildpackage. But they probably build only dynamically versions of software.

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

Re: Linux packages

#9 Post by kroddn »

Its extremely hard to compile and link a statically version. I have invested a great amount of time until now to get things worked - but these methods are surely NOT for standard users, as you have to compile almost every dependency by yourself (boost, graphviz, maybe python...).

If somebody wants to talk about those topics, please visit the irc chat. I am online there and frequently can discuss things or answer questions.

stride
Space Floater
Posts: 31
Joined: Sun Sep 28, 2008 3:05 pm
Location: Horten, Norway

Re: Linux packages

#10 Post by stride »

For creating static binaries this tool might help? http://statifier.sourceforge.net/

Never tried it myself...

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: Linux packages

#11 Post by IConrad »

I know I will be giving ELF Statifier a try tonight when I see if I can compile the current SVN checkout in a VM and swap it to my parent machine. I'll report my success or failure by editing this post. :) (Maybe save Kroddn some effort)

bolche
Space Krill
Posts: 3
Joined: Wed Dec 17, 2008 1:49 am

Re: Linux packages

#12 Post by bolche »

Sorry for taking so long for posting the packages. :oops: Having trouble with my computer...

Post Reply