[Kmymoney-devel] Build Problem

Allan agander93 at gmail.com
Fri Dec 30 10:50:19 UTC 2011


Thank you, my friends, and compliments of the season.

On 30/12/11 07:59, Thomas Baumgart wrote:
> Hi,
>
> on Friday 30 December 2011 04:47:55 Jack wrote:
>
>> 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?
>
> That seems to be the case. What is the output of the following command:
>
>    git log -1 | head -n 1
>

Well, once I had installed git (ahem, well it was very very late by this 
time!), I got a good response from the above, and, lo and behold, make 
made better progress.

I hadn't expected to be using git at that stage, just doing a build, 
but, there you go.

> I see
>
>    commit 40f784b58a13c198a2568d0e8f756b4d4e652591


>
> right now.
>
>> If it's empty, that could cause cmake to see only three
>> arguments, although I don't see how it could happen.
>
> Well, if the response to the above command is empty.
>

Now, to alkimia/.

Thanks again

Allan


More information about the KMyMoney-devel mailing list