FreeOrion

Forums for the FreeOrion project
It is currently Sat Nov 18, 2017 9:21 pm

All times are UTC




Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Tue Jan 13, 2015 10:44 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
Chriss wrote:
Did you do something in FreeOrion code to fix the Boost include problem?
But I guess that the arch package will have that include soon, so it's a temporary thing. And it works.[/quote]Did you answer my (quoted) question?


Top
 Profile  
 
PostPosted: Tue Jan 13, 2015 8:36 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
Uh, not directly I guess... No, I did not make any changes to the FO code, I added the missing include to my system library's headers.

_________________
Attached patches are released under GPL 2.0 or later.


Top
 Profile  
 
PostPosted: Tue Jan 13, 2015 8:42 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
Then is there a change that can be made the FO code to avoid needing to patch Boost?


Top
 Profile  
 
PostPosted: Tue Jan 13, 2015 9:08 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
Mitten.O mentions something like this in the second post here in this thread. As far as I understood it, the idea is to add a preprocessor statement to util/Process.cpp or util/Process.h (the cpp file causing the error in my error log from before) which includes the missing include before boost's shared_pointer.hpp is included if the boost version is 1.57.

Hm... let me try this... Ah, the Hack for boost 1.56 is still there. Attached patch does something similar for the 1.57 issue. I'm compiling now with my system boost reverted.

Edit: Compiles for me with that patch. So currently I need 3 patches:
This patch to work arround the missing boost include.
A patch which removes OISInput.cfg from CMakeList
The Patch for Fonts.cpp from the Gentoo Thread


Attachments:
boost-1.57-fix.patch [599 Bytes]
Downloaded 58 times

_________________
Attached patches are released under GPL 2.0 or later.
Top
 Profile  
 
PostPosted: Tue Feb 10, 2015 11:19 am 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
SDL branch 'SVN 7920' now compiles and runs here thanks


Top
 Profile  
 
PostPosted: Tue Feb 10, 2015 11:27 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
pheldens wrote:
SDL branch 'SVN 7920' now compiles and runs here thanks

Do you mean it compiles with the patch in the previous post, but not without that patch?


Top
 Profile  
 
PostPosted: Tue Feb 10, 2015 8:58 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
I dont know what fixed it, just happened to retry today with a checkout, had not tried for a month or so

but right now SDL tree builds and runs with this

gcc (GCC) 4.9.2
glibc-2.20
boost_1_56_0
SDL2-2.0.3


Top
 Profile  
 
PostPosted: Tue Feb 10, 2015 9:06 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
pheldens wrote:
I dont know what fixed it, just happened to retry today with a checkout
Meaning, you built from a clean checkout, and didn't apply any patches?


Top
 Profile  
 
PostPosted: Wed Feb 11, 2015 8:22 am 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
If he's in this thread he probably used the AUR Package for Arch Linux, which applies patches. Not the boost patch any more since Arch's boost package has been fixed meanwhile, but one for Font.cpp, and one that removes references to oisinput.cfg - I've put them in the patches thread I think. The boost patch may still be worth comitting for SDL and trunk, since others may have this issue, too...

_________________
Attached patches are released under GPL 2.0 or later.


Top
 Profile  
 
PostPosted: Tue Jun 09, 2015 3:09 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
I built and ran succesfully like this, didnt apply extra patches myself:
Code:
svn co https://svn.code.sf.net/p/freeorion/code/branches/SDL_Migration_And_Dependencies_Updates/
cd SDL_Migration_And_Dependencies_Updates/
mkdir build
cd build
cmake ../
make -j3
ln -s ../default
./freeorion


Top
 Profile  
 
PostPosted: Tue Jun 09, 2015 6:53 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4374
pheldens wrote:
I built and ran succesfully like this, didnt apply extra patches myself:
Please note, our main code now uses SDL; the branch you refer to is rather stale. As of a couple months ago we have also migrated the repo to github; the SVN repo is not getting further updates.

_________________
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: Wed Jun 10, 2015 2:24 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
Ok, succefully built and ran git without extra patches thanks.

Code:
git clone https://github.com/freeorion/freeorion.git
mkdir freeorion.build 
cd freeorion.build
cmake ../freeorion
make -j2 
ln -s ../freeorion/default/ .
./freeorion


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

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:  
Powered by phpBB® Forum Software © phpBB Group