FreeOrion

Forums for the FreeOrion project
It is currently Thu Nov 23, 2017 5:16 am

All times are UTC




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Feb 08, 2013 9:45 pm 
Offline
Juggernaut

Joined: Mon Feb 04, 2013 10:15 pm
Posts: 757
The Wiki entry is a bit out of date, so thought I would provide what worked for me with Gentoo.

You will need the following packages:

ogre
boost (needs the python use flag)
bullet
openal
freealut
libogg
libvorbis
zlib
libpng
ois
subversion

Some of these may already be installed and you may not need to emerge all of these.

Code:
emerge ogre boost bullet openal freealut libogg libvorbis zlib libpng ois subversion -a


To set Python to a 2.x version use:

Code:
eselect python list
eselect python set x (replace with the number from the above list)


Get the current build:

Code:
svn co http://svn.code.sf.net/p/freeorion/code/trunk/FreeOrion/ freeorion


Switch to the freeorion directory:

Code:
cd freeorion


Compile:

Code:
cmake .
make


To run:

Code:
./freeorion


Enjoy.

No guarantees, but it worked for me anyways thought it might help someone else out.


Last edited by AndrewW on Tue May 27, 2014 2:39 pm, edited 6 times in total.

Top
 Profile  
 
PostPosted: Fri Feb 08, 2013 10:06 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12016
Location: Munich
I made you a wiki account, AndrewW, with your forum email address. Feel free to edit the wiki with this info.


Top
 Profile  
 
PostPosted: Fri Feb 08, 2013 10:15 pm 
Offline
Juggernaut

Joined: Mon Feb 04, 2013 10:15 pm
Posts: 757
Geoff the Medio wrote:
I made you a wiki account, AndrewW, with your forum email address. Feel free to edit the wiki with this info.


I was guessing that when I got the Wike account email confirmation.

Probably a seperate page I would think, to keep the old information around as well.


Top
 Profile  
 
PostPosted: Thu Feb 14, 2013 4:12 pm 
Offline
Space Krill

Joined: Wed Feb 13, 2013 8:14 pm
Posts: 7
Just to add on to this, lndir is a fantastic utility to use if you want to compile without polluting the source directory. On gentoo you can acquire it with just `emerge lndir`. On Debian/Ubuntu I am told it can be found in the xutils-dev package.


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 3:11 pm 
Offline
Space Squid

Joined: Sat Dec 10, 2011 5:46 am
Posts: 58
How do you compile OIS from freeorion?

I get bug with keyboard freezing so I cann't enter anything some minutes after launching the game.

_________________
Gentoo Linux amd64, gcc-5.4.0, boost-1.63.0
Ubuntu Server 16.04.3 x64, gcc-5.4, boost-1.58.0
Welcome to multiplayer public server at 78.47.71.237. Version 2017-11-13.b6940d0
SMAC participant: play multiplayer with us!


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 3:35 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4377
o01eg wrote:
How do you compile OIS from freeorion?I get bug with keyboard freezing so I cann't enter anything some minutes after launching the game.
compiling OIS gets handled automatically when running 'make' in AndrewW's instructions. there is an OIS config file "OISInput.cfg" in the top level FreeOrion directory, I'd recommend you first look at adjusting it before recompiling.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 3:49 pm 
Offline
Space Squid

Joined: Sat Dec 10, 2011 5:46 am
Posts: 58
Dilvish wrote:
compiling OIS gets handled automatically when running 'make' in AndrewW's instructions. there is an OIS config file "OISInput.cfg" in the top level FreeOrion directory, I'd recommend you first look at adjusting it before recompiling.


I don't see anything about compiling OIS in CMakeLists.txt.

_________________
Gentoo Linux amd64, gcc-5.4.0, boost-1.63.0
Ubuntu Server 16.04.3 x64, gcc-5.4, boost-1.58.0
Welcome to multiplayer public server at 78.47.71.237. Version 2017-11-13.b6940d0
SMAC participant: play multiplayer with us!


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 4:15 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4377
ah sorry, I hadn't looked quite closely enough at his instructions, I see now he's using a standard version of GG, rather than the FO one. So perhaps that might cause trouble for you or other people. OIS gets compiled as part of the FO GG compile process. The FO version can be compiled by going into the GG directory and running "cmake ." and "make" -- if you've already installed the standard GG into the regular library locations, you might want to search here on the forums a little, I think someone recently posted a patch to the CMake files so that for FO it could look for a local FO version of GG rather than the standard library location.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 4:28 pm 
Offline
Space Squid

Joined: Sat Dec 10, 2011 5:46 am
Posts: 58
Dilvish wrote:
ah sorry, I hadn't looked quite closely enough at his instructions, I see now he's using a standard version of GG, rather than the FO one. So perhaps that might cause trouble for you or other people. OIS gets compiled as part of the FO GG compile process. The FO version can be compiled by going into the GG directory and running "cmake ." and "make" -- if you've already installed the standard GG into the regular library locations, you might want to search here on the forums a little, I think someone recently posted a patch to the CMake files so that for FO it could look for a local FO version of GG rather than the standard library location.


I wrote ebuild for gigi from FO that download it from https://freeorion.svn.sourceforge.net/s ... eeOrion/GG and install into system. Also I've built it successfully today without any error about missed OIS.

_________________
Gentoo Linux amd64, gcc-5.4.0, boost-1.63.0
Ubuntu Server 16.04.3 x64, gcc-5.4, boost-1.58.0
Welcome to multiplayer public server at 78.47.71.237. Version 2017-11-13.b6940d0
SMAC participant: play multiplayer with us!


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 4:37 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
AndrewW wrote:
gigi - (includes ogre when emerging, so ogre doesn't need to be specified)


You must use the forked gigi lib with the same file naming from the FO repository (./GG/)


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 4:59 pm 
Offline
Juggernaut

Joined: Mon Feb 04, 2013 10:15 pm
Posts: 757
pheldens wrote:
AndrewW wrote:
gigi - (includes ogre when emerging, so ogre doesn't need to be specified)


You must use the forked gigi lib with the same file naming from the FO repository (./GG/)


Didn't need to in my case...

Could add alternate instructions though if others are having trouble with it.


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 6:19 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12016
Location: Munich
AndrewW wrote:
Quote:
You must use the forked gigi lib with the same file naming from the FO repository (./GG/)
Didn't need to in my case...
Then something strange is going on, because the GG in the FO repository has header changes and makes use of new added functions. And even if it somehow compiles and doesn't crash, the are functional changes that are needed for FO to work properly and fully.


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 7:07 pm 
Offline
Juggernaut

Joined: Mon Feb 04, 2013 10:15 pm
Posts: 757
Geoff the Medio wrote:
AndrewW wrote:
Quote:
You must use the forked gigi lib with the same file naming from the FO repository (./GG/)
Didn't need to in my case...
Then something strange is going on, because the GG in the FO repository has header changes and makes use of new added functions. And even if it somehow compiles and doesn't crash, the are functional changes that are needed for FO to work properly and fully.
Hmmm, did that change at one point? Did compile the one that it comes with at one point with that other compile problem, but was working fine before then.


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 7:17 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12016
Location: Munich
AndrewW wrote:
Geoff the Medio wrote:
...the GG in the FO repository has header changes and makes use of new added functions. And even if it somehow compiles and doesn't crash, the are functional changes that are needed for FO to work properly and fully.
Hmmm, did that change at one point?
Not sure what you mean by that... Did the changes happen at some point in time? Yes. Are those changes needed now? Yes.


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 8:19 pm 
Offline
Juggernaut

Joined: Mon Feb 04, 2013 10:15 pm
Posts: 757
Geoff the Medio wrote:
AndrewW wrote:
Geoff the Medio wrote:
...the GG in the FO repository has header changes and makes use of new added functions. And even if it somehow compiles and doesn't crash, the are functional changes that are needed for FO to work properly and fully.
Hmmm, did that change at one point?
Not sure what you mean by that... Did the changes happen at some point in time? Yes. Are those changes needed now? Yes.


Just wondering what build they changed at.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group