Ask Your Question

Revision history [back]

fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

I am trying to build OpenCV for ARM64 on Windows 10 machine, I run the cmake GUI and choose ARM64 target, but it failed to generate final project when clicking the generate button. The error is: cl /c /Zi /W3 /WX- /diagnostics:column /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D "CMAKE_INTDIR=\"Debug\"" /D _ARM64_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE=1 /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_fe697.dir\Debug\" /Fd"cmTC_fe697.dir\Debug\vc142.pdb" /Gd /TC /analyze- /errorReport:queue /bigobj D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\CheckIncludeFile.c

D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\cmTC_fe697.vcxproj]

fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

I am trying to build OpenCV for ARM64 on Windows 10 machine, I run the cmake GUI and choose ARM64 target, but it failed to generate final project when clicking the generate button. The error is: is:

 cl /c /Zi /W3 /WX- /diagnostics:column /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D "CMAKE_INTDIR=\"Debug\"" /D _ARM64_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE=1 /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_fe697.dir\Debug\" /Fo"cmTC_fe697.dir\Debug\\" /Fd"cmTC_fe697.dir\Debug\vc142.pdb" /Gd /TC /analyze- /errorReport:queue  /bigobj D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\CheckIncludeFile.c

D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\CheckIncludeFile.c

D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): D:\SRC\opencv\ARM64\CMakeFiles\CMak eTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\cmTC_fe697.vcxproj]

[D:\SRC\opencv\ARM64\CMakeFiles\CMakeTmp\cmTC_fe697.vcxproj]