Servus icon indicating copy to clipboard operation
Servus copied to clipboard

Unable to build project on MacOS

Open frode opened this issue 8 years ago • 3 comments

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)

frode avatar Dec 13 '17 10:12 frode

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.

hernando avatar Dec 20 '17 18:12 hernando

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".

benkuper avatar Jan 19 '18 17:01 benkuper

I got based this point using..

rm -rf build
cd build
cmake -G "Unix Makefiles" -DCLONE_SUBPROJECTS=ON ..
make

Dweller avatar May 12 '21 07:05 Dweller