Built on Linux

Post here about modding and contributing code to Goblin Camp

Moderator: Mods&Dev moderators

Re: Built on Linux

Postby snus-mumrik » 22 Jul 2010, 19:02

Karl, Piotr, thanks a lot for your help. It finally works.
Installing boost_1.43 eliminated all boost related errors.
And the last error I fixed with quick-and-dirty-hack. But I think it needs some attention from developers.

If I understood correctly, the problem is: libtcod provides a list that stores pointers given by user. In some specific case we want to store integers in that list and so we give integers themselves instead of pointers. When we read from list the function returns void* and we cast it back to int. Now in 64 bit pointers and int-s are of different size and conversion from void* to int is not obvious for compiler.
I used (int)(unsigned long)that_pointer as a quick fix, hope it really was unsigned (maybe (int)(long)that_pointer could also work, didn't check).
User avatar
snus-mumrik
 
Posts: 150
Joined: 25 Jun 2010, 16:20

Re: Built on Linux

Postby ktvoelker » 22 Jul 2010, 19:05

The Boost developers have committed a fix to the problem I was mentioning earlier. So, it should be safe to make Entity::X and Entity::Y virtual again if that is ever needed. (At least, once the next release of Boost is available.)
-Karl
User avatar
ktvoelker
 
Posts: 14
Joined: 15 Jul 2010, 04:41

Re: Built on Linux

Postby PiotrLegnica » 22 Jul 2010, 19:10

Yeah, 64-bit builds is something to be checked, right now you can just compile as 32-bit.
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 Tinyn » 25 Jul 2010, 19:32

Is there any chance this can be updated to include the XML removal updates?

edit: Might not matter. boost 1.43 isn't in portage yet even.
Last edited by Tinyn on 25 Jul 2010, 19:42, edited 1 time in total.
Tinyn
 
Posts: 8
Joined: 25 Jul 2010, 18:40

Re: Built on Linux

Postby snus-mumrik » 25 Jul 2010, 19:35

Forks of gencontain and PiotrLegnica don't need XML as dependancy. And they have multiplatform build (boost build), that requires some tweaks now and then but generally works.
User avatar
snus-mumrik
 
Posts: 150
Joined: 25 Jun 2010, 16:20

Re: Built on Linux

Postby Tinyn » 25 Jul 2010, 19:54

OK, I switched to gencontain, but I didn't see a Makefile and instantly paniced. (perfectly reasonable I feel.) But it doesn't build with bjam either. "error: Unknown target type rc"
Tinyn
 
Posts: 8
Joined: 25 Jul 2010, 18:40

Re: Built on Linux

Postby snus-mumrik » 25 Jul 2010, 20:35

As I said, it needs some tweaks. For example I used to run it with command line:
Code: Select all
bjam install variant=release-pdb toolset=gcc include="/home/ilya/Programming/Testing/Tcod/svn-libtcod/trunk/include/" linkflags="-L/home/ilya/Programming/Testing/Tcod/svn-libtcod/trunk/cmake/release/src/ -lboost_thread -lboost_serialization"

Then I edited some files to get rid of most options etc.

What command do you run?
User avatar
snus-mumrik
 
Posts: 150
Joined: 25 Jun 2010, 16:20

Re: Built on Linux

Postby PiotrLegnica » 25 Jul 2010, 20:58

You don't need to edit the build-system itself any more. See viewtopic.php?p=1013#p1013
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 snus-mumrik » 25 Jul 2010, 21:12

Oh, good.
User avatar
snus-mumrik
 
Posts: 150
Joined: 25 Jun 2010, 16:20

Re: Built on Linux

Postby Tinyn » 27 Jul 2010, 02:46

So how do I provide a specific boost install directory, so the build system?
Tinyn
 
Posts: 8
Joined: 25 Jul 2010, 18:40

PreviousNext

Return to Modding and Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron