Dlib: CMake was unable to find a corresponding build program

Created on 28 Oct 2018  路  2Comments  路  Source: davisking/dlib

Expected Behavior

I installed git, cmake, gcc-7, g++-7 (also I have set aliases for them as gcc and g++), and now I try to install dlib. I hoped that this time everything will be OK :)

Current Behavior

I get the following errors:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".
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!
. . .
subprocess.CalledProcessError: Command '['cmake',
'/aivanf/dlib/tools/python',
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/aivanf/dlib/build/lib.linux-x86_64-3.6',
'-DPYTHON_EXECUTABLE=/usr/bin/python3',
'-DCMAKE_BUILD_TYPE=Release']'
returned non-zero exit status 1.

I tried set specify env variables and to add compiler to CMakeLists.txt also deleting the cache file, but nothing helped me.

Steps to Reproduce

I just install the dlib from the repository to my Ubuntu following that guide.

  • Version: probably the last one because I use this repo.
  • Platform: Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-38-generic x86_64)
  • GCC/G++: 7.3.0
  • CMake: 3.10.2
  • Python: 3.6.6

Thank you a lot for your wonderful lib and troubleshooting!

Most helpful comment

Indeed! Sorry for such a silly question, I'm still continuing fulfilling the "Issues" with such noob problems... But maybe it will help someone else who knows few about compiling on Linux :)

All 2 comments

Is make installed?

Indeed! Sorry for such a silly question, I'm still continuing fulfilling the "Issues" with such noob problems... But maybe it will help someone else who knows few about compiling on Linux :)

Was this page helpful?
0 / 5 - 0 ratings