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?Chriss wrote:Did you do something in FreeOrion code to fix the Boost include problem?
Compile SDL Branch in Arch Linux
Moderator: Oberlus
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Compile SDL Branch in Arch Linux
Re: Compile SDL Branch in Arch Linux
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.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Compile SDL Branch in Arch Linux
Then is there a change that can be made the FO code to avoid needing to patch Boost?
Re: Compile SDL Branch in Arch Linux
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
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
-
[The extension patch has been deactivated and can no longer be displayed.]
Attached patches are released under GPL 2.0 or later.
Re: Compile SDL Branch in Arch Linux
SDL branch 'SVN 7920' now compiles and runs here thanks
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Compile SDL Branch in Arch Linux
Do you mean it compiles with the patch in the previous post, but not without that patch?pheldens wrote:SDL branch 'SVN 7920' now compiles and runs here thanks
Re: Compile SDL Branch in Arch Linux
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
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
Re: Compile SDL Branch in Arch Linux
Meaning, you built from a clean checkout, and didn't apply any patches?pheldens wrote:I dont know what fixed it, just happened to retry today with a checkout
Re: Compile SDL Branch in Arch Linux
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.
Re: Compile SDL Branch in Arch Linux
I built and ran succesfully like this, didnt apply extra patches myself:
Code: Select all
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
Re: Compile SDL Branch in Arch Linux
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.pheldens wrote:I built and ran succesfully like this, didnt apply extra patches myself:
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: Compile SDL Branch in Arch Linux
Ok, succefully built and ran git without extra patches thanks.
Code: Select all
git clone https://github.com/freeorion/freeorion.git
mkdir freeorion.build
cd freeorion.build
cmake ../freeorion
make -j2
ln -s ../freeorion/default/ .
./freeorion