Built on Linux

Post here about modding and contributing code to Goblin Camp

Moderator: Mods&Dev moderators

Re: Built on Linux

Postby immortius » 04 Mar 2011, 00:21

Bah, my fault on that one. :/
immortius
 
Posts: 139
Joined: 05 Jan 2011, 07:30

Re: Built on Linux

Postby mattl » 04 Mar 2011, 00:47

There's a whole bunch of them...

http://pastebin.com/mVRdu4aq
mattl
 
Posts: 2
Joined: 03 Mar 2011, 21:08

Re: Built on Linux

Postby apostepriori » 04 Mar 2011, 17:05

mattl wrote:http://pastebin.com/mVRdu4aq


This may be of some help... bah

apep

p.s. edit... "hg update -r1449"... anywayz...
a post mitotea prioric para site: hug or life!
User avatar
apostepriori
 
Posts: 34
Joined: 12 Jul 2010, 18:32
Location: Poland, EU

Re: Built on Linux

Postby immortius » 05 Mar 2011, 14:40

Those errors like Entity.hpp should include Faction.hpp. Not sure if there are other problems. I tried to install linux on a virtual machine to investigate further but hit some issues - I may try again later.
immortius
 
Posts: 139
Joined: 05 Jan 2011, 07:30

Re: Built on Linux

Postby apostepriori » 06 Mar 2011, 17:45

it builds fine with the above patch and source checked out at 1449 revision i.e. v0.141 tag. though there also may be the matter of bjam config. one can look at my "stable" Arch Linux AUR entry for that.

i may update the "-hg" AUR entry some time, too, but i don't have patience to keep chasing away the breakage developers are reintroducing with every little revision. and great going there with removing every other "stable" tag before the last one... jeez luiz...

/sigh,
a post...
a post mitotea prioric para site: hug or life!
User avatar
apostepriori
 
Posts: 34
Joined: 12 Jul 2010, 18:32
Location: Poland, EU

Re: Built on Linux

Postby Sim » 07 Mar 2011, 20:15

bjam is the most complicated build tool I've come across so far. It doesn't do any version checks, doesn't stop when it encounters an error and the documentation is hidden somewhere in the depths of internet, where only a skilled google guru ventures. I'm not a programmer, but I still wonder why the author chose it instead of cmake or scons or ...

Anyway, I'd appreciate if you could give me a couple of hints on how to compile this thing. The output of bjam is extremely long. About two million lines look like this:
Code: Select all
    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -g -pthread -fPIC -Winvalid-pch -DBOOST_ALL_NO_LIB -DBOOST_BUILD_PCH_ENABLED -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_THREAD_USE_LIB=1 -DGC_BOOST_BUILD -DLINUX -DNDEBUG -DRELEASE -I"/home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/include" -I"/home/jsimek/Programy/Hry/goblin-camp/Goblin Camp" -I"/home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/include" -I"/home/jsimek/Programy/Hry/goblin-camp/vendor/boost" -I"/home/jsimek/Programy/Hry/goblin-camp/vendor/libtcod/include" -I"/usr/include/SDL" -I"/usr/include/python2.7" -c -o "/home/jsimek/Programy/Hry/goblin-camp/build/tmp/Goblin Camp/gcc-4.4.5/release/threading-multi/ConstructionDialog.o" "/home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/src/UI/ConstructionDialog.cpp"

...failed gcc.compile.c++ /home/jsimek/Programy/Hry/goblin-camp/build/tmp/Goblin Camp/gcc-4.4.5/release/threading-multi/ConstructionDialog.o...
gcc.compile.c++ /home/jsimek/Programy/Hry/goblin-camp/build/tmp/Goblin Camp/gcc-4.4.5/release/threading-multi/DevConsole.o
In file included from /home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/include/Fire.hpp:23,
                 from /home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/include/Tile.hpp:28,
                 from /home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/include/Game.hpp:28,
                 from /home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/src/UI/DevConsole.cpp:28:
/home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/include/Coordinate.hpp: In static member function ‘static Coordinate Coordinate::DirectionToCoordinate(Direction)’:
/home/jsimek/Programy/Hry/goblin-camp/Goblin Camp/include/Coordinate.hpp:59: warning: missing braces around initializer for ‘Coordinate [9]’


And at the end, there is this:
Code: Select all
...skipped <p/home/jsimek/Programy/Hry/goblin-camp/build/tmp/Goblin Camp/gcc-4.4.5/release/threading-multi>goblin-camp for lack of <p/home/jsimek/Programy/Hry/goblin-camp/build/tmp/Goblin Camp/gcc-4.4.5/release/threading-multi>StockManager.o...
common.mkdir /home/jsimek/Programy/Hry/goblin-camp/build/bin-release-x86
common.mkdir /home/jsimek/Programy/Hry/goblin-camp/build/bin-release-x86/bin
...skipped <p/home/jsimek/Programy/Hry/goblin-camp/build/bin-release-x86/bin>goblin-camp for lack of <p/home/jsimek/Programy/Hry/goblin-camp/build/tmp/Goblin Camp/gcc-4.4.5/release/threading-multi>goblin-camp...
gc-version.generate /home/jsimek/Programy/Hry/goblin-camp/build/tmp/Goblin Camp/gcc-4.4.5/release/threading-multi/mod.dat
...
...failed updating 60 targets...
...skipped 2 targets...
...updated 96 targets...
User avatar
Sim
 
Posts: 6
Joined: 07 Mar 2011, 15:48
Location: Prague, Bohemia

Re: Built on Linux

Postby PiotrLegnica » 07 Mar 2011, 20:29

doesn't do any version checks

What version checks?

doesn't stop when it encounters an error

Use -q switch.

documentation is hidden

http://www.boost.org/doc/tools
Also, we have docs/build-readme.html, if you feel that it's not enough then I'd like to know how it could be improved.

why the author chose it

GC didn't choose it, I did, mainly to try it out, and because it avoids a lot of boilerplate. If I had chosen something else, people would complain about something else instead. ;)

I also don't see how you view it as complicated, really. It's a single command to build everything (and config file if your dependencies happen to lie outside of standard compiler paths). Compilation errors are very rarely related to Boost.Build itself, unless you're modifying Jamfiles.

If you encounter compilation errors, always post the entire log.
PiotrLegnica/BasementCat on freenode. Visit #goblincamp!
The pie is a lie
User avatar
PiotrLegnica
 
Posts: 283
Joined: 06 Jul 2010, 15:27
Location: Poland, EU

Re: Built on Linux

Postby immortius » 07 Mar 2011, 21:48

Build errors are generally because everyone is developing under windows and Visual Studio is more forgiving than other compilers (unfortunately).
immortius
 
Posts: 139
Joined: 05 Jan 2011, 07:30

Re: Built on Linux

Postby PiotrLegnica » 07 Mar 2011, 21:51

I'm trying to setup Jenkins and nightly builds to catch those quicker, don't know if I manage to finish this today.
PiotrLegnica/BasementCat on freenode. Visit #goblincamp!
The pie is a lie
User avatar
PiotrLegnica
 
Posts: 283
Joined: 06 Jul 2010, 15:27
Location: Poland, EU

Re: Built on Linux

Postby Sim » 07 Mar 2011, 21:52

PiotrLegnica wrote:
doesn't do any version checks

What version checks?

E.g. I had python 2.6, but it happily assumed that I have python 2.7.

PiotrLegnica wrote:
documentation is hidden

http://www.boost.org/doc/tools
Also, we have docs/build-readme.html, if you feel that it's not enough then I'd like to know how it could be improved.

Oh man, thats longer than War and Peace, but I'll give it a read. Thank you.

PiotrLegnica wrote:If you encounter compilation errors, always post the entire log.

I should've done that, sorry. Complete output: http://pastebin.com/z4SM1cW2, but be warned that it really is 2 million lines long. Well, 3733 to be exact.

Please help, I'm dying to try this game out :cry:

Edit: Just saw this, looks promising: Immortius * d1e044dbada0 r1591 /Goblin Camp/src/ (data/Serialization.cpp SpawningPool.cpp): - Code fixes for linux compile.
Last edited by Sim on 07 Mar 2011, 22:01, edited 1 time in total.
User avatar
Sim
 
Posts: 6
Joined: 07 Mar 2011, 15:48
Location: Prague, Bohemia

PreviousNext

Return to Modding and Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron