davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.58k stars 3.38k forks source link

Visutal Studio 2017 Community is not compatible while compiling dlib with CUDA support. #1035

Closed cybersa closed 6 years ago

cybersa commented 6 years ago

Trying to compile Dlib with CUDA support for Python. I have cloned the github source into my local and installed necessary libs like cmake etc... and initiated the build.

python setup.py install --yes USE_AVX_INSTRUCTIONS.

While building it is not taking my Visual Studio Community Edition 2017 with CUDA support.

Error Message: You have CUDA installed, but we can't use it unless you put visual studio in 64bit mode.

Full Log:

(base) C:\Users\Asus\dlib>python setup.py install --yes USE_AVX_INSTRUCTIONS running install running bdist_egg running build Detected Python architecture: 64bit Detected platform: win32 Removing build directory C:\Users\Asus\dlib./tools/python/build Configuring cmake ... -- Building for: Visual Studio 15 2017 -- The C compiler identification is MSVC 19.12.25831.0 -- The CXX compiler identification is MSVC 19.12.25831.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message): Imported targets and dependency information not available for Boost version (all versions older than 1.33) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES) C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES) C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:66 (FIND_PACKAGE) CMakeLists.txt:9 (include) CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1610 (message): No header defined for python-py34; skipping header check Call Stack (most recent call first): C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:66 (FIND_PACKAGE) CMakeLists.txt:9 (include) -- Could NOT find Boost CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message): Imported targets and dependency information not available for Boost version (all versions older than 1.33) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES) C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES) C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:68 (FIND_PACKAGE) CMakeLists.txt:9 (include) CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1610 (message): No header defined for python-py35; skipping header check Call Stack (most recent call first): C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:68 (FIND_PACKAGE) CMakeLists.txt:9 (include) -- Could NOT find Boost CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message): Imported targets and dependency information not available for Boost version (all versions older than 1.33) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES) C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES) C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:71 (FIND_PACKAGE) CMakeLists.txt:9 (include) CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1610 (message): No header defined for python3; skipping header check Call Stack (most recent call first): C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:71 (FIND_PACKAGE) CMakeLists.txt:9 (include) -- Could NOT find Boost CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:567 (message): Imported targets and dependency information not available for Boost version (all versions older than 1.33) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES) C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES) C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:74 (FIND_PACKAGE) CMakeLists.txt:9 (include) -- Could NOT find Boost -- Found PythonLibs: C:/Users/Asus/Miniconda3/libs/python36.lib (found suitable version "3.6.3", minimum required is "3.4") -- 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 -- Enabling AVX instructions -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE -- A library with BLAS API not found. Please specify library location. -- LAPACK requires BLAS -- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1 (found suitable version "9.1", minimum required is "7.5") CMake Warning at C:/Users/Asus/dlib/dlib/CMakeLists.txt:535 (message): You have CUDA installed, but we can't use it unless you put visual studio in 64bit mode. -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA -- C++11 activated. -- -- The BOOST_ROOT and/or BOOST_LIBRARYDIR environment variables are not set. You need to set these -- variables so we know where boost is installed. So set these variables to something like this: -- BOOST_ROOT=C:\local\boost_1_57_0 -- BOOST_LIBRARYDIR=C:\local\boost_1_57_0\stage\lib -- The best way to set enviornment variables in Windows is to go to the start menu's search box, -- type environment, and open the Environment Variables dialog. That lets you add more variables. -- Add these variables to either user or system variables, it doesn't matter. -- You might have to log out and log back in before the environment changes take effect. -- CMake Error at C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:149 (message): Boost python library not found. Call Stack (most recent call first): CMakeLists.txt:9 (include) -- Configuring incomplete, errors occurred! See also "C:/Users/Asus/dlib/tools/python/build/CMakeFiles/CMakeOutput.log". See also "C:/Users/Asus/dlib/tools/python/build/CMakeFiles/CMakeError.log". error: cmake configuration failed!

davisking commented 6 years ago

You need to use a 64bit python.

cybersa commented 6 years ago

@davisking I'm using 64bit version only. I verified.

davisking commented 6 years ago

The setup.py wasn't updated to handle visual studio 2017. I just updated it so that it will put visual studio 2017 into 64bit mode. So if you grab the latest code it should do the right thing now.

cybersa commented 6 years ago

@davisking Thanks for your update. Now i'm seeing different issue:

-- LAPACK requires BLAS -- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1 (found suitable version "9.1", minimum required is "7.5") -- Looking for cuDNN install... -- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/cudnn.lib -- Building a CUDA test project to see if your compiler is compatible with CUDA... -- CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA. -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA

I tried with both CUDA 8 and CUDA 9. Same issue but build get succeeded with VS 2017

But thing is while compiling dlib with VS 2015 CUDA is working fine but build get failed with some LINK error

Creating library C:/Users/Asus/dlib/tools/python/build/Release/dlib.lib and object C:/Users/Asus/dlib/tools/python/build/Release/dlib.exp sequence_segmenter.obj : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_struct.obj : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.obj : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_function_search.obj) : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] vector.obj : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_c_trainer.obj : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_rank_trainer.obj : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] decision_functions.obj : error LNK2001: unresolved external symbol cblasddot [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_struct.obj : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.obj : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] correlation_tracker.obj : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_function_search.obj) : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_c_trainer.obj : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_rank_trainer.obj : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] decision_functions.obj : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] sequence_segmenter.obj : error LNK2001: unresolved external symbol cblasdaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_struct.obj : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.obj : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] correlation_tracker.obj : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_function_search.obj) : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_c_trainer.obj : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_rank_trainer.obj : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] decision_functions.obj : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] sequence_segmenter.obj : error LNK2001: unresolved external symbol cblasdscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.obj : error LNK2001: unresolved external symbol cblasdgemv [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_function_search.obj) : error LNK2001: unresolved external symbol cblasdgemv [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_c_trainer.obj : error LNK2001: unresolved external symbol cblasdgemv [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_rank_trainer.obj : error LNK2001: unresolved external symbol cblasdgemv [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] sequence_segmenter.obj : error LNK2001: unresolved external symbol cblasdgemv [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_struct.obj : error LNK2001: unresolved external symbol cblasdgemv [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] cca.obj : error LNK2019: unresolved external symbol dgeqrf_ referenced in function "int cdecl dlib::lapack::geqrf<double,0,0,0,1,class dlib::memory_manager_stateless_kernel_1 >(class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::column_major_layout> &,class dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::column_major_layout> &)" (??$geqrf@N$0A@$0A@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@@lapack@dlib@@YAHAEAV?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Ucolumn_major_layout@2@@1@AEAV?$matrix@N$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Ucolumn_majorlayout@2@@1@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] cca.obj : error LNK2019: unresolved external symbol dormqr_ referenced in function "int cdecl dlib::lapack::ormqr<double,0,0,0,0,1,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>(char,char,class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::column_major_layout> const &,class dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::column_major_layout> const &,class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &)" (??$ormqr@N$0A@$0A@$0A@$0A@$00$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@lapack@dlib@@YAHDDAEBV?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Ucolumn_major_layout@2@@1@AEBV?$matrix@N$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Ucolumn_major_layout@2@@1@AEAV?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@1@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] gui.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_functionsearch.obj) : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] shapepredictor.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] correlationtracker.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] facerecognition.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] numpyreturns.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] cca.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] sequencesegmenter.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] svmstruct.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] objectdetection.obj : error LNK2001: unresolved external symbol dgesdd [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] gui.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] dlib_release_64bit_msvc1900.lib(global_functionsearch.obj) : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] shapepredictor.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] correlationtracker.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] facerecognition.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] numpyreturns.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] cca.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] sequencesegmenter.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] svmstruct.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] objectdetection.obj : error LNK2001: unresolved external symbol dgesvd [C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj] dlib_release_64bit_msvc1900.lib(global_function_search.obj) : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] shape_predictor.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] correlation_tracker.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] face_recognition.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] numpy_returns.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] cca.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] sequence_segmenter.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_struct.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.obj : error LNK2001: unresolved external symbol cblasdgemm [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.obj : error LNK2019: unresolved external symbol cblas_saxpy referenced in function "public: static void cdecl dlib::blas_bindings::matrix_assign_blas_helper<class dlib::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,class dlib::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,void>::assign(class dlib::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &,class dlib::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> const &,float,bool,bool)" (?assign@?$matrix_assign_blas_helper@V?$matrix@M$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@V12@X@blas_bindings@dlib@@SAXAEAV?$matrix@M$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@3@AEBV43@MN2@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] shape_predictor.obj : error LNK2001: unresolved external symbol cblassaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] face_recognition.obj : error LNK2001: unresolved external symbol cblassaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] gui.obj : error LNK2001: unresolved external symbol cblassaxpy [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.obj : error LNK2019: unresolved external symbol cblas_sscal referenced in function "public: cdecl dlib::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout><class dlib::matrix_mul_scal_exp<class dlib::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,1> >(class dlib::matrix_exp<class dlib::matrix_mul_scal_exp<class dlib::matrix<float,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,1> > const &)" (??$?0V?$matrix_mul_scal_exp@V?$matrix@M$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@$00@dlib@@@?$matrix@M$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@QEAA@AEBV?$matrix_exp@V?$matrix_mul_scal_exp@V?$matrix@M$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@dlib@@$00@dlib@@@1@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] shape_predictor.obj : error LNK2001: unresolved external symbol cblassscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] face_recognition.obj : error LNK2001: unresolved external symbol cblassscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] gui.obj : error LNK2001: unresolved external symbol cblassscal [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] shape_predictor.obj : error LNK2019: unresolved external symbol cblas_sdot referenced in function "float cdecl dlib::dot<class dlib::matrix<float,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,class dlib::matrix<float,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> >(class dlib::matrix_exp<class dlib::matrix<float,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > const &,class dlib::matrix_exp<class dlib::matrix<float,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > const &)" (??$dot@V?$matrix@M$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@V12@@dlib@@YAMAEBV?$matrix_exp@V?$matrix@M$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@dlib@@@0@0@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] correlation_tracker.obj : error LNK2019: unresolved external symbol cblas_zaxpy referenced in function "void cdecl dlib::blas_bindings::matrix_assign_blas<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout,class dlib::matrix_add_exp<class dlib::matrix_mul_scal_exp<class dlib::matrix_op<struct dlib::op_pointwise_multiply<class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > >,1>,class dlib::matrix_mul_scal_exp<class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,1> > >(class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &,class dlib::matrix_add_exp<class dlib::matrix_mul_scal_exp<class dlib::matrix_op<struct dlib::op_pointwise_multiply<class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > >,1>,class dlib::matrix_mul_scal_exp<class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,1> > const &)" (??$matrix_assign_blas@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@V?$matrix_add_exp@V?$matrix_mul_scal_exp@V?$matrix_op@U?$op_pointwise_multiply@V?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@@dlib@@V12@@dlib@@@dlib@@$00@dlib@@V?$matrix_mul_scal_exp@V?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@@dlib@@$00@2@@4@@blas_bindings@dlib@@YAXAEAV?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@@1@AEBV?$matrix_add_exp@V?$matrix_mul_scal_exp@V?$matrix_op@U?$op_pointwise_multiply@V?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@@dlib@@V12@@dlib@@@dlib@@$00@dlib@@V?$matrix_mul_scal_exp@V?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@4@@dlib@@$00@2@@1@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] correlation_tracker.obj : error LNK2019: unresolved external symbol cblas_zscal referenced in function "void cdecl dlib::blas_bindings::matrix_assign_blas_proxy<class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,1>(class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &,class dlib::matrix_mul_scal_exp<class dlib::matrix<class std::complex,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,1> const &,class std::complex,bool,bool)" (??$matrix_assign_blas_proxy@V?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@@dlib@@V12@$00@blas_bindings@dlib@@YAXAEAV?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@@1@AEBV?$matrix_mul_scal_exp@V?$matrix@V?$complex@N@std@@$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@4@@dlib@@$00@1@V?$complex@N@std@@N3@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_function_search.obj) : error LNK2019: unresolved external symbol cblas_dtrsm referenced in function "public: class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> const cdecl dlib::lu_decomposition<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> >::solve<class dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> >(class dlib::matrix_exp<class dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > const &)const " (??$solve@V?$matrix@N$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@@?$lu_decomposition@V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@@dlib@@QEBA?BV?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@1@AEBV?$matrix_exp@V?$matrix@N$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@dlib@@@1@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_functionsearch.obj) : error LNK2019: unresolved external symbol dgetrf referenced in function "public: cdecl dlib::lu_decomposition<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> >::lu_decomposition<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> ><class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> >(class dlib::matrix_exp<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > const &)" (??$?0V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@@?$lu_decomposition@V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@@dlib@@QEAA@AEBV?$matrix_exp@V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@dlib@@@1@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_functionsearch.obj) : error LNK2019: unresolved external symbol dpotrf referenced in function "class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> const cdecl dlib::chol<class dlib::matrix_op<struct dlib::op_add_diag<class dlib::const_temp_matrix<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > > > >(class dlib::matrix_exp<class dlib::matrix_op<struct dlib::op_add_diag<class dlib::const_temp_matrix<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > > > > const &)" (??$chol@V?$matrix_op@U?$op_add_diag@V?$const_temp_matrix@V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@@dlib@@@dlib@@@dlib@@@dlib@@YA?BV?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@0@AEBV?$matrix_exp@V?$matrix_op@U?$op_add_diag@V?$const_temp_matrix@V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@dlib@@@dlib@@@dlib@@@dlib@@@0@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_functionsearch.obj) : error LNK2019: unresolved external symbol dsyevr referenced in function "int __cdecl dlib::lapack::syevr<double,0,0,0,0,0,1,0,0,class dlib::memory_manager_stateless_kernel_1 >(char,char,char,class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &,double,double,long,long,double,long &,class dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &,class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &,class dlib::matrix<long,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &)" (??$syevr@N$0A@$0A@$0A@$0A@$0A@$00$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@@lapack@dlib@@YAHDDDAEAV?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@1@NNJJNAEAJAEAV?$matrix@N$0A@$00V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@1@0AEAV?$matrix@J$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@1@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] dlib_release_64bit_msvc1900.lib(global_functionsearch.obj) : error LNK2019: unresolved external symbol dpbtrf referenced in function "class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> const __cdecl dlib::chol<class dlib::matrix_op<struct dlib::op_add_diag<class dlib::const_temp_matrix<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > > > >(class dlib::matrix_exp<class dlib::matrix_op<struct dlib::op_add_diag<class dlib::const_temp_matrix<class dlib::matrix<double,0,0,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> > > > > const &)" (??$chol@V?$matrix_op@U?$op_add_diag@V?$const_temp_matrix@V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@dlib@@@dlib@@@dlib@@@dlib@@@dlib@@YA?BV?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_major_layout@2@@0@AEBV?$matrix_exp@V?$matrix_op@U?$op_add_diag@V?$const_temp_matrix@V?$matrix@N$0A@$0A@V?$memory_manager_stateless_kernel_1@D@dlib@@Urow_majorlayout@2@@dlib@@@dlib@@@dlib@@@dlib@@@0@@Z) [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\Users\Asus\dlib\tools\python\build\Release\dlib.pyd : fatal error LNK1120: 19 unresolved externals [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] Done Building Project "C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj" (default targets) -- FAILED. Done Building Project "C:\Users\Asus\dlib\tools\python\build\ALL_BUILD.vcxproj" (default targets) -- FAILED. Done Building Project "C:\Users\Asus\dlib\tools\python\build\install.vcxproj" (default targets) -- FAILED. Build FAILED.

Any help?

davisking commented 6 years ago

Post the entire cmake output

cybersa commented 6 years ago

@davisking cmake output for VS15 or VS 2017?

davisking commented 6 years ago

I'm just saying to post the entire output of whatever isn't working. Your last post is missing important information. In particular, it appears there is some BLAS library on your system that cmake is finding but it then turns out that this BLAS library, whatever it is, is busted since it's missing symbols according to those error messages you posted.

cybersa commented 6 years ago

@davisking Okay. This is the log of VS 2017. Not compiling with CUDA support.

-- CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA.

C:\Users\Asus\dlib>python setup.py install --yes USE_AVX_INSTRUCTIONS running install running bdist_egg running build Detected Python architecture: 64bit Detected platform: win32 Removing build directory C:\Users\Asus\dlib./tools/python/build Configuring cmake ... -- Building for: Visual Studio 15 2017 -- The C compiler identification is MSVC 19.12.25831.0 -- The CXX compiler identification is MSVC 19.12.25831.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1610 (message): No header defined for python-py34; skipping header check Call Stack (most recent call first): C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:66 (FIND_PACKAGE) CMakeLists.txt:9 (include) -- Could NOT find Boost CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1610 (message): No header defined for python-py35; skipping header check Call Stack (most recent call first): C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:68 (FIND_PACKAGE) CMakeLists.txt:9 (include) -- Could NOT find Boost CMake Warning at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1610 (message): No header defined for python3; skipping header check Call Stack (most recent call first): C:/Users/Asus/dlib/dlib/cmake_utils/add_python_module:71 (FIND_PACKAGE) CMakeLists.txt:9 (include) -- Boost version: 1.63.0 -- Found the following Boost libraries: -- python3 -- Found PythonLibs: C:/Users/Asus/AppData/Local/Programs/Python/Python36/libs/python36.lib (found suitable version "3.6.4", minimum required is "3.4") -- 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 -- Enabling AVX instructions -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE -- A library with BLAS API not found. Please specify library location. -- LAPACK requires BLAS -- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1 (found suitable version "9.1", minimum required is "7.5") -- Looking for cuDNN install... -- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/cudnn.lib -- Building a CUDA test project to see if your compiler is compatible with CUDA... -- CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA. -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA -- C++11 activated. -- USING BOOST_LIBS: optimized;C:/local/boost_1_63_0/stage/lib/libboost_python3-vc140-mt-s-1_63.lib;debug;C:/local/boost_1_63_0/stage/lib/libboost_python3-vc140-mt-sgd-1_63.lib -- USING PYTHON_LIBS: C:/Users/Asus/AppData/Local/Programs/Python/Python36/libs/python36.lib -- Found PythonInterp: C:/Users/Asus/AppData/Local/Programs/Python/Python36/python.exe (found version "3.6.4") -- Found Python with installed numpy package -- Numpy include path 'C:\Users\Asus\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\include' -- Configuring done -- Generating done -- Build files have been written to: C:/Users/Asus/dlib/tools/python/build Build using cmake ... Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. Build started 28-12-2017 18:54:32. Project "C:\Users\Asus\dlib\tools\python\build\install.vcxproj" on node 1 (default targets). Project "C:\Users\Asus\dlib\tools\python\build\install.vcxproj" (1) is building "C:\Users\Asus\dlib\tools\python\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets). PrepareForBuild: Creating directory "x64\Release\ZERO_CHECK\". Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\". InitializeBuildStatus: Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Checking Build System CMake does not need to re-run because C:/Users/Asus/dlib/tools/python/build/CMakeFiles/generate.stamp is up-to-date. CMake does not need to re-run because C:/Users/Asus/dlib/tools/python/build/dlib_build/CMakeFiles/generate.stamp is up-to-date. FinalizeBuildStatus: Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". Done Building Project "C:\Users\Asus\dlib\tools\python\build\ZERO_CHECK.vcxproj" (default targets). Project "C:\Users\Asus\dlib\tools\python\build\install.vcxproj" (1) is building "C:\Users\Asus\dlib\tools\python\build\ALL_BUILD.vcxproj" (3) on node 1 (default targets). Project "C:\Users\Asus\dlib\tools\python\build\ALL_BUILD.vcxproj" (3) is building "C:\Users\Asus\dlib\tools\python\build\dlib_build\dlib.vcxproj" (4) on node 1 (default targets). PrepareForBuild: Creating directory "dlib.dir\Release\". Creating directory "C:\Users\Asus\dlib\tools\python\build\dlib_build\Release\". Creating directory "dlib.dir\Release\dlib.tlog\". InitializeBuildStatus: Creating "dlib.dir\Release\dlib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Building Custom Rule C:/Users/Asus/dlib/dlib/CMakeLists.txt CMake does not need to re-run because C:/Users/Asus/dlib/tools/python/build/dlib_build/CMakeFiles/generate.stamp is up-to-date. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\CL.exe /c /IC:\Users\Asus\dlib\dlib\external\libpng /IC:\Users\Asus\dlib\dlib\external\zlib /nologo /W3 /WX- /diagnostics:classic /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D DLIB_JPEG_SUPPORT /D DLIB_PNG_SUPPORT /D DLIB_NO_ABORT_ON_2ND_FATAL_ERROR /D BOOST_PYTHON_STATIC_LIB /D DLIB_JPEG_STATIC /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MT /GS /arch:AVX /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"dlib.dir\Release\" /Fd"dlib.dir\Release\dlib.pdb" /Gd /TP /errorReport:queue /bigobj C:\Users\Asus\dlib\dlib\base64\base64_kernel_1.cpp C:\Users\Asus\dlib\dlib\bigint\bigint_kernel_1.cpp C:\Users\Asus\dlib\dlib\bigint\bigint_kernel_2.cpp C:\Users\Asus\dlib\dlib\bit_stream\bit_stream_kernel_1.cpp C:\Users\Asus\dlib\dlib\entropy_decoder\entropy_decoder_kernel_1.cpp C:\Users\Asus\dlib\dlib\entropy_decoder\entropy_decoder_kernel_2.cpp C:\Users\Asus\dlib\dlib\entropy_encoder\entropy_encoder_kernel_1.cpp C:\Users\Asus\dlib\dlib\entropy_encoder\entropy_encoder_kernel_2.cpp C:\Users\Asus\dlib\dlib\md5\md5_kernel_1.cpp C:\Users\Asus\dlib\dlib\tokenizer\tokenizer_kernel_1.cpp C:\Users\Asus\dlib\dlib\unicode\unicode.cpp C:\Users\Asus\dlib\dlib\data_io\image_dataset_metadata.cpp C:\Users\Asus\dlib\dlib\data_io\mnist.cpp C:\Users\Asus\dlib\dlib\global_optimization\global_function_search.cpp C:\Users\Asus\dlib\dlib\sockets\sockets_kernel_1.cpp C:\Users\Asus\dlib\dlib\bsp\bsp.cpp C:\Users\Asus\dlib\dlib\dir_nav\dir_nav_kernel_1.cpp C:\Users\Asus\dlib\dlib\dir_nav\dir_nav_kernel_2.cpp C:\Users\Asus\dlib\dlib\dir_nav\dir_nav_extensions.cpp C:\Users\Asus\dlib\dlib\linker\linker_kernel_1.cpp C:\Users\Asus\dlib\dlib\logger\extra_logger_headers.cpp C:\Users\Asus\dlib\dlib\logger\logger_kernel_1.cpp C:\Users\Asus\dlib\dlib\logger\logger_config_file.cpp C:\Users\Asus\dlib\dlib\misc_api\misc_api_kernel_1.cpp C:\Users\Asus\dlib\dlib\misc_api\misc_api_kernel_2.cpp C:\Users\Asus\dlib\dlib\sockets\sockets_extensions.cpp C:\Users\Asus\dlib\dlib\sockets\sockets_kernel_2.cpp C:\Users\Asus\dlib\dlib\sockstreambuf\sockstreambuf.cpp C:\Users\Asus\dlib\dlib\sockstreambuf\sockstreambuf_unbuffered.cpp C:\Users\Asus\dlib\dlib\server\server_kernel.cpp C:\Users\Asus\dlib\dlib\server\server_iostream.cpp C:\Users\Asus\dlib\dlib\server\server_http.cpp C:\Users\Asus\dlib\dlib\threads\multithreaded_object_extension.cpp C:\Users\Asus\dlib\dlib\threads\threaded_object_extension.cpp C:\Users\Asus\dlib\dlib\threads\threads_kernel_1.cpp C:\Users\Asus\dlib\dlib\threads\threads_kernel_2.cpp C:\Users\Asus\dlib\dlib\threads\threads_kernel_shared.cpp C:\Users\Asus\dlib\dlib\threads\thread_pool_extension.cpp C:\Users\Asus\dlib\dlib\threads\async.cpp C:\Users\Asus\dlib\dlib\timer\timer.cpp C:\Users\Asus\dlib\dlib\stack_trace.cpp C:\Users\Asus\dlib\dlib\dnn\cpu_dlib.cpp C:\Users\Asus\dlib\dlib\dnn\tensor_tools.cpp C:\Users\Asus\dlib\dlib\gui_widgets\fonts.cpp C:\Users\Asus\dlib\dlib\gui_widgets\widgets.cpp C:\Users\Asus\dlib\dlib\gui_widgets\drawable.cpp C:\Users\Asus\dlib\dlib\gui_widgets\canvas_drawing.cpp C:\Users\Asus\dlib\dlib\gui_widgets\style.cpp C:\Users\Asus\dlib\dlib\gui_widgets\base_widgets.cpp C:\Users\Asus\dlib\dlib\gui_core\gui_core_kernel_1.cpp C:\Users\Asus\dlib\dlib\gui_core\gui_core_kernel_2.cpp C:\Users\Asus\dlib\dlib\image_loader\png_loader.cpp C:\Users\Asus\dlib\dlib\image_saver\save_png.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcomapi.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdapimin.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdapistd.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdatasrc.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdcoefct.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdcolor.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jddctmgr.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdhuff.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdinput.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdmainct.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdmarker.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdmaster.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdmerge.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdphuff.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdpostct.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdsample.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jerror.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jidctflt.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jidctfst.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jidctint.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jidctred.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jmemmgr.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jmemnobs.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jquant1.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jquant2.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jutils.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcapimin.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jdatadst.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcparam.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcapistd.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcmarker.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcinit.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcmaster.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcdctmgr.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jccoefct.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jccolor.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jchuff.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcmainct.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcphuff.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcprepct.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jcsample.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jfdctint.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jfdctflt.cpp C:\Users\Asus\dlib\dlib\external\libjpeg\jfdctfst.cpp C:\Users\Asus\dlib\dlib\image_loader\jpeg_loader.cpp C:\Users\Asus\dlib\dlib\image_saver\save_jpeg.cpp base64_kernel_1.cpp bigint_kernel_1.cpp bigint_kernel_2.cpp bit_stream_kernel_1.cpp entropy_decoder_kernel_1.cpp entropy_decoder_kernel_2.cpp entropy_encoder_kernel_1.cpp entropy_encoder_kernel_2.cpp md5_kernel_1.cpp tokenizer_kernel_1.cpp unicode.cpp image_dataset_metadata.cpp mnist.cpp global_function_search.cpp sockets_kernel_1.cpp bsp.cpp dir_nav_kernel_1.cpp dir_nav_kernel_2.cpp dir_nav_extensions.cpp linker_kernel_1.cpp Generating Code... Compiling... extra_logger_headers.cpp logger_kernel_1.cpp logger_config_file.cpp misc_api_kernel_1.cpp misc_api_kernel_2.cpp sockets_extensions.cpp sockets_kernel_2.cpp sockstreambuf.cpp sockstreambuf_unbuffered.cpp server_kernel.cpp server_iostream.cpp server_http.cpp multithreaded_object_extension.cpp threaded_object_extension.cpp threads_kernel_1.cpp threads_kernel_2.cpp threads_kernel_shared.cpp thread_pool_extension.cpp async.cpp timer.cpp Generating Code... Compiling... stack_trace.cpp cpu_dlib.cpp tensor_tools.cpp fonts.cpp widgets.cpp drawable.cpp canvas_drawing.cpp style.cpp base_widgets.cpp gui_core_kernel_1.cpp gui_core_kernel_2.cpp png_loader.cpp save_png.cpp jcomapi.cpp jdapimin.cpp jdapistd.cpp jdatasrc.cpp jdcoefct.cpp jdcolor.cpp jddctmgr.cpp Generating Code... Compiling... jdhuff.cpp jdinput.cpp jdmainct.cpp jdmarker.cpp jdmaster.cpp jdmerge.cpp jdphuff.cpp jdpostct.cpp jdsample.cpp jerror.cpp jidctflt.cpp jidctfst.cpp jidctint.cpp jidctred.cpp jmemmgr.cpp jmemnobs.cpp jquant1.cpp jquant2.cpp jutils.cpp jcapimin.cpp Generating Code... Compiling... jdatadst.cpp jcparam.cpp jcapistd.cpp jcmarker.cpp jcinit.cpp jcmaster.cpp jcdctmgr.cpp jccoefct.cpp jccolor.cpp jchuff.cpp jcmainct.cpp jcphuff.cpp jcprepct.cpp jcsample.cpp jfdctint.cpp jfdctflt.cpp jfdctfst.cpp jpeg_loader.cpp save_jpeg.cpp Generating Code... C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\CL.exe /c /IC:\Users\Asus\dlib\dlib\external\libpng /IC:\Users\Asus\dlib\dlib\external\zlib /nologo /W3 /WX- /diagnostics:classic /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D DLIB_JPEG_SUPPORT /D DLIB_PNG_SUPPORT /D DLIB_NO_ABORT_ON_2ND_FATAL_ERROR /D BOOST_PYTHON_STATIC_LIB /D DLIB_JPEG_STATIC /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MT /GS /arch:AVX /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"dlib.dir\Release\" /Fd"dlib.dir\Release\dlib.pdb" /Gd /TC /errorReport:queue /bigobj C:\Users\Asus\dlib\dlib\external\libpng\png.c C:\Users\Asus\dlib\dlib\external\libpng\pngerror.c C:\Users\Asus\dlib\dlib\external\libpng\pngget.c C:\Users\Asus\dlib\dlib\external\libpng\pngmem.c C:\Users\Asus\dlib\dlib\external\libpng\pngpread.c C:\Users\Asus\dlib\dlib\external\libpng\pngread.c C:\Users\Asus\dlib\dlib\external\libpng\pngrio.c C:\Users\Asus\dlib\dlib\external\libpng\pngrtran.c C:\Users\Asus\dlib\dlib\external\libpng\pngrutil.c C:\Users\Asus\dlib\dlib\external\libpng\pngset.c C:\Users\Asus\dlib\dlib\external\libpng\pngtrans.c C:\Users\Asus\dlib\dlib\external\libpng\pngwio.c C:\Users\Asus\dlib\dlib\external\libpng\pngwrite.c C:\Users\Asus\dlib\dlib\external\libpng\pngwtran.c C:\Users\Asus\dlib\dlib\external\libpng\pngwutil.c C:\Users\Asus\dlib\dlib\external\zlib\adler32.c C:\Users\Asus\dlib\dlib\external\zlib\compress.c C:\Users\Asus\dlib\dlib\external\zlib\crc32.c C:\Users\Asus\dlib\dlib\external\zlib\deflate.c C:\Users\Asus\dlib\dlib\external\zlib\gzclose.c C:\Users\Asus\dlib\dlib\external\zlib\gzlib.c C:\Users\Asus\dlib\dlib\external\zlib\gzread.c C:\Users\Asus\dlib\dlib\external\zlib\gzwrite.c C:\Users\Asus\dlib\dlib\external\zlib\infback.c C:\Users\Asus\dlib\dlib\external\zlib\inffast.c C:\Users\Asus\dlib\dlib\external\zlib\inflate.c C:\Users\Asus\dlib\dlib\external\zlib\inftrees.c C:\Users\Asus\dlib\dlib\external\zlib\trees.c C:\Users\Asus\dlib\dlib\external\zlib\uncompr.c C:\Users\Asus\dlib\dlib\external\zlib\zutil.c png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c adler32.c compress.c crc32.c deflate.c gzclose.c Generating Code... Compiling... gzlib.c gzread.c gzwrite.c infback.c inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c Generating Code... Lib: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\Lib.exe /OUT:"C:\Users\Asus\dlib\tools\python\build\dlib_build\Release\dlib_release_64bit_msvc1912.lib" /NOLOGO /MACHINE:X64 /machine:x64 dlib.dir\Release\base64_kernel_1.obj dlib.dir\Release\bigint_kernel_1.obj dlib.dir\Release\bigint_kernel_2.obj dlib.dir\Release\bit_stream_kernel_1.obj dlib.dir\Release\entropy_decoder_kernel_1.obj dlib.dir\Release\entropy_decoder_kernel_2.obj dlib.dir\Release\entropy_encoder_kernel_1.obj dlib.dir\Release\entropy_encoder_kernel_2.obj dlib.dir\Release\md5_kernel_1.obj dlib.dir\Release\tokenizer_kernel_1.obj dlib.dir\Release\unicode.obj dlib.dir\Release\image_dataset_metadata.obj dlib.dir\Release\mnist.obj dlib.dir\Release\global_function_search.obj dlib.dir\Release\sockets_kernel_1.obj dlib.dir\Release\bsp.obj dlib.dir\Release\dir_nav_kernel_1.obj dlib.dir\Release\dir_nav_kernel_2.obj dlib.dir\Release\dir_nav_extensions.obj dlib.dir\Release\linker_kernel_1.obj dlib.dir\Release\extra_logger_headers.obj dlib.dir\Release\logger_kernel_1.obj dlib.dir\Release\logger_config_file.obj dlib.dir\Release\misc_api_kernel_1.obj dlib.dir\Release\misc_api_kernel_2.obj dlib.dir\Release\sockets_extensions.obj dlib.dir\Release\sockets_kernel_2.obj dlib.dir\Release\sockstreambuf.obj dlib.dir\Release\sockstreambuf_unbuffered.obj dlib.dir\Release\server_kernel.obj dlib.dir\Release\server_iostream.obj dlib.dir\Release\server_http.obj dlib.dir\Release\multithreaded_object_extension.obj dlib.dir\Release\threaded_object_extension.obj dlib.dir\Release\threads_kernel_1.obj dlib.dir\Release\threads_kernel_2.obj dlib.dir\Release\threads_kernel_shared.obj dlib.dir\Release\thread_pool_extension.obj dlib.dir\Release\async.obj dlib.dir\Release\timer.obj dlib.dir\Release\stack_trace.obj dlib.dir\Release\cpu_dlib.obj dlib.dir\Release\tensor_tools.obj dlib.dir\Release\fonts.obj dlib.dir\Release\widgets.obj dlib.dir\Release\drawable.obj dlib.dir\Release\canvas_drawing.obj dlib.dir\Release\style.obj dlib.dir\Release\base_widgets.obj dlib.dir\Release\gui_core_kernel_1.obj dlib.dir\Release\gui_core_kernel_2.obj dlib.dir\Release\png.obj dlib.dir\Release\pngerror.obj dlib.dir\Release\pngget.obj dlib.dir\Release\pngmem.obj dlib.dir\Release\pngpread.obj dlib.dir\Release\pngread.obj dlib.dir\Release\pngrio.obj dlib.dir\Release\pngrtran.obj dlib.dir\Release\pngrutil.obj dlib.dir\Release\pngset.obj dlib.dir\Release\pngtrans.obj dlib.dir\Release\pngwio.obj dlib.dir\Release\pngwrite.obj dlib.dir\Release\pngwtran.obj dlib.dir\Release\pngwutil.obj dlib.dir\Release\adler32.obj dlib.dir\Release\compress.obj dlib.dir\Release\crc32.obj dlib.dir\Release\deflate.obj dlib.dir\Release\gzclose.obj dlib.dir\Release\gzlib.obj dlib.dir\Release\gzread.obj dlib.dir\Release\gzwrite.obj dlib.dir\Release\infback.obj dlib.dir\Release\inffast.obj dlib.dir\Release\inflate.obj dlib.dir\Release\inftrees.obj dlib.dir\Release\trees.obj dlib.dir\Release\uncompr.obj dlib.dir\Release\zutil.obj dlib.dir\Release\png_loader.obj dlib.dir\Release\save_png.obj dlib.dir\Release\jcomapi.obj dlib.dir\Release\jdapimin.obj dlib.dir\Release\jdapistd.obj dlib.dir\Release\jdatasrc.obj dlib.dir\Release\jdcoefct.obj dlib.dir\Release\jdcolor.obj dlib.dir\Release\jddctmgr.obj dlib.dir\Release\jdhuff.obj dlib.dir\Release\jdinput.obj dlib.dir\Release\jdmainct.obj dlib.dir\Release\jdmarker.obj dlib.dir\Release\jdmaster.obj dlib.dir\Release\jdmerge.obj dlib.dir\Release\jdphuff.obj dlib.dir\Release\jdpostct.obj dlib.dir\Release\jdsample.obj dlib.dir\Release\jerror.obj dlib.dir\Release\jidctflt.obj dlib.dir\Release\jidctfst.obj dlib.dir\Release\jidctint.obj dlib.dir\Release\jidctred.obj dlib.dir\Release\jmemmgr.obj dlib.dir\Release\jmemnobs.obj dlib.dir\Release\jquant1.obj dlib.dir\Release\jquant2.obj dlib.dir\Release\jutils.obj dlib.dir\Release\jcapimin.obj dlib.dir\Release\jdatadst.obj dlib.dir\Release\jcparam.obj dlib.dir\Release\jcapistd.obj dlib.dir\Release\jcmarker.obj dlib.dir\Release\jcinit.obj dlib.dir\Release\jcmaster.obj dlib.dir\Release\jcdctmgr.obj dlib.dir\Release\jccoefct.obj dlib.dir\Release\jccolor.obj dlib.dir\Release\jchuff.obj dlib.dir\Release\jcmainct.obj dlib.dir\Release\jcphuff.obj dlib.dir\Release\jcprepct.obj dlib.dir\Release\jcsample.obj dlib.dir\Release\jfdctint.obj dlib.dir\Release\jfdctflt.obj dlib.dir\Release\jfdctfst.obj dlib.dir\Release\jpeg_loader.obj dlib.dir\Release\save_jpeg.obj dlib.vcxproj -> C:\Users\Asus\dlib\tools\python\build\dlib_build\Release\dlib_release_64bit_msvc1912.lib FinalizeBuildStatus: Deleting file "dlib.dir\Release\dlib.tlog\unsuccessfulbuild". Touching "dlib.dir\Release\dlib.tlog\dlib.lastbuildstate". Done Building Project "C:\Users\Asus\dlib\tools\python\build\dlib_build\dlib.vcxproj" (default targets). Project "C:\Users\Asus\dlib\tools\python\build\ALLBUILD.vcxproj" (3) is building "C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj" (5) on node 1 (default targets). PrepareForBuild: Creating directory "dlib.dir\Release\". Creating directory "C:\Users\Asus\dlib\tools\python\build\Release\". Creating directory "dlib.dir\Release\dlib.tlog\". InitializeBuildStatus: Creating "dlib.dir\Release\dlib_.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Building Custom Rule C:/Users/Asus/dlib/tools/python/CMakeLists.txt CMake does not need to re-run because C:/Users/Asus/dlib/tools/python/build/CMakeFiles/generate.stamp is up-to-date. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\CL.exe /c /I"C:\Users\Asus\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\include" /IC:\local\boost_1_63_0 /IC:\Users\Asus\AppData\Local\Programs\Python\Python36\include /IC:\Users\Asus\dlib\dlib.. /nologo /W3 /WX- /diagnostics:classic /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D DLIB_JPEG_SUPPORT /D DLIB_PNG_SUPPORT /D DLIB_NO_ABORT_ON_2ND_FATAL_ERROR /D BOOST_PYTHON_STATIC_LIB /D DLIB_VERSION=19.8.99 /D "CMAKE_INTDIR=\"Release\"" /D dlib__EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MT /GS /arch:AVX /fp:precise /Zc:wchart /Zc:forScope /Zc:inline /GR /Fo"dlib.dir\Release\" /Fd"dlib_.dir\Release\vc141.pdb" /Gd /TP /errorReport:queue /bigobj C:\Users\Asus\dlib\tools\python\src\dlib.cpp C:\Users\Asus\dlib\tools\python\src\matrix.cpp C:\Users\Asus\dlib\tools\python\src\vector.cpp C:\Users\Asus\dlib\tools\python\src\svm_c_trainer.cpp C:\Users\Asus\dlib\tools\python\src\svm_rank_trainer.cpp C:\Users\Asus\dlib\tools\python\src\decision_functions.cpp C:\Users\Asus\dlib\tools\python\src\other.cpp C:\Users\Asus\dlib\tools\python\src\basic.cpp C:\Users\Asus\dlib\tools\python\src\cca.cpp C:\Users\Asus\dlib\tools\python\src\sequence_segmenter.cpp C:\Users\Asus\dlib\tools\python\src\svm_struct.cpp C:\Users\Asus\dlib\tools\python\src\image.cpp C:\Users\Asus\dlib\tools\python\src\rectangles.cpp C:\Users\Asus\dlib\tools\python\src\object_detection.cpp C:\Users\Asus\dlib\tools\python\src\shape_predictor.cpp C:\Users\Asus\dlib\tools\python\src\correlation_tracker.cpp C:\Users\Asus\dlib\tools\python\src\face_recognition.cpp C:\Users\Asus\dlib\tools\python\src\cnn_face_detector.cpp C:\Users\Asus\dlib\tools\python\src\global_optimization.cpp C:\Users\Asus\dlib\tools\python\src\numpy_returns.cpp C:\Users\Asus\dlib\tools\python\src\gui.cpp dlib.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] matrix.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] vector.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_c_trainer.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_rank_trainer.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] decision_functions.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] other.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] basic.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] cca.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] sequence_segmenter.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] svm_struct.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] image.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] rectangles.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] object_detection.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] shape_predictor.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] correlation_tracker.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] face_recognition.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] cnn_face_detector.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] global_optimization.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] numpy_returns.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] Generating Code... Compiling... gui.cpp Unknown compiler version - please run the configure tests and report the results C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] Generating Code... Link: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\Asus\dlib\tools\python\build\Release\dlib.pyd" /INCREMENTAL:NO /NOLOGO /LIBPATH:C:/local/boost_1_63_0/stage/lib /LIBPATH:C:/local/boost_1_63_0/stage/lib/Release "C:\local\boost_1_63_0\stage\lib\libboost_python3-vc140-mt-s-1_63.lib" dlib_build\Release\dlib_release_64bit_msvc1912.lib C:\Users\Asus\AppData\Local\Programs\Python\Python36\libs\python36.lib ws232.lib winmm.lib comctl32.lib gdi32.lib imm32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Users/Asus/dlib/tools/python/build/Release/dlib.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/Asus/dlib/tools/python/build/Release/dlib.lib" /MACHINE:X64 /machine:x64 /DLL dlib.dir\Release\dlib.obj dlib.dir\Release\matrix.obj dlib.dir\Release\vector.obj dlib_.dir\Release\svm_ctrainer.obj dlib.dir\Release\svm_ranktrainer.obj dlib.dir\Release\decisionfunctions.obj dlib.dir\Release\other.obj dlib.dir\Release\basic.obj dlib.dir\Release\cca.obj dlib_.dir\Release\sequencesegmenter.obj dlib.dir\Release\svmstruct.obj dlib.dir\Release\image.obj dlib.dir\Release\rectangles.obj dlib.dir\Release\objectdetection.obj dlib.dir\Release\shapepredictor.obj dlib.dir\Release\correlationtracker.obj dlib.dir\Release\facerecognition.obj dlib.dir\Release\cnn_facedetector.obj dlib.dir\Release\globaloptimization.obj dlib.dir\Release\numpyreturns.obj dlib.dir\Release\gui.obj Creating library C:/Users/Asus/dlib/tools/python/build/Release/dlib.lib and object C:/Users/Asus/dlib/tools/python/build/Release/dlib.exp dlib.vcxproj -> C:\Users\Asus\dlib\tools\python\build\Release\dlib.pyd FinalizeBuildStatus: Deleting file "dlib.dir\Release\dlib.tlog\unsuccessfulbuild". Touching "dlib.dir\Release\dlib.tlog\dlib.lastbuildstate". Done Building Project "C:\Users\Asus\dlib\tools\python\build\dlib_.vcxproj" (default targets). PrepareForBuild: Creating directory "x64\Release\ALL_BUILD\". Creating directory "x64\Release\ALL_BUILD\ALL_BUILD.tlog\". InitializeBuildStatus: Creating "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Building Custom Rule C:/Users/Asus/dlib/tools/python/CMakeLists.txt CMake does not need to re-run because C:/Users/Asus/dlib/tools/python/build/CMakeFiles/generate.stamp is up-to-date. FinalizeBuildStatus: Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild". Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate". Done Building Project "C:\Users\Asus\dlib\tools\python\build\ALL_BUILD.vcxproj" (default targets). PrepareForBuild: Creating directory "x64\Release\INSTALL\". Creating directory "x64\Release\INSTALL\INSTALL.tlog\". InitializeBuildStatus: Creating "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. PostBuildEvent: setlocal "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd -- Install configuration: "Release" -- Installing: C:/Users/Asus/dlib/tools/python/../../python_examples/dlib.pyd FinalizeBuildStatus: Deleting file "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild". Touching "x64\Release\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate". Done Building Project "C:\Users\Asus\dlib\tools\python\build\install.vcxproj" (default targets). Build succeeded. "C:\Users\Asus\dlib\tools\python\build\install.vcxproj" (default target) (1) -> "C:\Users\Asus\dlib\tools\python\build\ALLBUILD.vcxproj" (default target) (3) -> "C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj" (default target) (5) -> (ClCompile target) -> C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] C:\local\boost_1_63_0\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssizet' to 'unsigned int', possible loss of data [C:\Users\Asus\dlib\tools\python\build\dlib.vcxproj] 21 Warning(s) 0 Error(s) Time Elapsed 00:06:45.18 Populating the distribution directory C:\Users\Asus\dlib./dist/dlib ... Copying file C:\Users\Asus\dlib./python_examples\cnn_face_detector.py -> C:\Users\Asus\dlib./dist/dlib/examples\cnn_face_detector.py. Copying file C:\Users\Asus\dlib./python_examples\correlation_tracker.py -> C:\Users\Asus\dlib./dist/dlib/examples\correlation_tracker.py. Copying file C:\Users\Asus\dlib./python_examples\dlib.pyd -> C:\Users\Asus\dlib./dist/dlib\dlib.pyd. Copying file C:\Users\Asus\dlib./python_examples\face_alignment.py -> C:\Users\Asus\dlib./dist/dlib/examples\face_alignment.py. Copying file C:\Users\Asus\dlib./python_examples\face_clustering.py -> C:\Users\Asus\dlib./dist/dlib/examples\face_clustering.py. Copying file C:\Users\Asus\dlib./python_examples\face_detector.py -> C:\Users\Asus\dlib./dist/dlib/examples\face_detector.py. Copying file C:\Users\Asus\dlib./python_examples\face_jitter.py -> C:\Users\Asus\dlib./dist/dlib/examples\face_jitter.py. Copying file C:\Users\Asus\dlib./python_examples\face_landmark_detection.py -> C:\Users\Asus\dlib./dist/dlib/examples\face_landmark_detection.py. Copying file C:\Users\Asus\dlib./python_examples\face_recognition.py -> C:\Users\Asus\dlib./dist/dlib/examples\face_recognition.py. Copying file C:\Users\Asus\dlib./python_examples\find_candidate_object_locations.py -> C:\Users\Asus\dlib./dist/dlib/examples\find_candidate_object_locations.py. Copying file C:\Users\Asus\dlib./python_examples\global_optimization.py -> C:\Users\Asus\dlib./dist/dlib/examples\global_optimization.py. Copying file C:\Users\Asus\dlib./python_examples\LICENSE_FOR_EXAMPLE_PROGRAMS.txt -> C:\Users\Asus\dlib./dist/dlib/examples\LICENSE_FOR_EXAMPLE_PROGRAMS.txt. Copying file C:\Users\Asus\dlib./python_examples\max_cost_assignment.py -> C:\Users\Asus\dlib./dist/dlib/examples\max_cost_assignment.py. Copying file C:\Users\Asus\dlib./python_examples\requirements.txt -> C:\Users\Asus\dlib./dist/dlib/examples\requirements.txt. Copying file C:\Users\Asus\dlib./python_examples\sequence_segmenter.py -> C:\Users\Asus\dlib./dist/dlib/examples\sequence_segmenter.py. Copying file C:\Users\Asus\dlib./python_examples\svm_binary_classifier.py -> C:\Users\Asus\dlib./dist/dlib/examples\svm_binary_classifier.py. Copying file C:\Users\Asus\dlib./python_examples\svm_rank.py -> C:\Users\Asus\dlib./dist/dlib/examples\svm_rank.py. Copying file C:\Users\Asus\dlib./python_examples\svm_struct.py -> C:\Users\Asus\dlib./dist/dlib/examples\svm_struct.py. Copying file C:\Users\Asus\dlib./python_examples\train_object_detector.py -> C:\Users\Asus\dlib./dist/dlib/examples\train_object_detector.py. Copying file C:\Users\Asus\dlib./python_examples\train_shape_predictor.py -> C:\Users\Asus\dlib./dist/dlib/examples\train_shape_predictor.py. running build_py copying dist\dlib__init.py -> build\lib.win-amd64-3.6\dlib running egg_info creating dist\dlib.egg-info writing dist\dlib.egg-info\PKG-INFO writing dependency_links to dist\dlib.egg-info\dependency_links.txt writing top-level names to dist\dlib.egg-info\top_level.txt writing manifest file 'dist\dlib.egg-info\SOURCES.txt' reading manifest file 'dist\dlib.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '' found under directory 'dlib\build' warning: no previously-included files matching '' found under directory 'docs' warning: no files found matching '*.bat' under directory 'python_examples' warning: no previously-included files matching '**' found under directory 'python_examples\build' writing manifest file 'dist\dlib.egg-info\SOURCES.txt' copying dist\dlib\dlib.pyd -> build\lib.win-amd64-3.6\dlib copying dist\dlib\examples\init.py -> build\lib.win-amd64-3.6\dlib\examples running build_ext installing library code to build\bdist.win-amd64\egg running install_lib creating build\bdist.win-amd64\egg creating build\bdist.win-amd64\egg\dlib copying build\lib.win-amd64-3.6\dlib\dlib.pyd -> build\bdist.win-amd64\egg\dlib creating build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\cnn_face_detector.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\correlation_tracker.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\face_alignment.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\face_clustering.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\face_detector.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\face_jitter.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\face_landmark_detection.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\face_recognition.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\find_candidate_object_locations.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\global_optimization.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\LICENSE_FOR_EXAMPLE_PROGRAMS.txt -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\max_cost_assignment.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\requirements.txt -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\sequence_segmenter.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\svm_binary_classifier.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\svm_rank.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\svm_struct.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\train_object_detector.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\train_shape_predictor.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\examples\init.py -> build\bdist.win-amd64\egg\dlib\examples copying build\lib.win-amd64-3.6\dlib\init.py -> build\bdist.win-amd64\egg\dlib byte-compiling build\bdist.win-amd64\egg\dlib\examples\cnn_face_detector.py to cnn_face_detector.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\correlation_tracker.py to correlation_tracker.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\face_alignment.py to face_alignment.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\face_clustering.py to face_clustering.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\face_detector.py to face_detector.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\face_jitter.py to face_jitter.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\face_landmark_detection.py to face_landmark_detection.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\face_recognition.py to face_recognition.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\find_candidate_object_locations.py to find_candidate_object_locations.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\global_optimization.py to global_optimization.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\max_cost_assignment.py to max_cost_assignment.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\sequence_segmenter.py to sequence_segmenter.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\svm_binary_classifier.py to svm_binary_classifier.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\svm_rank.py to svm_rank.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\svm_struct.py to svm_struct.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\train_object_detector.py to train_object_detector.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\train_shape_predictor.py to train_shape_predictor.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\examples\init.py to init.cpython-36.pyc byte-compiling build\bdist.win-amd64\egg\dlib\init.py to init__.cpython-36.pyc creating build\bdist.win-amd64\egg\EGG-INFO copying dist\dlib.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO copying dist\dlib.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO copying dist\dlib.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO copying dist\dlib.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO copying dist\dlib.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt creating 'dist\dlib-19.8.99-py3.6-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it removing 'build\bdist.win-amd64\egg' (and everything under it) Processing dlib-19.8.99-py3.6-win-amd64.egg creating c:\users\asus\appdata\local\programs\python\python36\lib\site-packages\dlib-19.8.99-py3.6-win-amd64.egg Extracting dlib-19.8.99-py3.6-win-amd64.egg to c:\users\asus\appdata\local\programs\python\python36\lib\site-packages Adding dlib 19.8.99 to easy-install.pth file

Installed c:\users\asus\appdata\local\programs\python\python36\lib\site-packages\dlib-19.8.99-py3.6-win-amd64.egg Processing dependencies for dlib==19.8.99 Finished processing dependencies for dlib==19.8.99

I will post the log for VS 2015 ASAP.

davisking commented 6 years ago

Ok, so that worked. Except for cuda. Maybe the version of cuda you downloaded doesn't support the version of visual studio 2017 you have. I don't know. I doubt it's a dlib issue though.

This is the little cuda test project it builds to see if your compiler really supports cuda: https://github.com/davisking/dlib/tree/master/dlib/cmake_utils/test_for_cuda. If you want to see what's failing build that project and see what it says. It's probably that your cuda install doesn't support your compiler.

cybersa commented 6 years ago

@davisking

I tried to compile test_for_cuda. Its not showing exact error meesage. So its difficult for me to analyse. Do you have any idea?

Logs:

C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda>cmake --build . Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

Build started 28-12-2017 20:13:26. Project "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\ALL_BUILD.vcxproj" on node 1 (default targets). Project "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\ALL_BUILD.vcxproj" (1) is building "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\ZERO_CHECK.vcxproj" (2) on node 1 (default targets). InitializeBuildStatus: Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: All outputs are up-to-date. FinalizeBuildStatus: Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". Done Building Project "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\ZERO_CHECK.vcxproj" (default targets).

Project "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\ALL_BUILD.vcxproj" (1) is building "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\cuda_test.vcxproj" (3) on node 1 (default targets). InitializeBuildStatus: Touching "cuda_test.dir\Debug\cuda_test.tlog\unsuccessfulbuild". CustomBuild: Building NVCC (Device) object CMakeFiles/cuda_test.dir/Debug/cuda_test_generated_cuda_test.cu.obj CMake Error at cuda_test_generated_cuda_test.cu.obj.Debug.cmake:219 (message): Error generating C:/Users/Asus/dlib/dlib/cmake_utils/test_for_cuda/CMakeFiles/cuda_test.dir//Debug/cuda_test_generated_cuda_test.cu.obj

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\Asus\dlib\dlib\cmakeutils\test for_cuda\cuda_test.vcxproj] Done Building Project "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\cuda_test.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\ALL_BUILD.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\ALL_BUILD.vcxproj" (default target) (1) -> "C:\Users\Asus\dlib\dlib\cmake_utils\test_for_cuda\cuda_test.vcxproj" (default target) (3) -> (CustomBuild target) -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\Asus\dlib\dlib\cmake_utils\tes t_for_cuda\cuda_test.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:06.09

Cmds: cmake -G "Visual Studio 15 2017 Win64" cmake --build .

davisking commented 6 years ago

Error generating C:/Users/Asus/dlib/dlib/cmake_utils/test_for_cuda/CMakeFiles/cuda_test.dir//Debug/cuda_test_generated_cuda_test.cu.obj

Is your hard drive full or write protected?

cybersa commented 6 years ago

@davisking

No.

Hey i found its get compiled when i set toolset to v140. Like below:

cmake -G "Visual Studio 15 2017 Win64" -T v140 cmake --build .

So any way to implement this in setup.py?

davisking commented 6 years ago

I'm pretty sure there is just something wrong with your visual studio install or cuda install. Adding -T v140 to setup.py is definitely not a good general solution. That tells VS2017 to use VS2015's compiler.

Honestly, I would use visual studio 2015 with cuda. There is probably a compatibility problem between VS2017 and cuda.

xsacha commented 6 years ago

I'm getting this same issue with CUDA 8.0 and CUDA 9.1 on dlib-19.6/dlib-19.8

They don't seem to work with Visual Studio 2017.

I think the test ignores my setting: "CUDA_HOST_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" (which I use to overcome this issue on OpenCV).

Due to this: https://github.com/davisking/dlib/blob/679b2a2404bb4770842f2e0c7a47665ca8a801d1/dlib/CMakeLists.txt#L580

When I remove this, everything works (with workaround mentioned). Is there still a reason for this line?

davisking commented 6 years ago

You think or you know? Did you test it?

xsacha commented 6 years ago

I tested. This works.

Newer versions of MSVC 2017 (15.5) don't work with CUDA but yet older versions don't work with DLIB (because of C++11 issue) so you need to override compiler to use MSVC 2015 for CUDA.

When I use this in CMake after removing the line I mentioned: "CUDA_HOST_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe"

I now get this (using MSVC 2017 15.5): -- Enabling SSE4 instructions -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Found Intel MKL BLAS/LAPACK library -- Looking for cuDNN install... -- Found cuDNN: C:/work/ifaceengine/pre_built/cuda/lib/x64/cudnn.lib -- Enabling CUDA support for dlib. DLIB WILL USE CUDA

xsacha commented 6 years ago

See: https://devtalk.nvidia.com/default/topic/1027299/cuda-setup-and-installation/cuda-9-failed-to-support-the-latest-visual-studio-2017-version-15-5/2

Other workarounds are:

davisking commented 6 years ago

Well, the change you want to remove was added by this PR (https://github.com/davisking/dlib/pull/365) by @reunanen to work around a different visual studio problem. So removing it probably isn't the right solution.

My general opinion is that you should use the compiler setup the cuda documentation says you should use. I realize there are ways to force cuda to work with non-supported compiler setups, but I don't want to break things for people using cuda the way it's supposed to be used. Also, don't you have errors later on when you mix object files compiled for VC2015 with those compiled by VC2017? They have different runtimes and normally that would result in bad runtime errors.

xsacha commented 6 years ago

Yeah, wasn't sure if that different visual studio problem was still relevant or how it relates to this variable.

The CUDA documentation says visual studio 2017 works. They just failed to foresee Microsoft bumping version numbers during a release (unlike releases in the past). It does work but it requires either editing the installed config file or overriding the compiler just for CUDA compiles in order to prevent that version check from failing. This is the only way to use VS 2017 + CUDA with dlib currently.

For doing unattended installs/docker/fresh installs on local/etc it was just easier to have that CMAKE flag set than editing each installed file.

And yeah, they mix fine :). This is used in production now.

davisking commented 6 years ago

Yeah, it's unfortunate. If you find a way to update dlib to make it work that doesn't break some other part of visual studio definitely submit a PR though.

Be careful about mixing visual studio runtimes. It's very possible and common to have latent bugs. On multiple occasions I've seen it lead to runtime bugs that don't manifest for a long time, but when they do cause silent corruption.

AronRubin commented 6 years ago

You need to edit: "c:\program files\nvidia gpu computing toolkit\cuda\v9.1\include\crt\host_config.h" and replace:

if _MSC_VER < 1600 || _MSC_VER > 1911

with:

if _MSC_VER < 1600 || _MSC_VER > 1919

xsacha commented 6 years ago

@AronRubin I mentioned this before but as I use build machines for continuous integration and multiple people compile it on personal machines, it was easier to set a CMAKE value than modify everyone's CUDA install.

bssrdf commented 6 years ago

@xsacha I have encountered the same problem. What are the exact steps you did to make dlib using cuda? You mentioned modifying CMAKE value. How? Thanks.

xsacha commented 6 years ago

I added this Cmake argument: "CUDA_HOST_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe"

bssrdf commented 6 years ago

@xsacha Have you tried it in setup.py? I have VS2017 installed along with VS2015 component. Which file shall I modify to get it working? The error I got is shown below. As you can see, cmake tried to locate c++ compiler in C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/bin while in fact VS 2017 has it in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\Hostx64\x64

Building NVCC (Device) object CMakeFiles/cuda_test.dir/Debug/cuda_test_generated_cuda_test.cu.obj Failed to run C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/bin (The system cannot find the file specified.

). CMake Error at cuda_test_generated_cuda_test.cu.obj.Debug.cmake:215 (message): Error generating O:/dlib/build/temp.win-amd64-3.6/Release/dlib_build/cuda_test_build/CMakeFiles/cuda_test.dir//Debug/cuda_test_generated_cuda_test.cu.obj

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1

xsacha commented 6 years ago

I don't know what setup.py is. I run the CMake build. So, like this:

mkdir build
cd build
cmake -D"CUDA_HOST_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" ..

This works fine in OpenCV and dlib for CUDA 9.x and Visual Studio 2017. Note that it requires Visual Studio 2015 compiler installed at the same time.

It also requires this change to the CMakeLists.txt: https://github.com/xsacha/dlib/commit/3074f84073c00ee6048691af966701bb8f78809c

bssrdf commented 6 years ago

@xsacha Thanks a lot. Following your steps my dlib was built with VS2015 compiler with CUDA support. I added cmake CUDA_HOST_COMPILER variable in setup.py and changed CMakeLists.txt.

grssam commented 6 years ago

@bssrdf Can you please let me know what changes you did in setup.py? FYI - I made the change in CMakeLists.txt and added the CUDA_HOST_COMPILER variable with the right value in the append line itself. Still, I get the same error as you did previously .. i.e. "Error generating .... .obj"

grssam commented 6 years ago

@xsacha if i just use cmake do perform those steps and not use the python setup install command, then in my python shell, I am unable to use the imported dlib

it says no variable __version__ on module dlib

grssam commented 6 years ago

Looks like it tries to find a path C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/bin but even I don't see that present in VC folder.

I even tried to copy the correct files into the expected location, but it always gave

 tmpxft_000032d0_00000000-1.cpp
         nvcc fatal   : Host compiler targets unsupported OS.
         CMake Error at dlib_generated_cuda_dlib.cu.obj.Release.cmake:219 (message):

error, no matter which combination of hostx{64,86}/x{64,86} files i chose.

grssam commented 6 years ago

Ok. I think I got it working. Maybe because we are forcing CUDA to use v140, the dlib cmake also needed to use v140 instead of v141. Using the python setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA -G "Visual Studio 14 2015" on the native x64 shell of VS 2015 build tools worked and installed dlib correctly for me and I was also able to confirm that it was using the GPU.

xsacha commented 6 years ago

If the whole thing is compiling in 2015, then this issue isn't relevant. It's only when you compile in a 2017 where _MSC_VER > 1911. That is, version 15.5 and above of Visual Studio. Coincidentally it is also the minimum version of 2017 that you can use with CUDA-enabled dlib due to some C++11 feature.

So the workaround (which does work just fine for me) was to compile only cuda kernels with 2015.

grssam commented 6 years ago

@xsacha does that mean that my 2015 compiled dlib isn't actually using CUDA? (at least the logs during cmake/install did say that CUDA WILL BE USED)

How can I verify that my application using dlib is actually running on CUDA?

xsacha commented 6 years ago

Yes there are absolutely no issues when using 2015. This issue is for people using 2017.

dlib-issue-bot commented 6 years ago

Warning: this issue has been inactive for 183 days and will be automatically closed on 2018-09-07 if there is no further activity.

If you are waiting for a response but haven't received one it's likely your question is somehow inappropriate. E.g. you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's documentation, or a Google search.

dlib-issue-bot commented 6 years ago

Notice: this issue has been closed because it has been inactive for 188 days. You may reopen this issue if it has been closed in error.

deeptechs commented 6 years ago

I have an update for solution: I am using Cuda 10, Win 10, Visual Studio 2017 Enterprise 15.8.8 I am getting below error in a standard shell while running

"python setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA"

The solution: Running this command in "x64 Native Tools Command Prompt for VS 2017" shell. It is in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Visual Studio Tools\VC" default. Don't forget to activate python environment before. I guess the main reason why it is working because it has the path of cl.exe.

Here is my output: (Before solution)

..... -- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 (found suitable version "10.0", minimum required is "7.5") -- Looking for cuDNN install... -- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudnn.lib -- Building a CUDA test project to see if your compiler is compatible with CUDA... -- *** -- * CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA. -- The output of the failed CUDA test compile is shown below: -- Change Dir: D:/PlayGround/3rdPartyLibs/dlib/build/temp.win-amd64-3.7/Release/dlib_build/cuda_test_build


Run Build Command:"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/MSBuild/15.0/Bin/MSBuild.exe" "ALL_BUILD.vcxproj" "/p:Configuration=Debug" "/p:Platform=x64" "/p:VisualStudioVersion=15.0" Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Framework *** Copyright (C) Microsoft Corporation. All rights reserved.


Build started 29.10.2018 00:44:00. Project "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\ALL_BUILD.vcxproj" on node 1 (default targets). Project "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\ALL_BUILD.vcxproj" (1) is building "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets). PrepareForBuild: Creating directory "x64\Debug\ZERO_CHECK\". Creating directory "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\". InitializeBuildStatus: Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: Checking Build System CMake does not need to re-run because D:/PlayGround/3rdPartyLibs/dlib/build/temp.win-amd64-3.7/Release/dlib_build/cuda_test_build/CMakeFiles/generate.stamp is up-to-date. FinalizeBuildStatus: Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". Done Building Project "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\ZERO_CHECK.vcxproj" (default targets). Project "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\ALL_BUILD.vcxproj" (1) is building "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\cuda_test.vcxproj" (3) on node 1 (default targets). PrepareForBuild: Creating directory "cuda_test.dir\Debug\". Creating directory "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\Debug\". Creating directory "cuda_test.dir\Debug\cuda_test.tlog\". InitializeBuildStatus: Creating "cuda_test.dir\Debug\cuda_test.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ComputeCustomBuildOutput: Creating directory "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\CMakeFiles\cuda_test.dir\Debug\". CustomBuild: Building NVCC (Device) object CMakeFiles/cuda_test.dir/Debug/cuda_test_generated_cuda_test.cu.obj CMake Error at cuda_test_generated_cuda_test.cu.obj.Debug.cmake:215 (message): Error generating *** D:/PlayGround/3rdPartyLibs/dlib/build/temp.win-amd64-3.7/Release/dlib_build/cuda_test_build/CMakeFiles/cuda_test.dir//Debug/cuda_test_generated_cuda_test.cu.obj



C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_t est_build\cuda_test.vcxproj] Done Building Project "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\cuda_test.vcxproj" (default targets) -- FAILED. *** Done Building Project "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\ALL_BUILD.vcxproj" (default targets) -- FAILED.


*** Build FAILED.


"D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\ALL_BUILD.vcxproj" (default target) (1) -> "D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda_test_build\cuda_test.vcxproj" (default target) (3) -> (CustomBuild target) -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [D:\PlayGround\3rdPartyLibs\dlib\build\temp.win-amd64-3.7\Release\dlib_build\cuda _test_build\cuda_test.vcxproj]


0 Warning(s) 1 Error(s)


*** Time Elapsed 00:00:02.82


-- ***** -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA -- C++11 activated.

lichuan-JD commented 6 years ago

I encounter with the same issue; my environment is: vs2017 + cuda 9.0. It seems vs2017 is not working with cuda 9.0 .

xsacha commented 6 years ago

This has always been the case unless you use an old enough version of vs2017. Cuda 10 solves these issues if you can upgrade to that. It no longer cares about the VS version.

Anyway this issue isn't related to dlib at all.