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

Unable to build project on MacOS #81

Open
frode opened this issue Dec 13, 2017 · 3 comments
Open

Unable to build project on MacOS #81

frode opened this issue Dec 13, 2017 · 3 comments

Comments

@frode
Copy link

frode commented Dec 13, 2017

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)

@hernando
Copy link

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.

@benkuper
Copy link

benkuper commented Jan 19, 2018

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

@Dweller
Copy link

Dweller commented May 12, 2021

I got based this point using..

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

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

4 participants