FreeOrion

Forums for the FreeOrion project
It is currently Sun Nov 19, 2017 4:47 am

All times are UTC




Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Sun Sep 28, 2014 8:21 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
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.


Attachments:
File comment: Lines I commented out so that cmake ran through
cmake-missing.patch [5.02 KiB]
Downloaded 77 times

_________________
Attached patches are released under GPL 2.0 or later.
Top
 Profile  
 
PostPosted: Sun Sep 28, 2014 8:39 pm 
Offline
Programmer

Joined: Sun Apr 06, 2014 4:15 pm
Posts: 255
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.


Attachments:
cmake_working.patch [22.52 KiB]
Downloaded 67 times
omni_boost.patch [7.38 KiB]
Downloaded 71 times

_________________
Any code by me in this post is released under GPL 2.0 or later.
Top
 Profile  
 
PostPosted: Sun Sep 28, 2014 9:21 pm 
Offline
Dyson Forest

Joined: Sun May 11, 2008 10:50 am
Posts: 231
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.

_________________
Attached patches are released under GPL 2.0 or later.


Top
 Profile  
 
PostPosted: Mon Oct 13, 2014 10:42 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
Mitten.O wrote:
Here is a patch...

I have these changes sitting on top of my "make cmake happy" -patch.
Should these both be applied to / tested on the SDL / SDK branch?


Top
 Profile  
 
PostPosted: Tue Oct 14, 2014 3:58 pm 
Offline
Programmer

Joined: Sun Apr 06, 2014 4:15 pm
Posts: 255
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:
cmake_working.2.patch [10.59 KiB]
Downloaded 69 times

_________________
Any code by me in this post is released under GPL 2.0 or later.
Top
 Profile  
 
PostPosted: Tue Oct 14, 2014 4:25 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
Mitten.O wrote:
Here is a cleaner version of it I rebased on the current state of the branch.
Committed.


Top
 Profile  
 
PostPosted: Thu Dec 11, 2014 8:11 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
head or 4.4 release don't build now with this patch still get those template errors


Top
 Profile  
 
PostPosted: Thu Dec 11, 2014 10:14 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
Code:
https://svn.code.sf.net/p/freeorion/code/branches/SDL_Migration_And_Dependencies_Updates/


this tree built correctly with 1.56 boost here


however it segfaults when you try to run it:
see attached backtrace


Attachments:
gdb.txt [342.12 KiB]
Downloaded 59 times
Top
 Profile  
 
PostPosted: Fri Dec 12, 2014 2:34 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
can somebody explain how to build the SDL branch? and wether its supposed to function already.


Top
 Profile  
 
PostPosted: Fri Dec 12, 2014 4:06 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
pheldens wrote:
can somebody explain how to build the SDL branch? and wether its supposed to function already.
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.

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.).


Top
 Profile  
 
PostPosted: Sat Dec 13, 2014 1:05 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
Vezzra wrote:
The parsers are broken in the SDL branch (result of switching to boost 1.56)...
It's more so an issue of removing 3D content... I think most of the actual Boost update issues have been resolved?


Top
 Profile  
 
PostPosted: Sat Dec 13, 2014 2:54 am 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
nope it segfaults in the parser


Top
 Profile  
 
PostPosted: Sat Dec 13, 2014 3:11 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
pheldens wrote:
nope it segfaults in the parser
That it crashes when trying to parse doesn't mean it's a Boost update-related issue.


Top
 Profile  
 
PostPosted: Sat Dec 13, 2014 2:27 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
ok, let me explain how I built it then

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
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


Top
 Profile  
 
PostPosted: Sat Dec 20, 2014 12:01 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
pheldens wrote:
ok, let me explain how I built it then
How you built it is (more or less) irrelevant... It's not expected to work.

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  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:  
Powered by phpBB® Forum Software © phpBB Group