Page 1 of 1

Problems compiling 83.0

Posted: 06 Nov 2011, 21:16
by very_bad_soldier
When I try to compile spring 83.0 on Debian Lenny (32bit) I get the following error:
http://pastebin.com/mnVMX2yL

I did not set special configure options (I pointed to the include path for freetype manually though).

This file mentioned in the error is there:

Code: Select all

/root/spring_83.0/rts/build/cmake/UtilVersion.cmake
Any ideas what could be wrong?

BTW:
The Ubuntu packages do not work for me cause of different boost versions.

Re: Problems compiling 83.0

Posted: 06 Nov 2011, 22:02
by hoijui
i guess this has to do with your version of CMake... at least that is the only thing i could imagine. can you please give the output of "cmake --version"?

as a temporary fix, just remove the extra parenthesis, like in this commit:
https://github.com/spring/spring/commit ... 55296fa6ff
i don't know why i put them there, and why they only fail for you.

Re: Problems compiling 83.0

Posted: 06 Nov 2011, 22:30
by very_bad_soldier
Thanks hoi. I tried that but I have now another error:
http://pastebin.com/DQEagRkt

I bet its easy too fix. Too bad I have no experience with cmake (besides using it when it works fine) so I cant fix it myself, sorry :/

Thats my cmake version:

Code: Select all

luke:~/spring_83.0# cmake --version
cmake version 2.6-patch 0

Re: Problems compiling 83.0

Posted: 06 Nov 2011, 23:05
by hoijui
hmm...
FindGit.cmake should come with CMake, but it does not with 2.6, as it seems. i would strongly recommend to use at least CMake 2.6.3, for other reasons too. i guess we make that a hard requirement again for next release.

Re: Problems compiling 83.0

Posted: 06 Nov 2011, 23:14
by very_bad_soldier
Again thanks hoi. Works fine now :-)

Code: Select all

[100%] Built target spring-dedicated
I just used latest cmake and it works fine now. I downloaded the binary package from cmake.org and used it (even without installing it into my system).