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

Unresolved external symbol __imp_tmpfile referenced in function jpeg _open_backing_store #1547

Closed saravanabalagi closed 6 years ago

saravanabalagi commented 6 years ago

Expected Behavior

Successful Compilation on executing command python setup.py install

Current Behavior

cmake build succeeds, but python setup.py install fails with

187 Warnings 2 Errors

"F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (default target) (1) ->
       "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj" (default target) (4) ->
       (Link target) ->
         jpeg.lib(jmemansi.c.obj) : error LNK2019: unresolved external symbol __imp_tmpfile referenced in function jpeg
       _open_backing_store [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
         F:\Projects\python\dlib\build\lib.win-amd64-3.6\dlib.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved ex
       ternals [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]

Detailed Log:

running install
running bdist_egg
running egg_info
writing dlib.egg-info\PKG-INFO
writing dependency_links to dlib.egg-info\dependency_links.txt
writing top-level names to dlib.egg-info\top_level.txt
package init file 'dlib\__init__.py' not found (or not a regular file)
reading manifest file 'dlib.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file '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.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)]
Invoking CMake setup: 'cmake F:\Projects\python\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\Projects\python\dlib\build\lib.win-amd64-3.6 -DPYTHON_EXECUTABLE=F:\Python\envs\unrecognized\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=F:\Projects\python\dlib\build\lib.win-amd64-3.6 -A x64'
-- Selecting Windows SDK version  to target Windows 10.0.17134.
-- pybind11 v2.2.2
-- Using CMake version: 3.13.0-rc2
-- Compiling dlib version: 19.16.99
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- Enabling AVX instructions
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Looking for cuDNN install...
-- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CuDNN/cuda/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: F:/Projects/python/dlib/build/temp.win-amd64-3.6/Release
Invoking CMake build: 'cmake --build . --config Release -- /m'
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started Nov 09, 2018 19:44:33.
     1>Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" on node 1 (default targets)
       .
     1>Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (1) is building "F:\Project
       s\python\dlib\build\temp.win-amd64-3.6\Release\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
     2>InitializeBuildStatus:
         Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
       CustomBuild:
         All outputs are 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".
     2>Done Building Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ZERO_CHECK.vcxproj" (default tar
       gets).
     1>Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (1) is building "F:\Project
       s\python\dlib\build\temp.win-amd64-3.6\Release\dlib_build\dlib.vcxproj" (4) on node 2 (default targets).
     4>InitializeBuildStatus:
         Creating "dlib.dir\Release\dlib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
       CustomBuild:
         All outputs are up-to-date.
       ClCompile:
         All outputs are up-to-date.
       Lib:
         All outputs are up-to-date.
         dlib.vcxproj -> F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_build\Release\dlib19.16.99_relea
         se_64bit_msvc1900.lib
       FinalizeBuildStatus:
         Deleting file "dlib.dir\Release\dlib.tlog\unsuccessfulbuild".
         Touching "dlib.dir\Release\dlib.tlog\dlib.lastbuildstate".
     4>Done Building Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_build\dlib.vcxproj" (defaul
       t targets).
     1>Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (1) is building "F:\Project
       s\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj" (3) on node 3 (default targets).
     3>InitializeBuildStatus:
         Touching "dlib_python.dir\Release\dlib_python.tlog\unsuccessfulbuild".
       CustomBuild:
         All outputs are up-to-date.
       ClCompile:
         All outputs are up-to-date.

and scrolling to the error section:

Link:
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"F:\Proj
         ects\python\dlib\build\lib.win-amd64-3.6\dlib.cp36-win_amd64.pyd" /INCREMENTAL:NO /NOLOGO F:\Python\envs\unrec
         ognized\libs\Python36.lib dlib_build\Release\dlib19.16.99_release_64bit_msvc1900.lib "C:\Program Files\NVIDIA
         GPU Computing Toolkit\CUDA\v9.0\lib\x64\cudart_static.lib" ws2_32.lib winmm.lib comctl32.lib gdi32.lib imm32.l
         ib F:\Python\Library\lib\libpng.lib F:\Python\Library\lib\z.lib F:\Python\Library\lib\jpeg.lib F:\Python\Libra
         ry\lib\mkl_intel_lp64_dll.lib F:\Python\Library\lib\libiomp5md.lib F:\Python\Library\lib\mkl_intel_thread_dll.
         lib F:\Python\Library\lib\mkl_core_dll.lib "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64\cu
         blas.lib" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64\cublas_device.lib" "C:\Program File
         s\NVIDIA GPU Computing Toolkit\CuDNN\cuda\lib\x64\cudnn.lib" "C:\Program Files\NVIDIA GPU Computing Toolkit\CU
         DA\v9.0\lib\x64\curand.lib" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64\cusolver.lib" F:\
         Python\Library\lib\sqlite3.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.l
         ib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:em
         bed /PDB:"F:/Projects/python/dlib/build/lib.win-amd64-3.6/dlib.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /
         NXCOMPAT /IMPLIB:"F:/Projects/python/dlib/build/temp.win-amd64-3.6/Release/Release/dlib.lib" /MACHINE:X64  /ma
         chine:x64 /DLL dlib_python.dir\Release\dlib.obj
         dlib_python.dir\Release\matrix.obj
         dlib_python.dir\Release\vector.obj
         dlib_python.dir\Release\svm_c_trainer.obj
         dlib_python.dir\Release\svm_rank_trainer.obj
         dlib_python.dir\Release\decision_functions.obj
         dlib_python.dir\Release\other.obj
         dlib_python.dir\Release\basic.obj
         dlib_python.dir\Release\cca.obj
         dlib_python.dir\Release\sequence_segmenter.obj
         dlib_python.dir\Release\svm_struct.obj
         dlib_python.dir\Release\image.obj
         dlib_python.dir\Release\image2.obj
         dlib_python.dir\Release\image3.obj
         dlib_python.dir\Release\image4.obj
         dlib_python.dir\Release\rectangles.obj
         dlib_python.dir\Release\object_detection.obj
         dlib_python.dir\Release\shape_predictor.obj
         dlib_python.dir\Release\correlation_tracker.obj
         dlib_python.dir\Release\face_recognition.obj
         dlib_python.dir\Release\cnn_face_detector.obj
         dlib_python.dir\Release\global_optimization.obj
         dlib_python.dir\Release\image_dataset_metadata.obj
         dlib_python.dir\Release\numpy_returns.obj
         dlib_python.dir\Release\line.obj
         dlib_python.dir\Release\gui.obj
            Creating library F:/Projects/python/dlib/build/temp.win-amd64-3.6/Release/Release/dlib.lib and object F:/Pr
         ojects/python/dlib/build/temp.win-amd64-3.6/Release/Release/dlib.exp
     4>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library [F:\Proj
       ects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jerror.c.obj) : warning LNK4217: locally defined symbol exit imported in function error_exit [F:\Projec
       ts\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jerror.c.obj) : warning LNK4217: locally defined symbol __acrt_iob_func imported in function output_mes
       sage [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jerror.c.obj) : warning LNK4217: locally defined symbol __stdio_common_vfprintf imported in function _v
       fprintf_l [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jerror.c.obj) : warning LNK4217: locally defined symbol __stdio_common_vsprintf imported in function _v
       snprintf_l [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jdatasrc.c.obj) : warning LNK4217: locally defined symbol fread imported in function fill_input_buffer
       [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : warning LNK4049: locally defined symbol fread imported [F:\Projects\python\dlib\build
       \temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jdatadst.c.obj) : warning LNK4217: locally defined symbol free imported in function empty_mem_output_bu
       ffer [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : warning LNK4049: locally defined symbol free imported [F:\Projects\python\dlib\build\
       temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jdatadst.c.obj) : warning LNK4217: locally defined symbol malloc imported in function empty_mem_output_
       buffer [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : warning LNK4049: locally defined symbol malloc imported [F:\Projects\python\dlib\buil
       d\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jdatadst.c.obj) : warning LNK4217: locally defined symbol ferror imported in function term_destination
       [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jdatadst.c.obj) : warning LNK4217: locally defined symbol fflush imported in function term_destination
       [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jdatadst.c.obj) : warning LNK4217: locally defined symbol fwrite imported in function empty_output_buff
       er [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : warning LNK4049: locally defined symbol fwrite imported [F:\Projects\python\dlib\buil
       d\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jdmarker.c.obj) : warning LNK4217: locally defined symbol strncpy imported in function get_lse [F:\Proj
       ects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : warning LNK4049: locally defined symbol strncpy imported [F:\Projects\python\dlib\bui
       ld\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemmgr.c.obj) : warning LNK4217: locally defined symbol getenv imported in function jinit_memory_mgr [
       F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemmgr.c.obj) : warning LNK4217: locally defined symbol __stdio_common_vsscanf imported in function _v
       sscanf_l [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : warning LNK4217: locally defined symbol fclose imported in function close_backing_sto
       re [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : warning LNK4217: locally defined symbol fseek imported in function read_backing_store
        [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>jpeg.lib(jmemansi.c.obj) : error LNK2019: unresolved external symbol __imp_tmpfile referenced in function jpeg_o
       pen_backing_store [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>F:\Projects\python\dlib\build\lib.win-amd64-3.6\dlib.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved exte
       rnals [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
     4>Done Building Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj" (default ta
       rgets) -- FAILED.
     1>Done Building Project "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (default targ
       ets) -- FAILED.

Build FAILED.

and at the end


       "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (default target) (1) ->
       "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj" (default target) (4) ->
       (Link target) ->
         jpeg.lib(jmemansi.c.obj) : error LNK2019: unresolved external symbol __imp_tmpfile referenced in function jpeg
       _open_backing_store [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
         F:\Projects\python\dlib\build\lib.win-amd64-3.6\dlib.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved ex
       ternals [F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]

    187 Warning(s)
    2 Error(s)

Time Elapsed 00:03:55.10
Traceback (most recent call last):
  File "setup.py", line 257, in <module>
    'Topic :: Software Development',
  File "F:\Python\envs\unrecognized\lib\site-packages\setuptools\__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "F:\Python\envs\unrecognized\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "F:\Python\envs\unrecognized\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "F:\Python\envs\unrecognized\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "F:\Python\envs\unrecognized\lib\site-packages\setuptools\command\install.py", line 67, in run
    self.do_egg_install()
  File "F:\Python\envs\unrecognized\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
    self.run_command('bdist_egg')
  File "F:\Python\envs\unrecognized\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "F:\Python\envs\unrecognized\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "F:\Python\envs\unrecognized\lib\site-packages\setuptools\command\bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "F:\Python\envs\unrecognized\lib\site-packages\setuptools\command\bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "F:\Python\envs\unrecognized\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "F:\Python\envs\unrecognized\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "F:\Python\envs\unrecognized\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "F:\Python\envs\unrecognized\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "F:\Python\envs\unrecognized\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "F:\Python\envs\unrecognized\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 133, in run
    self.build_extension(ext)
  File "setup.py", line 173, in build_extension
    subprocess.check_call(cmake_build, cwd=build_folder)
  File "F:\Python\envs\unrecognized\lib\subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.

Steps to Reproduce

git clone https://github.com/davisking/dlib.git
cd dlib
mkdir build
cd build
cmake .. -G "Visual Studio 14 2015 Win64" -T host=x64 
cmake --build .
> BUILD SUCCEEDED
cd ..
python setup.py install

Cmake Log

(unrecognized) F:\Projects\python\dlib>mkdir build

(unrecognized) F:\Projects\python\dlib>cd build

(unrecognized) F:\Projects\python\dlib\build>cmake .. -G "Visual Studio 14 2015 Win64" -T host=x64
-- Selecting Windows SDK version  to target Windows 10.0.17134.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMake version: 3.13.0-rc2
-- Compiling dlib version: 19.16.99
-- 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 SSE2 instructions
-- Looking for png_create_read_struct
-- Looking for png_create_read_struct - found
-- Looking for jpeg_read_header
-- Looking for jpeg_read_header - found
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found BLAS: F:/Python/Library/lib/mkl_intel_lp64_dll.lib;F:/Python/Library/lib/libiomp5md.lib;F:/Python/Library/lib/mkl_intel_thread_dll.lib;F:/Python/Library/lib/mkl_core_dll.lib
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0 (found suitable version "9.0", minimum required is "7.5")
-- Looking for cuDNN install...
-- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CuDNN/cuda/lib/x64/cudnn.lib
-- Building a CUDA test project to see if your compiler is compatible with CUDA...
-- Checking 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: F:/Projects/python/dlib/build

(unrecognized) F:\Projects\python\dlib\build>cmake --build .
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started Nov 09, 2018 20:00:35.
Project "F:\Projects\python\dlib\build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "F:\Projects\python\dlib\build\ALL_BUILD.vcxproj" (1) is building "F:\Projects\python\dlib\build\ZERO_CHECK.vcx
proj" (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 F:/Projects/python/dlib/build/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because F:/Projects/python/dlib/build/dlib/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 "F:\Projects\python\dlib\build\ZERO_CHECK.vcxproj" (default targets).

Project "F:\Projects\python\dlib\build\ALL_BUILD.vcxproj" (1) is building "F:\Projects\python\dlib\build\dlib\dlib.vcxp
roj" (3) on node 1 (default targets).
PrepareForBuild:
  Creating directory "dlib.dir\Debug\".
  Creating directory "F:\Projects\python\dlib\build\dlib\Debug\".
  Creating directory "dlib.dir\Debug\dlib.tlog\".
InitializeBuildStatus:
  Creating "dlib.dir\Debug\dlib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ComputeCustomBuildOutput:
  Creating directory "F:\Projects\python\dlib\build\dlib\CMakeFiles\dlib.dir\cuda\Debug\".
CustomBuild:
  Building NVCC (Device) object dlib/CMakeFiles/dlib.dir/cuda/Debug/dlib_generated_cuda_dlib.cu.obj
  cuda_dlib.cu
  cuda_dlib.cu
  cusolver_dlibapi.cu
  Building NVCC (Device) object dlib/CMakeFiles/dlib.dir/cuda/Debug/dlib_generated_cusolver_dlibapi.cu.obj
  cusolver_dlibapi.cu
  Building Custom Rule F:/Projects/python/dlib/dlib/CMakeLists.txt
  CMake is re-running because F:/Projects/python/dlib/build/dlib/CMakeFiles/generate.stamp is out-of-date.
    the file 'F:/Projects/python/dlib/build/dlib/CMakeFiles/dlib.dir/cuda/dlib_generated_cuda_dlib.cu.obj.depend'
    is newer than 'F:/Projects/python/dlib/build/dlib/CMakeFiles/generate.stamp.depend'
    result='-1'
  -- Selecting Windows SDK version  to target Windows 10.0.17134.
  -- Using CMake version: 3.13.0-rc2
  -- Compiling dlib version: 19.16.99
  -- Enabling SSE2 instructions
  -- Searching for BLAS and LAPACK
  -- Searching for BLAS and LAPACK
  -- Looking for cuDNN install...
  -- Found cuDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CuDNN/cuda/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: F:/Projects/python/dlib/build
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /IF:\Python\Library\include /I"C:\Program
  Files\NVIDIA GPU Computing Toolkit\CuDNN\cuda\include" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\inc
  lude" /Zi /nologo /W3 /WX- /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D DLIB_HAVE_SSE2 /D DLIB_DISABLE_ASSERTS /D DLIB_JPEG_S
  UPPORT /D DLIB_USE_BLAS /D DLIB_USE_CUDA /D DLIB_PNG_SUPPORT /D DLIB__CMAKE_GENERATED_A_CONFIG_H_FILE /D DLIB_CHECK_F
  OR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_16_99 /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm-
  /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"dlib.dir\Debug\\" /Fd"dlib.dir\Debug\dli
  b.pdb" /Gd /TP /errorReport:queue  /bigobj F:\Projects\python\dlib\dlib\base64\base64_kernel_1.cpp F:\Projects\python
  \dlib\dlib\bigint\bigint_kernel_1.cpp F:\Projects\python\dlib\dlib\bigint\bigint_kernel_2.cpp F:\Projects\python\dlib
  \dlib\bit_stream\bit_stream_kernel_1.cpp F:\Projects\python\dlib\dlib\entropy_decoder\entropy_decoder_kernel_1.cpp F:
  \Projects\python\dlib\dlib\entropy_decoder\entropy_decoder_kernel_2.cpp F:\Projects\python\dlib\dlib\entropy_encoder\
  entropy_encoder_kernel_1.cpp F:\Projects\python\dlib\dlib\entropy_encoder\entropy_encoder_kernel_2.cpp F:\Projects\py
  thon\dlib\dlib\md5\md5_kernel_1.cpp F:\Projects\python\dlib\dlib\tokenizer\tokenizer_kernel_1.cpp F:\Projects\python\
  dlib\dlib\unicode\unicode.cpp F:\Projects\python\dlib\dlib\data_io\image_dataset_metadata.cpp F:\Projects\python\dlib
  \dlib\data_io\mnist.cpp F:\Projects\python\dlib\dlib\global_optimization\global_function_search.cpp F:\Projects\pytho
  n\dlib\dlib\filtering\kalman_filter.cpp F:\Projects\python\dlib\dlib\test_for_odr_violations.cpp F:\Projects\python\d
  lib\dlib\svm\auto.cpp F:\Projects\python\dlib\dlib\sockets\sockets_kernel_1.cpp F:\Projects\python\dlib\dlib\bsp\bsp.
  cpp F:\Projects\python\dlib\dlib\dir_nav\dir_nav_kernel_1.cpp F:\Projects\python\dlib\dlib\dir_nav\dir_nav_kernel_2.c
  pp F:\Projects\python\dlib\dlib\dir_nav\dir_nav_extensions.cpp F:\Projects\python\dlib\dlib\linker\linker_kernel_1.cp
  p F:\Projects\python\dlib\dlib\logger\extra_logger_headers.cpp F:\Projects\python\dlib\dlib\logger\logger_kernel_1.cp
  p F:\Projects\python\dlib\dlib\logger\logger_config_file.cpp F:\Projects\python\dlib\dlib\misc_api\misc_api_kernel_1.
  cpp F:\Projects\python\dlib\dlib\misc_api\misc_api_kernel_2.cpp F:\Projects\python\dlib\dlib\sockets\sockets_extensio
  ns.cpp F:\Projects\python\dlib\dlib\sockets\sockets_kernel_2.cpp F:\Projects\python\dlib\dlib\sockstreambuf\sockstrea
  mbuf.cpp F:\Projects\python\dlib\dlib\sockstreambuf\sockstreambuf_unbuffered.cpp F:\Projects\python\dlib\dlib\server\
  server_kernel.cpp F:\Projects\python\dlib\dlib\server\server_iostream.cpp F:\Projects\python\dlib\dlib\server\server_
  http.cpp F:\Projects\python\dlib\dlib\threads\multithreaded_object_extension.cpp F:\Projects\python\dlib\dlib\threads
  \threaded_object_extension.cpp F:\Projects\python\dlib\dlib\threads\threads_kernel_1.cpp F:\Projects\python\dlib\dlib
  \threads\threads_kernel_2.cpp F:\Projects\python\dlib\dlib\threads\threads_kernel_shared.cpp F:\Projects\python\dlib\
  dlib\threads\thread_pool_extension.cpp F:\Projects\python\dlib\dlib\threads\async.cpp F:\Projects\python\dlib\dlib\ti
  mer\timer.cpp F:\Projects\python\dlib\dlib\stack_trace.cpp F:\Projects\python\dlib\dlib\cuda\cpu_dlib.cpp F:\Projects
  \python\dlib\dlib\cuda\tensor_tools.cpp F:\Projects\python\dlib\dlib\gui_widgets\fonts.cpp F:\Projects\python\dlib\dl
  ib\gui_widgets\widgets.cpp F:\Projects\python\dlib\dlib\gui_widgets\drawable.cpp F:\Projects\python\dlib\dlib\gui_wid
  gets\canvas_drawing.cpp F:\Projects\python\dlib\dlib\gui_widgets\style.cpp F:\Projects\python\dlib\dlib\gui_widgets\b
  ase_widgets.cpp F:\Projects\python\dlib\dlib\gui_core\gui_core_kernel_1.cpp F:\Projects\python\dlib\dlib\gui_core\gui
  _core_kernel_2.cpp F:\Projects\python\dlib\dlib\image_loader\png_loader.cpp F:\Projects\python\dlib\dlib\image_saver\
  save_png.cpp F:\Projects\python\dlib\dlib\image_loader\jpeg_loader.cpp F:\Projects\python\dlib\dlib\image_saver\save_
  jpeg.cpp F:\Projects\python\dlib\dlib\cuda\cudnn_dlibapi.cpp F:\Projects\python\dlib\dlib\cuda\cublas_dlibapi.cpp F:\
  Projects\python\dlib\dlib\cuda\curand_dlibapi.cpp F:\Projects\python\dlib\dlib\cuda\cuda_data_ptr.cpp F:\Projects\pyt
  hon\dlib\dlib\cuda\gpu_data.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
  kalman_filter.cpp
  test_for_odr_violations.cpp
  auto.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
  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
  jpeg_loader.cpp
  save_jpeg.cpp
  cudnn_dlibapi.cpp
  cublas_dlibapi.cpp
  curand_dlibapi.cpp
  cuda_data_ptr.cpp
  gpu_data.cpp
Lib:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\Lib.exe /OUT:"F:\Projects\python\dlib\build\dlib\Deb
  ug\dlib19.16.99_debug_64bit_msvc1900.lib" /NOLOGO /MACHINE:X64  /machine:x64 dlib.dir\Debug\base64_kernel_1.obj
  dlib.dir\Debug\bigint_kernel_1.obj
  dlib.dir\Debug\bigint_kernel_2.obj
  dlib.dir\Debug\bit_stream_kernel_1.obj
  dlib.dir\Debug\entropy_decoder_kernel_1.obj
  dlib.dir\Debug\entropy_decoder_kernel_2.obj
  dlib.dir\Debug\entropy_encoder_kernel_1.obj
  dlib.dir\Debug\entropy_encoder_kernel_2.obj
  dlib.dir\Debug\md5_kernel_1.obj
  dlib.dir\Debug\tokenizer_kernel_1.obj
  dlib.dir\Debug\unicode.obj
  dlib.dir\Debug\image_dataset_metadata.obj
  dlib.dir\Debug\mnist.obj
  dlib.dir\Debug\global_function_search.obj
  dlib.dir\Debug\kalman_filter.obj
  dlib.dir\Debug\test_for_odr_violations.obj
  dlib.dir\Debug\auto.obj
  dlib.dir\Debug\sockets_kernel_1.obj
  dlib.dir\Debug\bsp.obj
  dlib.dir\Debug\dir_nav_kernel_1.obj
  dlib.dir\Debug\dir_nav_kernel_2.obj
  dlib.dir\Debug\dir_nav_extensions.obj
  dlib.dir\Debug\linker_kernel_1.obj
  dlib.dir\Debug\extra_logger_headers.obj
  dlib.dir\Debug\logger_kernel_1.obj
  dlib.dir\Debug\logger_config_file.obj
  dlib.dir\Debug\misc_api_kernel_1.obj
  dlib.dir\Debug\misc_api_kernel_2.obj
  dlib.dir\Debug\sockets_extensions.obj
  dlib.dir\Debug\sockets_kernel_2.obj
  dlib.dir\Debug\sockstreambuf.obj
  dlib.dir\Debug\sockstreambuf_unbuffered.obj
  dlib.dir\Debug\server_kernel.obj
  dlib.dir\Debug\server_iostream.obj
  dlib.dir\Debug\server_http.obj
  dlib.dir\Debug\multithreaded_object_extension.obj
  dlib.dir\Debug\threaded_object_extension.obj
  dlib.dir\Debug\threads_kernel_1.obj
  dlib.dir\Debug\threads_kernel_2.obj
  dlib.dir\Debug\threads_kernel_shared.obj
  dlib.dir\Debug\thread_pool_extension.obj
  dlib.dir\Debug\async.obj
  dlib.dir\Debug\timer.obj
  dlib.dir\Debug\stack_trace.obj
  dlib.dir\Debug\cpu_dlib.obj
  dlib.dir\Debug\tensor_tools.obj
  dlib.dir\Debug\fonts.obj
  dlib.dir\Debug\widgets.obj
  dlib.dir\Debug\drawable.obj
  dlib.dir\Debug\canvas_drawing.obj
  dlib.dir\Debug\style.obj
  dlib.dir\Debug\base_widgets.obj
  dlib.dir\Debug\gui_core_kernel_1.obj
  dlib.dir\Debug\gui_core_kernel_2.obj
  dlib.dir\Debug\png_loader.obj
  dlib.dir\Debug\save_png.obj
  dlib.dir\Debug\jpeg_loader.obj
  dlib.dir\Debug\save_jpeg.obj
  dlib.dir\Debug\cudnn_dlibapi.obj
  dlib.dir\Debug\cublas_dlibapi.obj
  dlib.dir\Debug\curand_dlibapi.obj
  dlib.dir\Debug\cuda_data_ptr.obj
  dlib.dir\Debug\gpu_data.obj
  F:\Projects\python\dlib\build\dlib\CMakeFiles\dlib.dir\cuda\Debug\dlib_generated_cuda_dlib.cu.obj
  F:\Projects\python\dlib\build\dlib\CMakeFiles\dlib.dir\cuda\Debug\dlib_generated_cusolver_dlibapi.cu.obj
  dlib.vcxproj -> F:\Projects\python\dlib\build\dlib\Debug\dlib19.16.99_debug_64bit_msvc1900.lib
FinalizeBuildStatus:
  Deleting file "dlib.dir\Debug\dlib.tlog\unsuccessfulbuild".
  Touching "dlib.dir\Debug\dlib.tlog\dlib.lastbuildstate".
Done Building Project "F:\Projects\python\dlib\build\dlib\dlib.vcxproj" (default targets).

PrepareForBuild:
  Creating directory "x64\Debug\ALL_BUILD\".
  Creating directory "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\".
InitializeBuildStatus:
  Creating "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule F:/Projects/python/dlib/CMakeLists.txt
  CMake does not need to re-run because F:/Projects/python/dlib/build/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
  Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
Done Building Project "F:\Projects\python\dlib\build\ALL_BUILD.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:01:39.40
davisking commented 6 years ago

You don't need to run cmake at all. Running that doesn't do anything related to using dlib via python.

I note that the output says 4>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library [F:\Proj ects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]

Maybe remove this line: https://github.com/davisking/dlib/blob/master/tools/python/CMakeLists.txt#L23 and see what happens. Although really it shouldn't matter.

The real issue is probably that the version of libjpeg cmake found (that jpeg.lib file) is probably compiled in some bad way, since it's missing symbols. You can see https://github.com/davisking/dlib/blob/master/dlib/CMakeLists.txt#L487 that there are already checks to avoid linking against the, generally broken, copy of libjpeg included in anaconda. Maybe they should be expanded to avoid linking to whatever funky libjpeg is on your system.

saravanabalagi commented 6 years ago

Maybe remove this line: https://github.com/davisking/dlib/blob/master/tools/python/CMakeLists.txt#L23 and see what happens

Solves the problem. Thanks a bunch.

It ended with 166 Warnings. Is it something that I need to worry about?

Build succeeded.

       "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\ALL_BUILD.vcxproj" (default target) (1) ->
       "F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj" (default target) (4) ->
       (ClCompile target) ->
         F:\Projects\python\dlib\tools\python\src\basic.cpp(22): warning C4101: 'e': unreferenced local variable [F:\Pr
       ojects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
         F:\Projects\python\dlib\tools\python\src\vector.cpp(62): warning C4101: 'e': unreferenced local variable [F:\P
       rojects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
         F:\Projects\python\dlib\tools\python\src\svm_struct.cpp(59): warning C4101: 'e': unreferenced local variable [
       F:\Projects\python\dlib\build\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
         F:\Projects\python\dlib\dlib\..\dlib/image_transforms/assign_image.h(86): warning C4018: '>=': signed/unsigned
        mismatch (compiling source file F:\Projects\python\dlib\tools\python\src\image3.cpp) [F:\Projects\python\dlib\b
       uild\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
         F:\Projects\python\dlib\dlib\..\dlib/image_transforms/assign_image.h(87): warning C4018: '<=': signed/unsigned
        mismatch (compiling source file F:\Projects\python\dlib\tools\python\src\image3.cpp) [F:\Projects\python\dlib\b
       uild\temp.win-amd64-3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xstddef(659): warning C4503: 'std::_Is_function
       <_Ty>::_Weird': decorated name length exceeded, name was truncated [F:\Projects\python\dlib\build\temp.win-amd64
       -3.6\Release\dlib_python.vcxproj]
         C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\memory(1396): warning C4503: 'dlib::add_layer<d
...

Full log here

davisking commented 6 years ago

No problem. Don't worry about those warnings, they don't have any bad effect.

davisking commented 6 years ago

Can you try the latest dlib in github? I just updated the cmake scripts and things should not just work.

saravanabalagi commented 6 years ago

Can you try the latest dlib in github? I just updated the cmake scripts and things should not just work.

It is getting built and installed successfully with the latest commit (as of now) and it gets built exactly like before, same warnings and no error. I was not able to hunt down things also because I updated conda after I first built dlib with Cuda, sorry about that.

What should happen though? Probably on my side libjpeg got updated? Or some caching?

davisking commented 6 years ago

Cool, that's what should happen. :)

I changed it so that it just always builds and uses the copy of libjpeg inside dlib/external (for Visual Studio) rather than trying to find one on your system. Non-visual-studio users still use the system libjpeg. But windows users hardly ever have a working copy of libjpeg installed. Any you find is probably busted.

ManuelZ commented 5 years ago

I was suffering the same problem, but building from Git solved it. Thanks @davisking .