Csound Csound-dev Csound-tekno Search About

[Csnd-dev] cmake problem

Date2016-09-04 09:48
Fromjoachim heintz
Subject[Csnd-dev] cmake problem
hi -

i am on debian and compiled csound following 
https://github.com/csound/csound/blob/develop/BUILD.md#debian.

the only difference is that my csound directory is not in ~, but in ~/src.

so my directories are:

~/src
+ cs6make
+ csound

first compilation some weeks ago went fine. now i pulled from git and 
got this error:

jh@lenov2:~$ cd ~/src/csound/cs6make/
jh@lenov2:~/src/csound/cs6make$ cmake ../csound
CMake Error: The current CMakeCache.txt directory 
/home/jh/src/csound/cs6make/CMakeCache.txt is different than the 
directory /home/jh/csound/cs6make where CMakeCache.txt was created. This 
may result in binaries being created in the wrong place. If you are not 
sure, reedit the CMakeCache.txt
CMake Error: The source "/home/jh/src/csound/csound/CMakeLists.txt" does 
not match the source "/home/jh/csound/csound/CMakeLists.txt" used to 
generate cache.  Re-run cmake with a different source directory.

i cannot see which entry in CMakeCache.txt i should change, or why this 
error actually occurs.  anyone knows what to do?

thanks -

Date2016-09-04 11:56
FromMichael Gogins
SubjectRe: [Csnd-dev] cmake problem

Delete cmakecache.txt?


On Sep 4, 2016 4:47 AM, "joachim heintz" <jh@joachimheintz.de> wrote:
hi -

i am on debian and compiled csound following https://github.com/csound/csound/blob/develop/BUILD.md#debian.

the only difference is that my csound directory is not in ~, but in ~/src.

so my directories are:

~/src
+ cs6make
+ csound

first compilation some weeks ago went fine. now i pulled from git and got this error:

jh@lenov2:~$ cd ~/src/csound/cs6make/
jh@lenov2:~/src/csound/cs6make$ cmake ../csound
CMake Error: The current CMakeCache.txt directory /home/jh/src/csound/cs6make/CMakeCache.txt is different than the directory /home/jh/csound/cs6make where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/home/jh/src/csound/csound/CMakeLists.txt" does not match the source "/home/jh/csound/csound/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

i cannot see which entry in CMakeCache.txt i should change, or why this error actually occurs.  anyone knows what to do?

thanks -
        joachim

Date2016-09-04 13:00
Fromjoachim heintz
SubjectRe: [Csnd-dev] cmake problem
but then i would loose my custom ooptions, right?


On 04/09/16 12:56, Michael Gogins wrote:
> Delete cmakecache.txt?
>
> On Sep 4, 2016 4:47 AM, "joachim heintz"  wrote:
>
>> hi -
>>
>> i am on debian and compiled csound following
>> https://github.com/csound/csound/blob/develop/BUILD.md#debian.
>>
>> the only difference is that my csound directory is not in ~, but in ~/src.
>>
>> so my directories are:
>>
>> ~/src
>> + cs6make
>> + csound
>>
>> first compilation some weeks ago went fine. now i pulled from git and got
>> this error:
>>
>> jh@lenov2:~$ cd ~/src/csound/cs6make/
>> jh@lenov2:~/src/csound/cs6make$ cmake ../csound
>> CMake Error: The current CMakeCache.txt directory
>> /home/jh/src/csound/cs6make/CMakeCache.txt is different than the
>> directory /home/jh/csound/cs6make where CMakeCache.txt was created. This
>> may result in binaries being created in the wrong place. If you are not
>> sure, reedit the CMakeCache.txt
>> CMake Error: The source "/home/jh/src/csound/csound/CMakeLists.txt" does
>> not match the source "/home/jh/csound/csound/CMakeLists.txt" used to
>> generate cache.  Re-run cmake with a different source directory.
>>
>> i cannot see which entry in CMakeCache.txt i should change, or why this
>> error actually occurs.  anyone knows what to do?
>>
>> thanks -
>>         joachim
>>

Date2016-09-04 13:13
Fromjpff
SubjectRe: [Csnd-dev] cmake problem
Only if you custsed tge cache rather than the Cstm file?

On Sun, 4 Sep 2016, joachim heintz wrote:

> but then i would loose my custom ooptions, right?
>
>
> On 04/09/16 12:56, Michael Gogins wrote:
>> Delete cmakecache.txt?
>> 
>> On Sep 4, 2016 4:47 AM, "joachim heintz"  wrote:
>> 
>>> hi -
>>> 
>>> i am on debian and compiled csound following
>>> https://github.com/csound/csound/blob/develop/BUILD.md#debian.
>>> 
>>> the only difference is that my csound directory is not in ~, but in ~/src.
>>> 
>>> so my directories are:
>>> 
>>> ~/src
>>> + cs6make
>>> + csound
>>> 
>>> first compilation some weeks ago went fine. now i pulled from git and got
>>> this error:
>>> 
>>> jh@lenov2:~$ cd ~/src/csound/cs6make/
>>> jh@lenov2:~/src/csound/cs6make$ cmake ../csound
>>> CMake Error: The current CMakeCache.txt directory
>>> /home/jh/src/csound/cs6make/CMakeCache.txt is different than the
>>> directory /home/jh/csound/cs6make where CMakeCache.txt was created. This
>>> may result in binaries being created in the wrong place. If you are not
>>> sure, reedit the CMakeCache.txt
>>> CMake Error: The source "/home/jh/src/csound/csound/CMakeLists.txt" does
>>> not match the source "/home/jh/csound/csound/CMakeLists.txt" used to
>>> generate cache.  Re-run cmake with a different source directory.
>>> 
>>> i cannot see which entry in CMakeCache.txt i should change, or why this
>>> error actually occurs.  anyone knows what to do?
>>> 
>>> thanks -
>>>         joachim
>>> 
>> 

Date2016-09-04 13:43
FromMichael Gogins
SubjectRe: [Csnd-dev] cmake problem

Yes. What I do is put all my custom options in a shell script or batch file as arguments to cmake so I can delete the cache whenever I want. Of course this is much easier if there are only a few custom options.

Regards,
Mike


On Sep 4, 2016 7:59 AM, "joachim heintz" <jh@joachimheintz.de> wrote:
but then i would loose my custom ooptions, right?


On 04/09/16 12:56, Michael Gogins wrote:
Delete cmakecache.txt?

On Sep 4, 2016 4:47 AM, "joachim heintz" <jh@joachimheintz.de> wrote:

hi -

i am on debian and compiled csound following
https://github.com/csound/csound/blob/develop/BUILD.md#debian.

the only difference is that my csound directory is not in ~, but in ~/src.

so my directories are:

~/src
+ cs6make
+ csound

first compilation some weeks ago went fine. now i pulled from git and got
this error:

jh@lenov2:~$ cd ~/src/csound/cs6make/
jh@lenov2:~/src/csound/cs6make$ cmake ../csound
CMake Error: The current CMakeCache.txt directory
/home/jh/src/csound/cs6make/CMakeCache.txt is different than the
directory /home/jh/csound/cs6make where CMakeCache.txt was created. This
may result in binaries being created in the wrong place. If you are not
sure, reedit the CMakeCache.txt
CMake Error: The source "/home/jh/src/csound/csound/CMakeLists.txt" does
not match the source "/home/jh/csound/csound/CMakeLists.txt" used to
generate cache.  Re-run cmake with a different source directory.

i cannot see which entry in CMakeCache.txt i should change, or why this
error actually occurs.  anyone knows what to do?

thanks -
        joachim



Date2016-09-04 13:44
FromMichael Gogins
SubjectRe: [Csnd-dev] cmake problem

Never got the custom file to work. Use options to the command instead.

Regards,
Mike


On Sep 4, 2016 8:13 AM, "jpff" <jpff@codemist.co.uk> wrote:
Only if you custsed tge cache rather than the Cstm file?

On Sun, 4 Sep 2016, joachim heintz wrote:

but then i would loose my custom ooptions, right?


On 04/09/16 12:56, Michael Gogins wrote:
Delete cmakecache.txt?

On Sep 4, 2016 4:47 AM, "joachim heintz" <jh@joachimheintz.de> wrote:

hi -

i am on debian and compiled csound following
https://github.com/csound/csound/blob/develop/BUILD.md#debian.

the only difference is that my csound directory is not in ~, but in ~/src.

so my directories are:

~/src
+ cs6make
+ csound

first compilation some weeks ago went fine. now i pulled from git and got
this error:

jh@lenov2:~$ cd ~/src/csound/cs6make/
jh@lenov2:~/src/csound/cs6make$ cmake ../csound
CMake Error: The current CMakeCache.txt directory
/home/jh/src/csound/cs6make/CMakeCache.txt is different than the
directory /home/jh/csound/cs6make where CMakeCache.txt was created. This
may result in binaries being created in the wrong place. If you are not
sure, reedit the CMakeCache.txt
CMake Error: The source "/home/jh/src/csound/csound/CMakeLists.txt" does
not match the source "/home/jh/csound/csound/CMakeLists.txt" used to
generate cache.  Re-run cmake with a different source directory.

i cannot see which entry in CMakeCache.txt i should change, or why this
error actually occurs.  anyone knows what to do?

thanks -
        joachim




Date2016-09-04 20:01
Fromjoachim heintz
SubjectRe: [Csnd-dev] cmake problem
thanks to you both.  yes, deleting solved this, and i could compare via 
diff with my old CmakeCache.txt.

	joachim





On 04/09/16 14:43, Michael Gogins wrote:
> Never got the custom file to work. Use options to the command instead.
>
> Regards,
> Mike
>
> On Sep 4, 2016 8:13 AM, "jpff"  wrote:
>
>> Only if you custsed tge cache rather than the Cstm file?
>>
>> On Sun, 4 Sep 2016, joachim heintz wrote:
>>
>> but then i would loose my custom ooptions, right?
>>>
>>>
>>> On 04/09/16 12:56, Michael Gogins wrote:
>>>
>>>> Delete cmakecache.txt?
>>>>
>>>> On Sep 4, 2016 4:47 AM, "joachim heintz"  wrote:
>>>>
>>>> hi -
>>>>>
>>>>> i am on debian and compiled csound following
>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#debian.
>>>>>
>>>>> the only difference is that my csound directory is not in ~, but in
>>>>> ~/src.
>>>>>
>>>>> so my directories are:
>>>>>
>>>>> ~/src
>>>>> + cs6make
>>>>> + csound
>>>>>
>>>>> first compilation some weeks ago went fine. now i pulled from git and
>>>>> got
>>>>> this error:
>>>>>
>>>>> jh@lenov2:~$ cd ~/src/csound/cs6make/
>>>>> jh@lenov2:~/src/csound/cs6make$ cmake ../csound
>>>>> CMake Error: The current CMakeCache.txt directory
>>>>> /home/jh/src/csound/cs6make/CMakeCache.txt is different than the
>>>>> directory /home/jh/csound/cs6make where CMakeCache.txt was created. This
>>>>> may result in binaries being created in the wrong place. If you are not
>>>>> sure, reedit the CMakeCache.txt
>>>>> CMake Error: The source "/home/jh/src/csound/csound/CMakeLists.txt"
>>>>> does
>>>>> not match the source "/home/jh/csound/csound/CMakeLists.txt" used to
>>>>> generate cache.  Re-run cmake with a different source directory.
>>>>>
>>>>> i cannot see which entry in CMakeCache.txt i should change, or why this
>>>>> error actually occurs.  anyone knows what to do?
>>>>>
>>>>> thanks -
>>>>>         joachim
>>>>>
>>>>>
>>>>
>>>