Skip to content

Instantly share code, notes, and snippets.

@alexattia
Created July 13, 2017 19:31
Show Gist options
  • Save alexattia/3e98685310d90b65031db640d3ea716a to your computer and use it in GitHub Desktop.
Save alexattia/3e98685310d90b65031db640d3ea716a to your computer and use it in GitHub Desktop.
Dlib installing error
Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... error
Complete output from command /Users/alexandreattia/Desktop/Work/workenv/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/tmpxlr2990lpip-wheel- --python-tag cp35:
running bdist_wheel
running build
Detected Python architecture: 64bit
Detected platform: darwin
Configuring cmake ...
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- broken
CMake Error at /usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_07e42/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_07e42.dir/build.make CMakeFiles/cmTC_07e42.dir/build
Building C object CMakeFiles/cmTC_07e42.dir/testCCompiler.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-o CMakeFiles/cmTC_07e42.dir/testCCompiler.c.o -c
/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_07e42
/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_07e42.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
/usr/local/opt/qt/lib CMakeFiles/cmTC_07e42.dir/testCCompiler.c.o -o
cmTC_07e42
ld: can't map file, errno=22 file '/usr/local/opt/qt/lib' for architecture
x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [cmTC_07e42] Error 1
make: *** [cmTC_07e42/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeOutput.log".
See also "/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeError.log".
error: cmake configuration failed!
----------------------------------------
Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
Complete output from command /Users/alexandreattia/Desktop/Work/workenv/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-x9msuxwt-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/alexandreattia/Desktop/Work/workenv/bin/../include/site/python3.5/dlib:
running install
running build
Detected Python architecture: 64bit
Detected platform: darwin
Removing build directory /private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/./tools/python/build
Configuring cmake ...
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- broken
CMake Error at /usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_4a65a/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_4a65a.dir/build.make CMakeFiles/cmTC_4a65a.dir/build
Building C object CMakeFiles/cmTC_4a65a.dir/testCCompiler.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-o CMakeFiles/cmTC_4a65a.dir/testCCompiler.c.o -c
/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_4a65a
/usr/local/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_4a65a.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
/usr/local/opt/qt/lib CMakeFiles/cmTC_4a65a.dir/testCCompiler.c.o -o
cmTC_4a65a
ld: can't map file, errno=22 file '/usr/local/opt/qt/lib' for architecture
x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [cmTC_4a65a] Error 1
make: *** [cmTC_4a65a/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeOutput.log".
See also "/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/tools/python/build/CMakeFiles/CMakeError.log".
error: cmake configuration failed!
----------------------------------------
Command "/Users/alexandreattia/Desktop/Work/workenv/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-x9msuxwt-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/alexandreattia/Desktop/Work/workenv/bin/../include/site/python3.5/dlib" failed with error code 1 in /private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment