spring compilation error boost 1.50

spring compilation error boost 1.50

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
jpcordovae
Posts: 28
Joined: 30 Apr 2009, 21:11

spring compilation error boost 1.50

Post by jpcordovae »

HI to all, well, I was updating boost libs to 1.50 and I wasn't able to compile spring by two reason until now, first, boost::TIME_UTC was renamed to boost::TIME_UTC_, not big deal, easy to patch, but then an error over an overloaded function :( , like seems to me that is a boost problem.

I hope you can help me to fix this.

http://pastebin.com/7SCcS6zB

Searching in internet I found same error here:

http://hydra.nixos.org/build/2884055

JP
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: spring compilation error boost 1.50

Post by gajop »

Patch supplied is how arch currently does it for 89.0, it may not work for you.
It most definitely doesn't work on the current git, a more permanent solution is being created by some people, but still no easy fix yet.
Attachments
boost-1.50.patch.txt
(106.42 KiB) Downloaded 113 times
User avatar
jpcordovae
Posts: 28
Joined: 30 Apr 2009, 21:11

Re: spring compilation error boost 1.50

Post by jpcordovae »

Thanks you very much, I'll take a look to the patch.

JP
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: spring compilation error boost 1.50

Post by Tobi »

@jpcordovae Can you try whether the kill-using-namespace-streflop-2 branch does compile for you?
Cool, didn't know spring was in nixos as well :P
User avatar
jpcordovae
Posts: 28
Joined: 30 Apr 2009, 21:11

Re: spring compilation error boost 1.50

Post by jpcordovae »

@Tobi, except for TIME_UTC issue, it works perfect !!

I left the patch to fix the boost 1.50 TIME_UTC issue in the next link, it should work no matter what version of boost you use.

http://pastebin.com/ZtFCuD4Y

Thanks you guys.

JP
User avatar
jpcordovae
Posts: 28
Joined: 30 Apr 2009, 21:11

Re: spring compilation error boost 1.50

Post by jpcordovae »

I left you a link to gcc 4.7 porting code documentation, to keep in mind.

http://gcc.gnu.org/gcc-4.7/porting_to.html

JP
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: spring compilation error boost 1.50

Post by abma »

for the reference the mantis bug report:

http://springrts.com/mantis/view.php?id=3164
Post Reply

Return to “Engine”