-
Notifications
You must be signed in to change notification settings - Fork 922
Closed
Description
Hello,
I have been trying to build the latest version for Windows. I perform the following steps:
set CMAKE_ARGS="-DWITH_CUDA=ON -DCUDA_FAST_MATH=ON -DOPENCV_ENABLE_NONFREE=ON"
set ENABLE_HEADLESS=1
set ENABLE_CONTRIB=1
pip wheel . --verbose
But I get the following CMake Error. I have no idea how to solve it. Can you please help me?
Determining if the function fseeko exists failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-tbqoct
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_74902.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=fseeko /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_74902.dir\Release\\" /Fd"cmTC_74902.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-tbqoct\CheckFunctionExists.c"
CheckFunctionExists.c
CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-tbqoct\cmTC_74902.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-tbqoct\Release\cmTC_74902.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-tbqoct\cmTC_74902.vcxproj]
Determining size of off64_t failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-r35fx2
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_7ab46.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
OFF64_T.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_7ab46.dir\Release\\" /Fd"cmTC_7ab46.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\OFF64_T.c"
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\OFF64_T.c(29,12): error C2065: 'off64_t': undeclared identifier [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\cmTC_7ab46.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\OFF64_T.c(30,12): error C2065: 'off64_t': undeclared identifier [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\cmTC_7ab46.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\OFF64_T.c(31,12): error C2065: 'off64_t': undeclared identifier [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\cmTC_7ab46.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\OFF64_T.c(32,12): error C2065: 'off64_t': undeclared identifier [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\cmTC_7ab46.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\OFF64_T.c(33,12): error C2065: 'off64_t': undeclared identifier [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-r35fx2\cmTC_7ab46.vcxproj]
OFF64_T.c:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__PPC64__)
# define KEY '_','_','P','P','C','6','4','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__PPC__)
# define KEY '_','_','P','P','C','_','_'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif
#define SIZE (sizeof(off64_t))
static char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining if the function memmove exists failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-hwsatp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_068de.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckFunctionExists.c
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-hwsatp\CheckFunctionExists.c(7,3): warning C4391: 'char memmove(void)': incorrect return type for intrinsic function, expected 'void' [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-hwsatp\cmTC_068de.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-hwsatp\CheckFunctionExists.c(7,3): warning C4392: 'char memmove(void)': incorrect number of arguments for intrinsic function, expected '3' arguments [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-hwsatp\cmTC_068de.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-hwsatp\CheckFunctionExists.c(17,24): error C2168: 'memmove': too few actual parameters for intrinsic function [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-hwsatp\cmTC_068de.vcxproj]
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=memmove /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_068de.dir\Release\\" /Fd"cmTC_068de.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-hwsatp\CheckFunctionExists.c"
Determining if the function strcasecmp exists failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-rclygi
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_b8fe7.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckFunctionExists.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=strcasecmp /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_b8fe7.dir\Release\\" /Fd"cmTC_b8fe7.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-rclygi\CheckFunctionExists.c"
CheckFunctionExists.obj : error LNK2019: unresolved external symbol strcasecmp referenced in function main [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-rclygi\cmTC_b8fe7.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-rclygi\Release\cmTC_b8fe7.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-rclygi\cmTC_b8fe7.vcxproj]
Build output check failed:
Regex: 'unknown .*option'
Output line: 'cl : command line warning D9002: ignoring unknown option '-std=c99' [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeTmp\cmTC_0b0a9.vcxproj]
'
Compilation failed:
source file: 'C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeTmp/src.c'
check option: ' /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /MP -std=c99'
===== BUILD LOG =====
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_0b0a9.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_0b0a9.dir\Release\\" /Fd"cmTC_0b0a9.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj /bigobj -std=c99 "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeTmp\src.c"
cl : command line warning D9002: ignoring unknown option '-std=c99' [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeTmp\cmTC_0b0a9.vcxproj]
cmTC_0b0a9.vcxproj -> C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeTmp\Release\cmTC_0b0a9.exe
===== END =====
Determining if the include file strings.h exists failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-vzburd
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_159a8.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckIncludeFile.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_159a8.dir\Release\\" /Fd"cmTC_159a8.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-vzburd\CheckIncludeFile.c"
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-vzburd\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'strings.h': No such file or directory [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-vzburd\cmTC_159a8.vcxproj]
Determining if the include file unistd.h exists failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-t0ivvx
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_0f44e.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckIncludeFile.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_0f44e.dir\Release\\" /Fd"cmTC_0f44e.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-t0ivvx\CheckIncludeFile.c"
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-t0ivvx\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-t0ivvx\cmTC_0f44e.vcxproj]
Determining if the posix_memalign exist failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-xtbe8i
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_20f64.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckSymbolExists.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D NDEBUG /D _POSIX_C_SOURCE=200112L /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_20f64.dir\Release\\" /Fd"cmTC_20f64.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-xtbe8i\CheckSymbolExists.c"
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-xtbe8i\CheckSymbolExists.c(8,33): error C2065: 'posix_memalign': undeclared identifier [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-xtbe8i\cmTC_20f64.vcxproj]
File CheckSymbolExists.c:
/* */
#include <stdlib.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef posix_memalign
return ((int*)(&posix_memalign))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the memalign exist failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-p1j1dd
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_04a32.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckSymbolExists.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_04a32.dir\Release\\" /Fd"cmTC_04a32.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-p1j1dd\CheckSymbolExists.c"
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-p1j1dd\CheckSymbolExists.c(8,27): error C2065: 'memalign': undeclared identifier [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-p1j1dd\cmTC_04a32.vcxproj]
File CheckSymbolExists.c:
/* */
#include <malloc.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef memalign
return ((int*)(&memalign))[argc];
#else
(void)argc;
return 0;
#endif
}
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-2yx0sx
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_4bd5e.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D NDEBUG /D CMAKE_HAVE_LIBC_PTHREAD /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_4bd5e.dir\Release\\" /Fd"cmTC_4bd5e.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-2yx0sx\src.c"
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-2yx0sx\src.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-2yx0sx\cmTC_4bd5e.vcxproj]
Source file was:
#include <pthread.h>
static void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-jk364h
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_df23c.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckFunctionExists.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=pthread_create /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_df23c.dir\Release\\" /Fd"cmTC_df23c.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-jk364h\CheckFunctionExists.c"
LINK : fatal error LNK1181: cannot open input file 'pthreads.lib' [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-jk364h\cmTC_df23c.vcxproj]
Determining if the function pthread_create exists in the pthread failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-54gdzr
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_d6684.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckFunctionExists.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=pthread_create /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_d6684.dir\Release\\" /Fd"cmTC_d6684.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-54gdzr\CheckFunctionExists.c"
LINK : fatal error LNK1181: cannot open input file 'pthread.lib' [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-54gdzr\cmTC_d6684.vcxproj]
Determining if the function sgemm_ exists failed with the following output:
Change Dir: C:/Users/dagru/Desktop/work/a/opencv-python/_skbuild/win-amd64-3.9/cmake-build/CMakeFiles/CMakeScratch/TryCompile-0sj5dr
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_e0286.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CheckFunctionExists.c
cl /c /W3 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D CHECK_FUNCTION_EXISTS=sgemm_ /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_e0286.dir\Release\\" /Fd"cmTC_e0286.dir\Release\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj "C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-0sj5dr\CheckFunctionExists.c"
CheckFunctionExists.obj : error LNK2019: unresolved external symbol sgemm_ referenced in function main [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-0sj5dr\cmTC_e0286.vcxproj]
C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-0sj5dr\Release\cmTC_e0286.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\dagru\Desktop\work\a\opencv-python\_skbuild\win-amd64-3.9\cmake-build\CMakeFiles\CMakeScratch\TryCompile-0sj5dr\cmTC_e0286.vcxproj]
Metadata
Metadata
Assignees
Labels
No labels