Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running cmake .. command #1

Open
amitpande74 opened this issue Mar 15, 2021 · 3 comments
Open

Error while running cmake .. command #1

amitpande74 opened this issue Mar 15, 2021 · 3 comments

Comments

@amitpande74
Copy link

Hi,
I am getting this error while I execute cmake

(base) amit@amit-X705UDR:~/Downloads/diHMM-cpp-master$ cmake .. 
CMake Error: The current CMakeCache.txt directory /home/amit/Downloads/diHMM-cpp-master/CMakeCache.txt is different than the directory /home/sgt29/dihmm_py 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 directory "/home/amit/Downloads" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Kindly guide me.
regards,
Amit.

@ykai16
Copy link
Owner

ykai16 commented Mar 16, 2021

Hi Amit,

Our current design of diHMM requires users to manually change some directory names in some scripts before cmake. The error suggests that it needs to have these names changed. Could you try to the make file and CMakeCache.txt and change the directory names such as "/home/sgt29/dihmm_py" to your own directory?

Best,
Yan

@amitpande74
Copy link
Author

Dear Yan,
Am making the necessary changes to the file. Shall let you know how it went. Thanks for your response.
regards,
Amit.

@amitpande74
Copy link
Author

Hi Yan,
I changed the CmakeCache.txt as

This is the CMakeCache file.

For build in directory: /home/amit/Downloads/diHMM-cpp-master/

It was generated by CMake: /usr/local/cmake-3.8.2/bin/cmake

You can edit this file to change values found and used by cmake.

If you do not want to change any of the values, simply exit the editor.

If you do want to change a value, simply edit, save, and exit the editor.

The syntax for the file is as follows:

KEY:TYPE=VALUE

KEY is the name of a variable in the cache.

TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.

VALUE is the current value for the KEY.

//Value Computed by CMake
#BoostPythonHelloWorld_BINARY_DIR:STATIC=/home/amit/Downloads/diHMM-cpp-master/dihmm_py
BoostPythonHelloWorld_BINARY_DIR:STATIC=/home/amit/Downloads/diHMM-cpp-master/dihmm_py

//Value Computed by CMake
#BoostPythonHelloWorld_SOURCE_DIR:STATIC=/home/amit/Downloads/diHMM-cpp-master/dihmm_py
BoostPythonHelloWorld_SOURCE_DIR:STATIC=/home/amit/Downloads/diHMM-cpp-master/dihmm_py

yet it complains:

(base) amit@amit-X705UDR:~/Downloads/diHMM-cpp-master$ cmake ..
CMake Error: The current CMakeCache.txt directory /home/amit/Downloads/diHMM-cpp-master/CMakeCache.txt is different than the directory /home/sgt29/dihmm_py 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 directory "/home/amit/Downloads" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Kindly help.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants