[Kmymoney-devel] Build Problem

Jack ostroffjh at sbcglobal.net
Fri Dec 30 03:47:55 UTC 2011


On 2011.12.29 22:31, Allan wrote:
> I had to re-install my system and am having build problems.
> 
> I'm getting
> "
> aga at giga:~/Git/kmymoney/build> make
> CMake Error at CMakeLists.txt:53 (STRING):
>   string sub-command SUBSTRING requires four arguments."
> 
> It looks like the top level CMakeLists.txt, which has
> "
> STRING(SUBSTRING ${BRANCH} 0 10 BRANCH)  "
> 
> To me, that seems to have four arguments, but then I know nothing.
> 
> Any clues, anyone, please?  I've a few kmm builds and they all give  
> this error.
> 
> Oh, in case my cmake has upgraded, it's at 2.8.6-2.1.2 which doesn't  
> seem that new.

I'm also on 2.8.6 (both Gentoo and Arch) and I see the same line, and  
have not had any compile issues.  First thing to check is to be sure  
whether the error is generated by make or by cmake itself (I suspect  
the latter).  You could try "ccmake ." while in the build directory,  
then hitting "c" for configure, then "g" for generate to see if either  
of those gives the error.

Could there be something funny about the value of BRANCH before that  
line?  If it's empty, that could cause cmake to see only three  
arguments, although I don't see how it could happen.

Jack


More information about the KMyMoney-devel mailing list