Content of the CMakeError.log:
Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/DATA/Developer/DeepLearning/pytorch/exampleTorchApp/build/CMakeFiles/CMakeTmp
Run Build Command:“C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe” “cmTC_338d1.vcxproj” “/p:Configuration=Debug” “/p:VisualStudioVersion=15.0”
Microsoft ® Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright © Microsoft Corporation. All rights reserved.
Build started 1/23/2019 9:45:18 PM.
Project “C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\cmTC_338d1.vcxproj” on node 1 (default targets).
PrepareForBuild:
Creating directory “cmTC_338d1.dir\Debug”.
Creating directory “C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\Debug”.
Creating directory “cmTC_338d1.dir\Debug\cmTC_338d1.tlog”.
InitializeBuildStatus:
Creating “cmTC_338d1.dir\Debug\cmTC_338d1.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D “CMAKE_INTDIR=“Debug”” /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_338d1.dir\Debug\" /Fd"cmTC_338d1.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c
Microsoft ® C/C++ Optimizing Compiler Version 19.16.27026.1 for x64
Copyright © Microsoft Corporation. All rights reserved.
CheckIncludeFile.c
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D “CMAKE_INTDIR=“Debug”” /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_338d1.dir\Debug\" /Fd"cmTC_338d1.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c
c:\data\developer\deeplearning\pytorch\exampletorchapp\build\cmakefiles\cmaketmp\checkincludefile.c(1): fatal error C1083: Cannot open include file: ‘pthread.h’: No such file or directory [C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\cmTC_338d1.vcxproj]
Done Building Project “C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\cmTC_338d1.vcxproj” (default targets) – FAILED.
Build FAILED.
“C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\cmTC_338d1.vcxproj” (default target) (1) ->
(ClCompile target) ->
c:\data\developer\deeplearning\pytorch\exampletorchapp\build\cmakefiles\cmaketmp\checkincludefile.c(1): fatal error C1083: Cannot open include file: ‘pthread.h’: No such file or directory [C:\DATA\Developer\DeepLearning\pytorch\exampleTorchApp\build\CMakeFiles\CMakeTmp\cmTC_338d1.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.07