Help building openCV + contrib libraries using CMake visual studio 2019
Hello, I am trying to build openCV with the contrib libraries but I am having trouble. I have both python 2 and 3 installed via anaconda (I am not sure if I should delete one?). I have the libraries for python 2 and 3 in the path (system environment variables).
When I try and building visual studio I am getting thousands of errors. I am running windows 10 and visual studio 2019.
Can anybody help me with some next steps to try, sorry I've been bashing my head on this for a while.
Many thanks, Richard
This error is in red the rest of the CMake log is below.
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message): CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install directory Call Stack (most recent call first): CMakeLists.txt:967 (include)
CMAKE log:
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363. The CXX compiler identification is MSVC 19.25.28614.0 The C compiler identification is MSVC 19.25.28614.0 Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe - works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe - works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C compile features - done Detected processor: AMD64 Found PythonInterp: C:/DEV/Anaconda2/python.exe (found suitable version "2.7.16", minimum required is "2.7") Found PythonLibs: C:/DEV/Anaconda2/libs/python27.lib (found suitable exact version "2.7.16") Found PythonInterp: C:/DEV/anaconda3/python.exe (found suitable version "3.7.6", minimum required is "3.2") Found PythonLibs: C:/DEV/anaconda3/libs/python37.lib (found suitable exact version "3.7.6") Performing Test HAVE_CXX_FP:PRECISE Performing Test HAVE_CXX_FP:PRECISE - Success Performing Test HAVE_C_FP:PRECISE Performing Test HAVE_C_FP:PRECISE - Success Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp) Performing Test HAVE_CPU_SSE3_SUPPORT - Success Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp) Performing Test HAVE_CPU_SSSE3_SUPPORT - Success Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp) Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp) Performing Test HAVE_CPU_POPCNT_SUPPORT - Success Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp) Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_fp16.cpp) Performing Test HAVE_CXX_ARCH:AVX - Success Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp) Performing Test HAVE_CXX_ARCH:AVX2 - Success Performing Test ...