Skip to content

Dlib failed to build due to many errors: error C2065 and C2338 #2463

@Agustinm28

Description

@Agustinm28

I tried to build Dlib on Windows with VS2017 Update2. It failed to build due to many errors: such as error C2065, C2338 or MSB6003. Could you please help take a look at this? Thank you!

Expected Behavior

Build successfully.

Current Behavior

running install
running bdist_egg
running egg_info
writing tools/python\dlib.egg-info\PKG-INFO
writing dependency_links to tools/python\dlib.egg-info\dependency_links.txt
writing top-level names to tools/python\dlib.egg-info\top_level.txt
package init file 'tools\python\dlib_init_.py' not found (or not a regular file)
reading manifest file 'tools/python\dlib.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'tools\python\build*'
adding license file 'LICENSE.txt'
writing manifest file 'tools/python\dlib.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\agust\Downloads\dlib-19.22\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\agust\Downloads\dlib-19.22\build\lib.win32-3.10 -DPYTHON_EXECUTABLE=C:\Users\agust\AppData\Local\Programs\Python\Python310\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\agust\Downloads\dlib-19.22\build\lib.win32-3.10 -A x64'
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- pybind11 v2.2.4
-- Using CMake version: 3.22.0
-- Compiling dlib version: 19.22.0
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- Enabling AVX instructions
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/agust/Downloads/dlib-19.22/build/temp.win32-3.10/Release
Invoking CMake build: 'cmake --build . --config Release -- /m'
Microsoft (R) Build Engine versión 16.11.2+f32259642 para .NET Framework
Copyright (C) Microsoft Corporation. Todos los derechos reservados.

Checking Build System
Building Custom Rule C:/Users/agust/Downloads/dlib-19.22/dlib/CMakeLists.txt
dlib.vcxproj -> C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release\dlib_build\Release\dlib19.22.0_release_64bit_msvc1929.lib
Building Custom Rule C:/Users/agust/Downloads/dlib-19.22/tools/python/CMakeLists.txt
dlib.cpp
matrix.cpp
vector.cpp
svm_c_trainer.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\dlib.cpp)
[C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\dlib.cpp) [C:\Users\agust
\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\vector.cpp
) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\vector.cpp) [C:\Users\agu
st\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\matrix.cpp
) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\matrix.cpp) [C:\Users\agu
st\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\svm_c_trai
ner.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\svm_c_trainer.cpp) [C:\Us
ers\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
svm_rank_trainer.cpp
decision_functions.cpp
other.cpp
basic.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\svm_rank_t
rainer.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\svm_rank_trainer.cpp) [C:
\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\decision_f
unctions.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\decision_functions.cpp) [
C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\other.cpp)
[C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\other.cpp) [C:\Users\agus
t\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\basic.cpp)
[C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\basic.cpp) [C:\Users\agus
t\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
cca.cpp
sequence_segmenter.cpp
svm_struct.cpp
image.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\cca.cpp) [
C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\cca.cpp) [C:\Users\agust
Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\sequence_s
egmenter.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\sequence_segmenter.cpp) [
C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\svm_struct
.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\svm_struct.cpp) [C:\Users
\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image.cpp)
[C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image.cpp) [C:\Users\agus
t\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
image2.cpp
image3.cpp
image4.cpp
rectangles.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image2.cpp
) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image2.cpp) [C:\Users\agu
st\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image3.cpp
) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image3.cpp) [C:\Users\agu
st\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image4.cpp
) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image4.cpp) [C:\Users\agu
st\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\rectangles
.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\rectangles.cpp) [C:\Users
\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
object_detection.cpp
shape_predictor.cpp
correlation_tracker.cpp
face_recognition.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\object_det
ection.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\object_detection.cpp) [C:
\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\shape_pred
ictor.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\shape_predictor.cpp) [C:
Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\correlatio
n_tracker.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\correlation_tracker.cpp)
[C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\face_recog
nition.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\face_recognition.cpp) [C:
\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
cnn_face_detector.cpp
global_optimization.cpp
image_dataset_metadata.cpp
numpy_returns.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\cnn_face_d
etector.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\cnn_face_detector.cpp) [C
:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\global_opt
imization.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\global_optimization.cpp)
[C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image_data
set_metadata.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\image_dataset_metadata.cp
p) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
line.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\numpy_retu
rns.cpp) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\numpy_returns.cpp) [C:\Us
ers\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
gui.cpp
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\line.cpp)
[C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\line.cpp) [C:\Users\agust
\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': identificador no declarado (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\gui.cpp) [
C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Users\agust\Downloads\dlib-19.22\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_intptr_t (compilando archivo de origen C:\Users\agust\Downloads\dlib-19.22\tools\python\src\gui.cpp) [C:\Users\agust
Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: No se pudo ejecutar la tarea ejecutable especificada "CL.exe". System.IO.IOException: El proceso
no puede obtener acceso al archivo 'C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.dir\Release_dlib_pybind11.tlog' porque está siendo utilizado en otro proceso. [C:\Users\agust\Downloads\dlib-19.22\bu
ild\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\agust\Downlo
ads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en System.IO.FileSystemEnumerableIterator1.CommonInit() [C:\Users\agust\Downloads\dlib-19.22 \build\temp.win32-3.10\Release\_dlib_pybind11.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, Strin
g searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en System.IO.Directory.GetFiles(String path, String searchPattern) [C:\Users\agust\Downloads
dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en Microsoft.Build.Utilities.TrackedDependencies.ExpandWildcards(ITaskItem[] expand) [C:\User
s\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en Microsoft.Build.Utilities.CanonicalTrackedInputFiles.InternalConstruct(ITask ownerTask, IT
askItem[] tlogFiles, ITaskItem[] sourceFiles, ITaskItem[] outputFiles, ITaskItem[] excludedInputPaths, CanonicalTrackedOutputFiles outputs, Boolean useMinimalRebuildOptimization, Boolean maintainCompositeRootingMarkers) [C:\Users\agust
Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en Microsoft.Build.Utilities.CanonicalTrackedInputFiles..ctor(ITaskItem[] tlogFiles, ITaskIte
m[] sourceFiles, ITaskItem[] excludedInputPaths, CanonicalTrackedOutputFiles outputs, Boolean useMinimalRebuildOptimization, Boolean maintainCompositeRootingMarkers) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dl
ib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\agust\Downloads\dlib
-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseF
ileCommands, String commandLineCommands) [C:\Users\agust\Downloads\dlib-19.22\build\temp.win32-3.10\Release_dlib_pybind11.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6003: en Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\agust\Downloads\dlib-19.22\build\te
mp.win32-3.10\Release_dlib_pybind11.vcxproj]
Traceback (most recent call last):
File "C:\Users\agust\Downloads\dlib-19.22\setup.py", line 222, in
setup(
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools_init
.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\bdist_egg.py", line 164, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\bdist_egg.py", line 150, in call_command
self.run_command(cmdname)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\agust\Downloads\dlib-19.22\setup.py", line 134, in run
self.build_extension(ext)
File "C:\Users\agust\Downloads\dlib-19.22\setup.py", line 174, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "C:\Users\agust\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions