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

Error compiling at "Building CXX object CMakeFiles/dlib_.dir/src/dlib.cpp.o" #109

Closed
timbennett opened this issue May 10, 2016 · 9 comments

Comments

@timbennett
Copy link

I'm trying to compile dlib's Python interface fresh on Ubuntu 14.04 LTS via command line, but can't get past the error below. (Dropping DLIB_NO_GUI_SUPPORT causes the build to fail earlier in the process.) As far as I know my software is all up-to-date (notwithstanding being an outdated version of Ubuntu).

The last thing I did before attempting this installation was install OpenCV in a virtualenv using this guide: http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/

The installation fails regardless of whether I run it in the virtualenv, via pip, or in /examples/ with cmake directly.

user@local:~/dlib-18.18# python setup.py install --yes DLIB_NO_GUI_SUPPORT

running install
running bdist_egg
running build
Detected Python architecture: 64bit
Removing build directory //dlib-18.18/./tools/python/build
Configuring cmake ...
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- python
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.6", minimum required is "2.6")
-- USING BOOST_LIBS: /usr/lib/x86_64-linux-gnu/libboost_python.so
-- USING PYTHON_LIBS: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- Enabling SSE4 instructions
-- Looking for png_create_read_struct
-- Looking for png_create_read_struct - found
-- Looking for jpeg_read_header
-- Looking for jpeg_read_header - found
-- Searching for BLAS and LAPACK
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Found LAPACK library
-- Found ATLAS BLAS library
-- Looking for cblas_ddot
-- Looking for cblas_ddot - found
-- Check for STD namespace
-- Check for STD namespace - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Configuring done
-- Generating done
-- Build files have been written to: /
/dlib-18.18/tools/python/build
Build using cmake ...
Scanning dependencies of target dlib
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.o
[ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.o
[ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.o
[ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.o
[ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.o
[ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.o
[ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.o
[ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.o
[ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.o
[ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.o
[ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.o
[ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.o
[ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.o
[ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.o
[ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.o
[ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.o
[ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.o
[ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.o
[ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.o
[ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.o
[ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.o
[ 37%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.o
[ 39%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.o
[ 41%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.o
[ 43%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.o
[ 44%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.o
[ 46%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.o
[ 48%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.o
[ 50%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.o
[ 51%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.o
[ 53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.o
[ 55%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.o
[ 56%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.o
[ 58%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.o
[ 60%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.o
[ 62%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.o
[ 63%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.o
[ 65%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.o
[ 67%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.o
[ 68%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.o
[ 70%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.o
[ 72%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.o
Linking CXX static library libdlib.a
[ 72%] Built target dlib
Scanning dependencies of target dlib_
[ 74%] Building CXX object CMakeFiles/dlib_.dir/src/dlib.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.8/README.Bugs for instructions.
make[2]: *** [CMakeFiles/dlib_.dir/src/dlib.cpp.o] Error 4
make[1]: *** [CMakeFiles/dlib_.dir/all] Error 2
make: *** [all] Error 2
error: cmake build failed!

@davisking
Copy link
Owner

davisking commented May 10, 2016 via email

@timbennett
Copy link
Author

I just tried building from this repo's master.zip and got the same result.

These lines from CMakeError.log might be relevant:

Determining if the pthread_create exist failed with the following output:
Change Dir: /~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec2586865373/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2586865373.dir/build.make CMakeFiles/cmTryCompileExec2586865373.dir/build
make[1]: Entering directory '/~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2586865373.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec2586865373.dir/CheckSymbolExists.c.o   -c /~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec2586865373
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2586865373.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec2586865373.dir/CheckSymbolExists.c.o  -o cmTryCompileExec2586865373 -rdynamic 
CMakeFiles/cmTryCompileExec2586865373.dir/CheckSymbolExists.c.o: In function 'main':
CheckSymbolExists.c:(.text+0x16): undefined reference to 'pthread_create'
collect2: error: ld returned 1 exit status
make[1]: Leaving directory '/~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec2586865373] Error 1
make: *** [cmTryCompileExec2586865373/fast] Error 2

File /~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec4045768290/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec4045768290.dir/build.make CMakeFiles/cmTryCompileExec4045768290.dir/build
make[1]: Entering directory '/~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec4045768290.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec4045768290.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec4045768290
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4045768290.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec4045768290.dir/CheckFunctionExists.c.o  -o cmTryCompileExec4045768290 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: Leaving directory '/~/dlib-master/tools/python/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec4045768290] Error 1
make: *** [cmTryCompileExec4045768290/fast] Error 2

I definitely have these installed:

/lib/x86_64-linux-gnu/libpthread.so.0
/lib/x86_64-linux-gnu/libpthread-2.19.so

I wonder if there are other dependencies I'm missing.

@davisking
Copy link
Owner

davisking commented May 10, 2016 via email

@e-fominov
Copy link
Contributor

/usr/bin/ld: cannot find -lpthreads

phtreads != pthread

@timbennett
Copy link
Author

timbennett commented May 10, 2016

I think my problem was insufficient RAM. That will teach me for cheaping out on my hosting. I've added a 1GB swapfile and am currently compiling to see if that's sufficient (have already made it past the error above).

Edit: 1GB was not enough, but with 4GB it successfully compiled and is running now.

@davisking
Copy link
Owner

Cool :)

@alpha2k5
Copy link

-- Build files have been written to: /home/odroid/srsLTE/build
odroid@odroid:~/srsLTE/build$ make
[ 34%] Built target rrc_asn1
[ 34%] Built target srslte_asn1
[ 34%] Built target srslte_enb
[ 34%] Built target srslte_agc
[ 34%] Built target srslte_ch_estimation
[ 34%] Built target srslte_phy_common
[ 34%] Built target srslte_fec
[ 34%] Built target srslte_mimo
[ 34%] Built target srslte_phch
[ 34%] Built target srslte_sync
[ 34%] Built target srslte_utils
[ 34%] Built target srslte_channel
[ 34%] Built target srslte_dft
[ 34%] Built target srslte_io
[ 34%] Built target srslte_modem
[ 34%] Built target srslte_resampling
[ 34%] Built target srslte_scrambling
[ 34%] Built target srslte_ue
[ 34%] Built target srslte_phy
-- Generating build_info.h
[ 34%] Built target gen_build_info
[ 34%] Building CXX object lib/src/common/CMakeFiles/srslte_common.dir/log_filter.cc.o
/home/odroid/srsLTE/lib/src/common/log_filter.cc: In member function 'void srslte::log_filter::now_time(char*, uint32_t)':
/home/odroid/srsLTE/lib/src/common/log_filter.cc:223:53: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=]
snprintf(buffer, buffer_len, "%ld", usec_epoch);
^
/home/odroid/srsLTE/lib/src/common/log_filter.cc:232:53: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=]
snprintf(buffer, buffer_len, "%ld", usec_epoch);
^
cc1plus: all warnings being treated as errors
lib/src/common/CMakeFiles/srslte_common.dir/build.make:254: recipe for target 'lib/src/common/CMakeFiles/srslte_common.dir/log_filter.cc.o' failed
make[2]: *** [lib/src/common/CMakeFiles/srslte_common.dir/log_filter.cc.o] Error 1
CMakeFiles/Makefile2:1232: recipe for target 'lib/src/common/CMakeFiles/srslte_common.dir/all' failed
make[1]: *** [lib/src/common/CMakeFiles/srslte_common.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

its not going beyong 34% can anyone pls help out.

@harshilishere
Copy link

I have my local PC with 16gb ram. So certainly i have enough space but...

sudo python3 setup.py install --no DLIB_USE_CUDA
running install
running bdist_egg
running build
Detected Python architecture: 64bit
Detected platform: linux
Removing build directory /home/harshil/Desktop/dlib-19.6/./tools/python/build
Configuring cmake ...
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
No header defined for python-py34; skipping header check
Call Stack (most recent call first):
/home/harshil/Desktop/dlib-19.6/dlib/cmake_utils/add_python_module:61 (FIND_PACKAGE)
CMakeLists.txt:9 (include)
-- Could NOT find Boost
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
No header defined for python-py35; skipping header check
Call Stack (most recent call first):
/home/harshil/Desktop/dlib-19.6/dlib/cmake_utils/add_python_module:63 (FIND_PACKAGE)
CMakeLists.txt:9 (include)
-- Could NOT find Boost
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
No header defined for python3; skipping header check
Call Stack (most recent call first):
/home/harshil/Desktop/dlib-19.6/dlib/cmake_utils/add_python_module:66 (FIND_PACKAGE)
CMakeLists.txt:9 (include)
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- python3
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (Required is at least version "3.4")
-- USING BOOST_LIBS: /usr/lib/x86_64-linux-gnu/libboost_python3.so
-- C++11 activated.
-- Enabling SSE4 instructions
CMake Deprecation Warning at /home/harshil/Desktop/dlib-19.6/dlib/CMakeLists.txt:31 (cmake_policy):
The OLD behavior for policy CMP0023 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for png_create_read_struct
-- Looking for png_create_read_struct - found
-- Looking for jpeg_read_header
-- Looking for jpeg_read_header - found
-- Searching for BLAS and LAPACK
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'cblas'
-- No package 'cblas' found
-- Checking for module 'lapack'
-- Found lapack, version 3.10.3
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Found LAPACK library
-- Found ATLAS BLAS library
-- Looking for cblas_ddot
-- Looking for cblas_ddot - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/harshil/Desktop/dlib-19.6/tools/python/build
Build using cmake ...
Scanning dependencies of target dlib
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
[ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
[ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o
[ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o
[ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o
[ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o
[ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o
[ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o
[ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o
[ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o
[ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o
[ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o
[ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o
[ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dnn/cpu_dlib.cpp.o
[ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dnn/tensor_tools.cpp.o
[ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o
[ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o
[ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o
[ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o
[ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o
[ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o
[ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o
[ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o
[ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o
[ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o
[ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o
[ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o
[ 37%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o
[ 38%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o
[ 40%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o
[ 41%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o
[ 42%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o
[ 44%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o
[ 45%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o
[ 46%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o
[ 48%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o
[ 49%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o
[ 50%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o
[ 52%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o
[ 53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o
[ 54%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o
[ 56%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o
[ 57%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o
[ 58%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o
[ 60%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o
[ 61%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o
[ 62%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/style.cpp.o
[ 64%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o
[ 65%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o
[ 66%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o
[ 68%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o
[ 69%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.cpp.o
[ 70%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o
[ 72%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o
[ 73%] Linking CXX static library libdlib.a
[ 73%] Built target dlib
Scanning dependencies of target dlib_
[ 74%] Building CXX object CMakeFiles/dlib_.dir/src/dlib.cpp.o
In file included from /usr/include/boost/python/detail/prefix.hpp:13:0,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /home/harshil/Desktop/dlib-19.6/tools/python/src/dlib.cpp:4:
/usr/include/boost/python/detail/wrap_python.hpp:50:11: fatal error: pyconfig.h: No such file or directory

include <pyconfig.h>

       ^~~~~~~~~~~~

compilation terminated.
CMakeFiles/dlib_.dir/build.make:62: recipe for target 'CMakeFiles/dlib_.dir/src/dlib.cpp.o' failed
make[2]: *** [CMakeFiles/dlib_.dir/src/dlib.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dlib_.dir/all' failed
make[1]: *** [CMakeFiles/dlib_.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
error: cmake build failed!

can't go beyond this and can't understand the problem. Also tried to install it for CUDA but that also didn't worked.

@poojaravishankar
Copy link

poojaravishankar commented Aug 25, 2020

This thread was very useful for me! I had the same "cheapoing" problem :)

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

6 participants