Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dlib install errors out : error C2734: 'GifAsciiTable8x8' : 'const' object must be initialized if not 'extern' #2358

Closed
ntrawvid opened this issue Apr 28, 2021 · 7 comments

Comments

@ntrawvid
Copy link

ntrawvid commented Apr 28, 2021

Expected Behavior

Expect dlib to install

Current Behavior

The dlib fails to install when inside of a conda environment but succeeds when run from outside the env

Steps to Reproduce

run the following from the dlib folder
python setup.py install

  • Version: 19.22.99
  • Where did you get dlib: dlib.net
  • Platform: Windows 10 64bit
  • Compiler: CMake

When running in env

`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*'
writing manifest file 'tools/python\dlib.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\Jimone Treburtski\Desktop\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Jimone Treburtski\Desktop\dlib\build\lib.win-amd64-3.8 -DPYTHON_EXECUTABLE=C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\Jimone Treburtski\Desktop\dlib\build\lib.win-amd64-3.8 -A x64'
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29914.0
-- The CXX compiler identification is MSVC 19.28.29914.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- pybind11 v2.2.4
-- Using CMake version: 3.20.1
-- Compiling dlib version: 19.22.99
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- Enabling AVX instructions
-- Looking for cuDNN install...
-- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/cudnn.lib
-- Enabling CUDA support for dlib. DLIB WILL USE CUDA
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.8/Release
Invoking CMake build: 'cmake --build . --config Release -- /m'
Microsoft (R) Build Engine version 16.9.0+5e4b48a27 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Checking Build System
Building NVCC (Device) object dlib_build/CMakeFiles/dlib.dir/cuda/Release/dlib_generated_cuda_dlib.cu.obj
cuda_dlib.cu
cuda_dlib.cu
Building NVCC (Device) object dlib_build/CMakeFiles/dlib.dir/cuda/Release/dlib_generated_cusolver_dlibapi.cu.obj
cusolver_dlibapi.cu
cusolver_dlibapi.cu
Building Custom Rule C:/Users/Jimone Treburtski/Desktop/dlib/dlib/CMakeLists.txt
dlib.vcxproj -> C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release\dlib_build\Release\dlib19.22
.99_release_64bit_msvc1928.lib
Building Custom Rule C:/Users/Jimone Treburtski/Desktop/dlib/tools/python/CMakeLists.txt
dlib.cpp
matrix.cpp
vector.cpp
svm_c_trainer.cpp
svm_rank_trainer.cpp
decision_functions.cpp
other.cpp
basic.cpp
cca.cpp
sequence_segmenter.cpp
svm_struct.cpp
image.cpp
image2.cpp
image3.cpp
image4.cpp
rectangles.cpp
object_detection.cpp
shape_predictor.cpp
correlation_tracker.cpp
face_recognition.cpp
cnn_face_detector.cpp
global_optimization.cpp
image_dataset_metadata.cpp
numpy_returns.cpp
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\dlib.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxpro
j]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\svm_c_trainer.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind
11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\svm_rank_trainer.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pyb
ind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\object_detection.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pyb
ind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\matrix.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxp
roj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\basic.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxpr
oj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\sequence_segmenter.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_p
ybind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\cca.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj
]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\global_optimization.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_
pybind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\correlation_tracker.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_
pybind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\svm_struct.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.
vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\vector.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxp
roj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\image.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxpr
oj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\image4.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxp
roj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\image3.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxp
roj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\decision_functions.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_p
ybind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\face_recognition.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pyb
ind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\shape_predictor.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybi
nd11.vcxproj]
line.cpp
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\cnn_face_detector.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_py
bind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\other.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxpr
oj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\image_dataset_metadata.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dl
ib_pybind11.vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\rectangles.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.
vcxproj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\numpy_returns.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind
11.vcxproj]
gui.cpp
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\image2.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxp
roj]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\gui.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj
]
C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8'
: 'const' object must be initialized if not 'extern' (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\too
ls\python\src\line.cpp) [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxpro
j]
Traceback (most recent call last):
File "setup.py", line 222, in
setup(
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 134, in run
self.build_extension(ext)
File "setup.py", line 174, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "C:\Users\Jimone Treburtski\anaconda3\envs\tensorflow\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.`

When running outside of env

`C:\Python39\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
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*'
writing manifest file 'tools/python\dlib.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.9.4 (tags/v3.9.4:1f2e308, Apr 4 2021, 13:27:16) [MSC v.1928 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\Jimone Treburtski\Desktop\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Jimone Treburtski\Desktop\dlib\build\lib.win-amd64-3.9 -DPYTHON_EXECUTABLE=C:\Python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\Jimone Treburtski\Desktop\dlib\build\lib.win-amd64-3.9 -A x64'
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29914.0
-- The CXX compiler identification is MSVC 19.28.29914.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Python39/python.exe (found version "3.9.4")
-- Found PythonLibs: C:/Python39/libs/Python39.lib
-- pybind11 v2.2.4
-- Using CMake version: 3.20.1
-- Compiling dlib version: 19.22.99
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- 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
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1 (found suitable version "10.1", minimum required is "7.5")
-- Looking for cuDNN install...
-- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/cudnn.lib
-- Building a CUDA test project to see if your compiler is compatible with CUDA...
-- Building a cuDNN test project to check if you have the right version of cuDNN installed...
-- Enabling CUDA support for dlib. DLIB WILL USE CUDA
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.9/Release
Invoking CMake build: 'cmake --build . --config Release -- /m'
Microsoft (R) Build Engine version 16.9.0+5e4b48a27 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Checking Build System
Building NVCC (Device) object dlib_build/CMakeFiles/dlib.dir/cuda/Release/dlib_generated_cuda_dlib.cu.obj
cuda_dlib.cu
cuda_dlib.cu
Building NVCC (Device) object dlib_build/CMakeFiles/dlib.dir/cuda/Release/dlib_generated_cusolver_dlibapi.cu.obj
cusolver_dlibapi.cu
cusolver_dlibapi.cu
Building Custom Rule C:/Users/Jimone Treburtski/Desktop/dlib/dlib/CMakeLists.txt
CMake is re-running because C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.9/Release/dlib_build/CMake
Files/generate.stamp is out-of-date.
the file 'C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.9/Release/dlib_build/CMakeFiles/dlib.dir/c
uda/dlib_generated_cuda_dlib.cu.obj.depend'
is newer than 'C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.9/Release/dlib_build/CMakeFiles/gener
ate.stamp.depend'
result='-1'
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- pybind11 v2.2.4
-- Using CMake version: 3.20.1
-- Compiling dlib version: 19.22.99
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- Enabling AVX instructions
-- Looking for cuDNN install...
-- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/cudnn.lib
-- Enabling CUDA support for dlib. DLIB WILL USE CUDA
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.9/Release
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
fonts.cpp
md5_kernel_1.cpp
tokenizer_kernel_1.cpp
unicode.cpp
test_for_odr_violations.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
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
stack_trace.cpp
cpu_dlib.cpp
tensor_tools.cpp
image_dataset_metadata.cpp
mnist.cpp
cifar.cpp
global_function_search.cpp
kalman_filter.cpp
auto.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
jpeg_loader.cpp
save_jpeg.cpp
cudnn_dlibapi.cpp
cublas_dlibapi.cpp
curand_dlibapi.cpp
cuda_data_ptr.cpp
gpu_data.cpp
arm_init.c
filter_neon_intrinsics.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
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
jaricom.c
jcapimin.c
jcapistd.c
jcarith.c
jccoefct.c
jccolor.c
jcdctmgr.c
jchuff.c
jcinit.c
jcmainct.c
jcmarker.c
jcmaster.c
jcomapi.c
jcparam.c
jcprepct.c
jcsample.c
jdapimin.c
jdapistd.c
jdarith.c
jdatadst.c
jdatasrc.c
jdcoefct.c
jdcolor.c
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jdatadst.c(185,60): warning C4267: '=': conversion from '
size_t' to 'unsigned long', possible loss of data [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Rel
ease\dlib_build\dlib.vcxproj]
jddctmgr.c
jdhuff.c
jdinput.c
jdmainct.c
jdmarker.c
jdmaster.c
jdmerge.c
jdpostct.c
jdsample.c
jerror.c
jfdctflt.c
jfdctfst.c
jfdctint.c
jidctflt.c
jidctfst.c
jidctint.c
jmemmgr.c
jmemnobs.c
jquant1.c
jquant2.c
jutils.c
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jerror.c(193,5): warning C4996: 'sprintf': This function
or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See o
nline help for details. [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib_build\dlib.vcxpr
oj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jmemmgr.c(307,53): warning C4267: '+=': conversion from '
size_t' to 'long', possible loss of data [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib
_build\dlib.vcxproj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jerror.c(195,5): warning C4996: 'sprintf': This function
or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See o
nline help for details. [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib_build\dlib.vcxpr
oj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jmemmgr.c(367,70): warning C4267: '+=': conversion from '
size_t' to 'long', possible loss of data [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib
_build\dlib.vcxproj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jmemmgr.c(977,46): warning C4267: '-=': conversion from '
size_t' to 'long', possible loss of data [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib
_build\dlib.vcxproj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jmemmgr.c(991,46): warning C4267: '-=': conversion from '
size_t' to 'long', possible loss of data [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib
_build\dlib.vcxproj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jmemmgr.c(1107,19): warning C4996: 'getenv': This functio
n or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details. [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib_build\dlib.vcx
proj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib\external\libjpeg\jmemmgr.c(1110,11): warning C4996: 'sscanf': This functio
n or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details. [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib_build\dlib.vcxp
roj]
dlib.vcxproj -> C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release\dlib_build\Release\dlib19.22
.99_release_64bit_msvc1928.lib
Building Custom Rule C:/Users/Jimone Treburtski/Desktop/dlib/tools/python/CMakeLists.txt
dlib.cpp
matrix.cpp
vector.cpp
svm_c_trainer.cpp
svm_rank_trainer.cpp
decision_functions.cpp
other.cpp
basic.cpp
cca.cpp
sequence_segmenter.cpp
svm_struct.cpp
image.cpp
image2.cpp
image3.cpp
image4.cpp
rectangles.cpp
object_detection.cpp
shape_predictor.cpp
correlation_tracker.cpp
face_recognition.cpp
cnn_face_detector.cpp
global_optimization.cpp
image_dataset_metadata.cpp
numpy_returns.cpp
line.cpp
C:\Users\Jimone Treburtski\Desktop\dlib\dlib..\dlib/image_transforms/assign_image.h(86,45): warning C4018: '>=': signe
d/unsigned mismatch (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\tools\python\src\image3.cpp) [C:\Use
rs\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release_dlib_pybind11.vcxproj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib..\dlib/image_transforms/assign_image.h(160): message : see reference to f
unction template instantiation 'void dlib::impl_assign_image_scaled<out_image_type,src_image_type>(dlib::image_view &,const src_image_type &,const double)' being compiled [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp
.win-amd64-3.9\Release_dlib_pybind11.vcxproj]
with
[
out_image_type=dlib::numpy_image<int8_t>,
src_image_type=dlib::matrix_op<dlib::op_image_to_mat<dlib::numpy_image<uint32_t>,uint32_t>>
] (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\tools\python\src\image3.cpp)
C:\Users\Jimone Treburtski\Desktop\dlib\dlib..\dlib/image_transforms/assign_image.h(177): message : see reference to f
unction template instantiation 'void dlib::impl_assign_image_scaled<dest_image_type,dlib::matrix_op<dlib::op_image_to_m
at<src_image_type,T>>>(dest_image_type &,const dlib::matrix_op<dlib::op_image_to_mat<src_image_type,T>> &,const double)
' being compiled [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release_dlib_pybind11.vcxproj]
with
[
dest_image_type=dlib::numpy_image<int8_t>,
src_image_type=dlib::numpy_image<uint32_t>,
T=uint32_t
] (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\tools\python\src\image3.cpp)
C:\Users\Jimone Treburtski\Desktop\dlib\tools\python\src\image3.cpp(27): message : see reference to function template i
nstantiation 'void dlib::assign_image_scaled<dlib::numpy_image<int8_t>,dlib::numpy_image<uint32_t>>(dest_image_type &,c
onst src_image_type &,const double)' being compiled [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\R
elease_dlib_pybind11.vcxproj]
with
[
dest_image_type=dlib::numpy_image<int8_t>,
src_image_type=dlib::numpy_image<uint32_t>
]
C:\Users\Jimone Treburtski\Desktop\dlib\tools\python\src\image3.cpp(435): message : see reference to function template
instantiation 'pybind11::array convert_image_scaled<uint32_t>(const dlib::numpy_image<uint32_t> &,const std::string &,c
onst double)' being compiled [C:\Users\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release_dlib_pybind11.v
cxproj]
C:\Users\Jimone Treburtski\Desktop\dlib\dlib..\dlib/image_transforms/assign_image.h(87,45): warning C4018: '<=': signe
d/unsigned mismatch (compiling source file C:\Users\Jimone Treburtski\Desktop\dlib\tools\python\src\image3.cpp) [C:\Use
rs\Jimone Treburtski\Desktop\dlib\build\temp.win-amd64-3.9\Release_dlib_pybind11.vcxproj]
gui.cpp
Creating library C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.9/Release/Release/_dlib_pybind11.l
ib and object C:/Users/Jimone Treburtski/Desktop/dlib/build/temp.win-amd64-3.9/Release/Release/dlib_pybind11.exp
dlib_pybind11.vcxproj -> C:\Users\Jimone Treburtski\Desktop\dlib\build\lib.win-amd64-3.9_dlib_pybind11.cp39-win_amd
64.pyd
Building Custom Rule C:/Users/Jimone Treburtski/Desktop/dlib/tools/python/CMakeLists.txt
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\dlib
copying build\lib.win-amd64-3.9\dlib_init
.py -> build\bdist.win-amd64\egg\dlib
copying build\lib.win-amd64-3.9_dlib_pybind11.cp39-win_amd64.pyd -> build\bdist.win-amd64\egg
byte-compiling build\bdist.win-amd64\egg\dlib_init
.py to init.cpython-39.pyc
creating stub loader for _dlib_pybind11.cp39-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg_dlib_pybind11.py to _dlib_pybind11.cpython-39.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying tools\python\dlib.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying tools\python\dlib.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying tools\python\dlib.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying tools\python\dlib.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying tools\python\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
creating 'dist\dlib-19.22.99-py3.9-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.22.99-py3.9-win-amd64.egg
creating c:\python39\lib\site-packages\dlib-19.22.99-py3.9-win-amd64.egg
Extracting dlib-19.22.99-py3.9-win-amd64.egg to c:\python39\lib\site-packages
Adding dlib 19.22.99 to easy-install.pth file

Installed c:\python39\lib\site-packages\dlib-19.22.99-py3.9-win-amd64.egg
Processing dependencies for dlib==19.22.99
Finished processing dependencies for dlib==19.22.99`

Not sure at all what to do here

@davisking
Copy link
Owner

CMake is finding the apparently broken copy of libgif in your env. Build dlib with --no DLIB_GIF_SUPPORT to tell it to not link to it.

@ntrawvid
Copy link
Author

Worked. Thanks a ton

@JoaZ94
Copy link

JoaZ94 commented Jun 18, 2021

CMake is finding the apparently broken copy of libgif in your env. Build dlib with to tell it to not link to it.--no DLIB_GIF_SUPPORT

I'm new to using cmake and I don't know how to include the line of code mentioned above, to fix the error.

I am trying to build with windows 10 and visual studio 2019 for c ++, but cmake detects anaconda and libpng.

Thanks in advance.

@SaliyaWickramasinghe
Copy link

CMake is finding the apparently broken copy of libgif in your env. Build dlib with --no DLIB_GIF_SUPPORT to tell it to not link to it.

Thanks @davisking ..After long run of searching, found this solution.. "python setup.py install --no DLIB_GIF_SUPPORT"

@Suchir2004
Copy link

Download the dlib files
Link - https://drive.google.com/file/d/11Hip8-llWEm5GN3_u4ibI09unL7xCw0g/view?usp=drivesdk
And just copy the path of that file and paste it into the terminal.
Stable version is 10 among all files that you have been downloaded from the link

In terminal you just need copy the path of that particular file; there are 4 files the choose one which is suitable for your computer work on windows.

@tintin-py
Copy link

@davisking Can you please enlighten about libgif? What is its purpose and how does it become broken?

@davisking
Copy link
Owner

davisking commented Jun 14, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants