Compile SDL Branch in Arch Linux
Moderator: Oberlus
Compile SDL Branch in Arch Linux
As I mentioned elsewhere, Arch Linux moved to boost 1.56. I am now trying to compile the SDL Migration branch. Here's my Progress.
Mainly, I had to comment out a number of things from CMakeLists, see Patch. Now the compile is running.
Mainly, I had to comment out a number of things from CMakeLists, see Patch. Now the compile is running.
- 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
Yes, there is patch that makes cmake happy buried in the longer thread.
There there is also discussion about a bug in some versions of boost 1.56 serialization that makes it not work. In that thread we mentioned patching boost itself, but since the bug is a missing include one can work around it by manually including the things before including the thing that requires them.
Here is a patch that does that and also makes phoenix inclusion consistent. I have successfully compiled this on ubuntu current boost (1.54) and a custom built boost 1.56. I got linkage errors on a custom built boost 1.55, but it compiled succesfully in a beta of the next version of ubuntu with its packaged boost 1.55.
I have these changes sitting on top of my "make cmake happy" -patch. If you did all that manually, there is no need to apply mine, but I'll include also it just in case.
Good for you if you don't need these, but if issues that seem like what I talked about arise, try these out.
There there is also discussion about a bug in some versions of boost 1.56 serialization that makes it not work. In that thread we mentioned patching boost itself, but since the bug is a missing include one can work around it by manually including the things before including the thing that requires them.
Here is a patch that does that and also makes phoenix inclusion consistent. I have successfully compiled this on ubuntu current boost (1.54) and a custom built boost 1.56. I got linkage errors on a custom built boost 1.55, but it compiled succesfully in a beta of the next version of ubuntu with its packaged boost 1.55.
I have these changes sitting on top of my "make cmake happy" -patch. If you did all that manually, there is no need to apply mine, but I'll include also it just in case.
Good for you if you don't need these, but if issues that seem like what I talked about arise, try these out.
- Attachments
-
[The extension patch has been deactivated and can no longer be displayed.]
-
[The extension patch has been deactivated and can no longer be displayed.]
Any code by me in this post is released under GPL 2.0 or later.
Re: Compile SDL Branch in Arch Linux
viewtopic.php?p=72562#p72562 ?
I found it and used it instead of my version - I didn't remove everyting, and besides, I pretty much have no clue of cmake. I also hacked/patched my boost with the 2 missing includes for serialization. It compiles, starts, and opens a quickstart.
There is no progress yet on Arch's boost to include the missing includes... I think I'll try the hack next time. Any reason why the make-cmake-happy patch is not in SVN? It seems usefull to me.
I found it and used it instead of my version - I didn't remove everyting, and besides, I pretty much have no clue of cmake. I also hacked/patched my boost with the 2 missing includes for serialization. It compiles, starts, and opens a quickstart.
There is no progress yet on Arch's boost to include the missing includes... I think I'll try the hack next time. Any reason why the make-cmake-happy patch is not in SVN? It seems usefull to me.
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
Should these both be applied to / tested on the SDL / SDK branch?Mitten.O wrote:Here is a patch...
I have these changes sitting on top of my "make cmake happy" -patch.
Re: Compile SDL Branch in Arch Linux
Yes, I think so. Especially the cmake one is vital. Here is a cleaner version of it I rebased on the current state of the branch. It makes cmake run happily. The boost patch no longer makes boost happy as things are now. I'll get back to you on that.
- Attachments
-
[The extension patch has been deactivated and can no longer be displayed.]
Any code by me in this post is 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
Committed.Mitten.O wrote:Here is a cleaner version of it I rebased on the current state of the branch.
Re: Compile SDL Branch in Arch Linux
head or 4.4 release don't build now with this patch still get those template errors
Re: Compile SDL Branch in Arch Linux
Code: Select all
https://svn.code.sf.net/p/freeorion/code/branches/SDL_Migration_And_Dependencies_Updates/
however it segfaults when you try to run it:
see attached backtrace
- Attachments
-
- gdb.txt
- (342.12 KiB) Downloaded 281 times
Re: Compile SDL Branch in Arch Linux
can somebody explain how to build the SDL branch? and wether its supposed to function already.
Re: Compile SDL Branch in Arch Linux
I'm not on Linux, so I most likely can't really help much, but building the SDL branch shouldn't be different from trunk - besides the different dependencies. But our devs on Linux can most likely give a more competent answer to that.pheldens wrote:can somebody explain how to build the SDL branch? and wether its supposed to function already.
However, even if you can build the SDL branch, you won't get a usable game. The parsers are broken in the SDL branch (result of switching to boost 1.56), and Geoff hasn't come around to fix that yet. Broken parsers mean that several content files aren't processed correctly, so although you can start a game, you can't really play, as too much won't work (no buildings, most ship parts gone etc.).
- 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
It's more so an issue of removing 3D content... I think most of the actual Boost update issues have been resolved?Vezzra wrote:The parsers are broken in the SDL branch (result of switching to boost 1.56)...
Re: Compile SDL Branch in Arch Linux
nope it segfaults in the parser
- 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
That it crashes when trying to parse doesn't mean it's a Boost update-related issue.pheldens wrote:nope it segfaults in the parser
Re: Compile SDL Branch in Arch Linux
ok, let me explain how I built it then
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
gdb ./freeorion
run/bt;
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7220538 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
(gdb) bt
#0 0x00007ffff7220538 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#1 0x00007ffff7218d05 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#2 0x00007ffff721ebb1 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#3 0x00007ffff721c239 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#4 0x00007ffff720def4 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#5 0x00007ffff721cf8e in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#6 0x00007ffff720def4 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#7 0x00007ffff721cb7b in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#8 0x00007ffff721d44c in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#9 0x00007ffff7216a7d in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#10 0x00007ffff7218e29 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#11 0x00007ffff721ebb1 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#12 0x00007ffff721c239 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#13 0x00007ffff720def4 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#14 0x00007ffff721cb7b in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#15 0x00007ffff720def4 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#16 0x00007ffff721cf8e in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#17 0x00007ffff721d44c in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#18 0x00007ffff7216a7d in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#19 0x00007ffff738a55b in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#20 0x00007ffff7381f6c in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#21 0x00007ffff738650e in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#22 0x00007ffff7384ffe in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#23 0x00007ffff7380b04 in ?? ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorionparse.so
#24 0x00007ffff788958b in TechManager::TechManager() ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorioncommon.so
#25 0x00007ffff788a644 in TechManager::GetTechManager() ()
from /home/user/games/SDL_Migration_And_Dependencies_Updates/build/libfreeorioncommon.so
#26 0x00000000006f02f7 in ?? ()
#27 0x00000000006f09b1 in ?? ()
#28 0x000000000069fb8a in ?? ()
#29 0x0000000000607619 in ?? ()
#30 0x00000000004da364 in ?? ()
#31 0x0000000000454d1d in _start ()
cat ~/.freeorion/freeorion.log --verbose-logging 1
2014-12-13 15:29:46,359 DEBUG Client : (Category) Encyclopedia Articles:
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Peace
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Growth Focus
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Mining Focus
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Industry
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Research
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Happiness
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Infrastructure
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Defense
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Shields
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Troops
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Stealth
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Detection Strength
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Detection Range
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Organic Metabolism
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Lithic Metabolism
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Robotic Metabolism
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Phototrophic Metabolism
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Self-Sustaining Metabolism
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Telepathy
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Xenophobic
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Trade Focus
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Protection Focus
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Fuel
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Supply
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Outposts
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Evacuation
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : Fleet Upkeep
2014-12-13 15:29:46,359 DEBUG Client : (Game Concepts) : AI Aggression Levels
- 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
How you built it is (more or less) irrelevant... It's not expected to work.pheldens wrote:ok, let me explain how I built it then
Or at least it wasn't... I think I've fixed most of the remaining parser and 3D removal related issues in the SDL / SDK branch. It starts up and doesn't put any errors in the log files for me. Additional testing would be useful.