Error when trying to generate file using CVmake

I get the error: “Error in configuration process, project files may be invalid.”

I am new with openCV and have been struggling for a few days :-p

I am attempting to install what i believe is the newest openCV (with opencv_world440.lib ) on a windows machine

My error file is below-- any help would be greatly appreciated!!

Determining if the function fseeko exists failed with the following output:
Change Dir: C:/Users/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_44827.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27048 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

CheckFunctionExists.c

cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /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 “CMAKE_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_44827.dir\Debug\" /Fd"cmTC_44827.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /bigobj “C:\Program Files\CMake\share\cmake-3.23\Modules\CheckFunctionExists.c”

CheckFunctionExists.obj : error LNK2019: unresolved external symbol fseeko referenced in function main [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_44827.vcxproj]

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\Debug\cmTC_44827.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_44827.vcxproj]

Determining size of off64_t failed with the following output:
Change Dir: C:/Users/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_b7991.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27048 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

OFF64_T.c

cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D “CMAKE_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_b7991.dir\Debug\" /Fd"cmTC_b7991.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /bigobj C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CheckTypeSize\OFF64_T.c

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CheckTypeSize\OFF64_T.c(29): error C2065: ‘off64_t’: undeclared identifier [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_b7991.vcxproj]

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CheckTypeSize\OFF64_T.c(30): error C2065: ‘off64_t’: undeclared identifier [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_b7991.vcxproj]

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CheckTypeSize\OFF64_T.c(31): error C2065: ‘off64_t’: undeclared identifier [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_b7991.vcxproj]

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CheckTypeSize\OFF64_T.c(32): error C2065: ‘off64_t’: undeclared identifier [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_b7991.vcxproj]

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CheckTypeSize\OFF64_T.c(33): error C2065: ‘off64_t’: undeclared identifier [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_b7991.vcxproj]

C:/Users/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CheckTypeSize/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/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_e2a04.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27048 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

CheckFunctionExists.c

cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /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 “CMAKE_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_e2a04.dir\Debug\" /Fd"cmTC_e2a04.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /bigobj “C:\Program Files\CMake\share\cmake-3.23\Modules\CheckFunctionExists.c”

C:\Program Files\CMake\share\cmake-3.23\Modules\CheckFunctionExists.c(7): warning C4391: ‘char memmove(void)’: incorrect return type for intrinsic function, expected ‘void’ [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_e2a04.vcxproj]

C:\Program Files\CMake\share\cmake-3.23\Modules\CheckFunctionExists.c(7): warning C4392: ‘char memmove(void)’: incorrect number of arguments for intrinsic function, expected ‘3’ arguments [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_e2a04.vcxproj]

C:\Program Files\CMake\share\cmake-3.23\Modules\CheckFunctionExists.c(17): error C2168: ‘memmove’: too few actual parameters for intrinsic function [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_e2a04.vcxproj]

Determining if the function strcasecmp exists failed with the following output:
Change Dir: C:/Users/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_4171d.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27048 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

CheckFunctionExists.c

cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /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 “CMAKE_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_4171d.dir\Debug\" /Fd"cmTC_4171d.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /bigobj “C:\Program Files\CMake\share\cmake-3.23\Modules\CheckFunctionExists.c”

CheckFunctionExists.obj : error LNK2019: unresolved external symbol strcasecmp referenced in function main [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_4171d.vcxproj]

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\Debug\cmTC_4171d.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_4171d.vcxproj]

Build output check failed:
Regex: ‘unknown .*option’
Output line: ‘cl : Command line warning D9002: ignoring unknown option ‘-std=c99’ [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_c9904.vcxproj]

Compilation failed:
source file: ‘C:/Users/holdb/OneDrive/Documents/opencv_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/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_c9904.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27048 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

src.c

cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D “CMAKE_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c9904.dir\Debug\" /Fd"cmTC_c9904.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /bigobj /bigobj -std=c99 C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\src.c

cl : Command line warning D9002: ignoring unknown option ‘-std=c99’ [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_c9904.vcxproj]

cmTC_c9904.vcxproj → C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\Debug\cmTC_c9904.exe

===== END =====

Determining if the function sgemm_ exists failed with the following output:
Change Dir: C:/Users/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_42f88.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27048 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

CheckFunctionExists.c

cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /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 “CMAKE_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_42f88.dir\Debug\" /Fd"cmTC_42f88.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /bigobj “C:\Program Files\CMake\share\cmake-3.23\Modules\CheckFunctionExists.c”

CheckFunctionExists.obj : error LNK2019: unresolved external symbol sgemm_ referenced in function main [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_42f88.vcxproj]

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\Debug\cmTC_42f88.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_42f88.vcxproj]

Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Users/holdb/OneDrive/Documents/opencv_build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_56888.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27048 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

CheckIncludeFile.c

cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /Oi /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D “CMAKE_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_56888.dir\Debug\" /Fd"cmTC_56888.dir\Debug\vc141.pdb" /Gd /TC /errorReport:queue /bigobj C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\CheckIncludeFile.c

C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: ‘pthread.h’: No such file or directory [C:\Users\holdb\OneDrive\Documents\opencv_build\CMakeFiles\CMakeTmp\cmTC_56888.vcxproj]

unfortunately, the error log is not relevant (it’s only internal compiler checks)
show us the console output from cmake instead, please
(the one that says: “Error in configuration process, project files may be invalid.”)

I am attempting to install what i believe is the newest openCV (with opencv_world440.lib )

not quite, that would be 4.5.5