Unable to build project on MacOS
I simply followed the build steps:
git clone https://github.com/HBPVIS/Servus.git mkdir Servus/build cd Servus/build cmake -GNinja .. ninja
➜ build git:(master) cmake -GNinja .. CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.5)should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred! ➜ build git:(master) cmake -GNinja .. -Wno-dev CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! ➜ build git:(master)
Remove -GNinja from the cmake invocation and then use make instead of ninja to build.
The other warning is surprising, because there is a cmake_minimum_required statement in CMakeLists.txt.
Same here on Win 10 x64, using powershell : CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "C:/Users/Ben/Desktop/Servus/CMakeFiles/CMakeOutput.log".
I got based this point using..
rm -rf build
cd build
cmake -G "Unix Makefiles" -DCLONE_SUBPROJECTS=ON ..
make