bitpit
bitpit copied to clipboard
CMake error: internal CMake Variables
Dear,
When I am running ccmake to configure bitpit, as suggested in:
https://github.com/optimad/bitpit/blob/master/INSTALL.md
I get the following error:
Does anybody know how to fix it?
Hello Nick, It seems your cmake is not properly installed. Let's try to understand why:
- first, update your database for mlocate launching: "sudo updatedb"
- second, try to find CMakeDetermineCompiler.cmake launching: "locate CMakeDetermineCompiler.cmake"
- It has to be found being a basic cmake component. If you installed cmake from your OS repository, CMakeDetermineCompiler.cmake should be at something like /usr/share/cmake-3.2/Modules/CMakeDetermineCompiler.cmake
- If you can find it launch ccmake specifying the path to find the modules "ccmake -DCMAKE_MODULE_PATH=/your/path/to/modules/folder", i.e. the path to the folder where you found CMakeDetermineCompiler.cmake
- If you cannot find it, your cmake installation is broken.
- purge your cmake installation with "sudo apt-get purge cmake" then "sudo apt-get autoremove" then "sudo apt-get update", restart the OS and reinstall cmake with "sudo apt-get install cmake cmake-data cmake-curses-gui"
- update the mlocate database with "sudo updatedb" and try to find CMakeDetermineCompiler.cmake again with "locate CMakeDetermineCompiler.cmake"
- If you still cannot find, please ask cmake support for help.
Basically you could force cmake setting CMAKE_cmake_COMPILER by hand, but CMakeDetermineCompiler.cmake is a very basic module and even if you solve this problem other modules are needed to configure bitpit, therefore it is better that you find it. But you can try and see what happens.
Let me know what you can do.
Bests,
Marco Cisternino, PhD [email protected]
OPTIMAD Engineering srl Via Giacinto Collegno 18, Torino, Italia. +3901119719782 www.optimad.it
Da: Nick Janssens [email protected] Inviato: martedì 19 novembre 2019 08:48 A: optimad/bitpit Cc: Subscribed Oggetto: [optimad/bitpit] CMake error: internal CMake Variables (#24)
Dear, When I am running ccmake to configure bitpit, as suggested in: https://github.com/optimad/bitpit/blob/master/INSTALL.md I get the following error: [cmakeError]https://user-images.githubusercontent.com/47597758/69126805-516bee00-0aa9-11ea-8b75-786ea74782a9.png Does anybody know how to fix it?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/optimad/bitpit/issues/24?email_source=notifications&email_token=ABSMIGD2UQKZF6PR77STG43QUOK5DA5CNFSM4JO7HQ5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2IKN6Q, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSMIGEKYZNURZ3OM645U3TQUOK5DANCNFSM4JO7HQ5A.
Dear Mr Cisternino
Thank you for your answer! So, luckily, I was able to locate the CMakeDetermineCompiler.cmake:
But after running the ccmake command like the final command in the picture above, I still get:
Any thoughts?
Nick, I don't know why but I've just noticed your cmake is looking for a wrong file, i.e. CMakeDeterminecmakeCompiler.cmake. It should look for CMakeDetermineCompiler.cmake, slightly different. The first file does not exist at all and looking for it is the root of your problem. You should understand why your cmake look for CMakeDeterminecmakeCompiler.cmake and not CMakeDetermineCompiler.cmake. Probably something wrong in your cmake setup. I try to make you understand how:
- CMakeDetermineCompiler.cmake is the general module to find compiler for all the languages
- for example CMakeDetermineCXXCompiler.cmake is the specific module to find c++ compilers
- your CMakeDeterminecmakeCompiler.cmake is quite weird, it seems a composed file name using "cmake" in place of the language standard names (like C, CXX, FORTRAN, ...)
- did you set somewhere "cmake" as programming language to find a compiler for?
- please, exit the error message (I think pressing "e") and print your complete list of cmake variables (you have to press "t" to toggle the complete list) as ccmake can show you and post it here.
Bests,
Marco Cisternino