Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opencv4] opencv features freetype error #23648

Closed
uuiid opened this issue Mar 19, 2022 · 8 comments · Fixed by #27343
Closed

[opencv4] opencv features freetype error #23648

uuiid opened this issue Mar 19, 2022 · 8 comments · Fixed by #27343
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@uuiid
Copy link

uuiid commented Mar 19, 2022

describe
freetype features did not successfully build the opencv_freetype module

Proposed solution
0016-fix-freetype-contrib.patch
FREETYPE_FOUND HARFBUZZ_FOUND variables in cmake are not set correctly

Describe alternatives
0016-fix-freetype-contrib.patch

diff --git a/modules/freetype/CMakeLists.txt b/modules/freetype/CMakeLists.txt
index 6dd4aaf..e734e97 100644
--- a/modules/freetype/CMakeLists.txt
+++ b/modules/freetype/CMakeLists.txt
@@ -3,8 +3,12 @@ if(APPLE_FRAMEWORK)
   ocv_module_disable(freetype)
 endif()
 
-ocv_check_modules(FREETYPE freetype2)
-ocv_check_modules(HARFBUZZ harfbuzz)
+if(WITH_FREETYPE)
+find_package(freetype CONFIG REQUIRED)
+find_package(harfbuzz CONFIG REQUIRED)
+set(FREETYPE_FOUND TRUE)
+set(HARFBUZZ_FOUND TRUE)
+endif()

 if(OPENCV_INITIAL_PASS)
   if(NOT FREETYPE_FOUND)

Additional context

config-x64-windows-out.log ``` [1/2] "C:/Program Files/CMake/bin/cmake.exe" -E chdir "E:/vcpkg/buildtrees/opencv4/x64-windows-rel" "C:/Program Files/CMake/bin/cmake.exe" -S "E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean" "-DOPENCV_SKIP_SYSTEM_PROCESSOR_DETECTION=TRUE" "-DAARCH64=" "-DX86_64=1" "-DX86=" "-DARM=" "-DOpenCV_INSTALL_BINARIES_PREFIX=" "-DOPENCV_BIN_INSTALL_PATH=bin" "-DOPENCV_INCLUDE_INSTALL_PATH=include" "-DOPENCV_LIB_INSTALL_PATH=lib" "-DOPENCV_3P_LIB_INSTALL_PATH=lib" "-DOPENCV_CONFIG_INSTALL_PATH=share/opencv" "-DINSTALL_TO_MANGLED_PATHS=OFF" "-DOPENCV_FFMPEG_USE_FIND_PACKAGE=FFMPEG" "-DOPENCV_FFMPEG_SKIP_BUILD_CHECK=TRUE" "-DCMAKE_DEBUG_POSTFIX=d" "-DOPENCV_DLLVERSION=" "-DOPENCV_DEBUG_POSTFIX=d" "-DOPENCV_GENERATE_SETUPVARS=OFF" "-DBUILD_DOCS=OFF" "-DBUILD_EXAMPLES=OFF" "-Dade_DIR=E:/vcpkg/installed/x64-windows/share/ade" "-DBUILD_JASPER=OFF" "-DBUILD_JPEG=OFF" "-DBUILD_OPENEXR=OFF" "-DBUILD_PNG=OFF" "-DBUILD_TIFF=OFF" "-DBUILD_WEBP=OFF" "-DBUILD_ZLIB=OFF" "-DBUILD_TBB=OFF" "-DBUILD_IPP_IW=OFF" "-DBUILD_ITT=OFF" "-DBUILD_PROTOBUF=OFF" "-DBUILD_opencv_apps=OFF" "-DBUILD_opencv_java=OFF" "-DBUILD_opencv_js=OFF" "-DBUILD_ANDROID_PROJECT=OFF" "-DBUILD_ANDROID_EXAMPLES=OFF" "-DBUILD_PACKAGE=OFF" "-DBUILD_PERF_TESTS=OFF" "-DBUILD_TESTS=OFF" "-DBUILD_WITH_DEBUG_INFO=ON" "-DBUILD_WITH_STATIC_CRT=0" "-DBUILD_JAVA=OFF" "-DCURRENT_INSTALLED_DIR=E:/vcpkg/installed/x64-windows" "-DPROTOBUF_UPDATE_FILES=ON" "-DUPDATE_PROTO_FILES=ON" "-DENABLE_PYLINT=OFF" "-DENABLE_FLAKE8=OFF" "-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_JNI=ON" "-DENABLE_CXX11=ON" "-DOPENCV_DOWNLOAD_PATH=E:/vcpkg/downloads/opencv-cache" "-DOPENCV_EXTRA_MODULES_PATH=E:/vcpkg/buildtrees/opencv4/src/4.5.5-c35cb8696d.clean/modules" "-DOPENCV_OTHER_INSTALL_PATH=share/opencv" "-DWITH_ADE=OFF" "-DWITH_CONTRIB=ON" "-DWITH_CUBLAS=OFF" "-DWITH_CUDA=OFF" "-DWITH_CUDNN=OFF" "-DWITH_EIGEN=OFF" "-DWITH_FFMPEG=ON" "-DWITH_FREETYPE=ON" "-DWITH_GDCM=OFF" "-DWITH_GSTREAMER=OFF" "-DWITH_HALIDE=OFF" "-DWITH_JASPER=OFF" "-DWITH_JPEG=ON" "-DWITH_LAPACK=OFF" "-DOPENCV_ENABLE_NONFREE=OFF" "-DWITH_OPENEXR=OFF" "-DWITH_OPENGL=OFF" "-DWITH_PNG=ON" "-DWITH_QUIRC=ON" "-DBUILD_opencv_sfm=OFF" "-DWITH_TIFF=ON" "-DWITH_VTK=OFF" "-DWITH_WEBP=ON" "-DBUILD_opencv_world=OFF" "-DWITH_GTK=OFF" "-DWITH_QT=OFF" "-DWITH_IPP=OFF" "-DWITH_MATLAB=OFF" "-DWITH_MSMF=ON" "-DWITH_PYTHON=OFF" "-DWITH_OPENMP=OFF" "-DWITH_PROTOBUF=ON" "-DWITH_OPENCLAMDBLAS=OFF" "-DWITH_TBB=OFF" "-DWITH_OPENJPEG=OFF" "-DWITH_CPUFEATURES=OFF" "-DBUILD_opencv_ovis=OFF" "-DBUILD_opencv_dnn=ON" "-DBUILD_opencv_python3=OFF" "-DBUILD_opencv_quality=CMAKE_DEPENDS_IN_PROJECT_ONLY" "-DBUILD_opencv_gapi=ON" "-DBUILD_opencv_rgbd=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=E:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=E:/vcpkg" "-D_VCPKG_INSTALLED_DIR=E:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=E:/vcpkg/packages/opencv4_x64-windows" -- The CXX compiler identification is MSVC 19.31.31104.0 -- The C compiler identification is MSVC 19.31.31104.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detected processor: AMD64 -- 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 HAVE_CXX_ARCH:AVX512 (check file: cmake/checks/cpu_avx512.cpp) -- Performing Test HAVE_CXX_ARCH:AVX512 - Success -- Performing Test HAVE_CPU_BASELINE_FLAGS -- Performing Test HAVE_CPU_BASELINE_FLAGS - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success -- Performing Test HAVE_CXX_W15240 -- Performing Test HAVE_CXX_W15240 - Success -- Performing Test HAVE_C_W15240 -- Performing Test HAVE_C_W15240 - Success -- Looking for malloc.h -- Looking for malloc.h - found -- Looking for _aligned_malloc -- Looking for _aligned_malloc - found -- Found ZLIB: optimized;E:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found suitable version "1.2.11", minimum required is "1.2.3") -- Found JPEG: optimized;E:/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/jpeg.lib (found version "62") -- Found TIFF: optimized;E:/vcpkg/installed/x64-windows/lib/tiff.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (found version "4.3.0") -- Found ZLIB: optimized;E:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") -- Found PNG: optimized;E:/vcpkg/installed/x64-windows/lib/libpng16.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (found version "1.6.37") -- Looking for E:/vcpkg/installed/x64-windows/include/libpng/png.h -- Looking for E:/vcpkg/installed/x64-windows/include/libpng/png.h - not found -- Found Protobuf: E:/vcpkg/installed/x64-windows/tools/protobuf/protoc.exe (found version "3.18.0.0") -- Found FFMPEG: optimized;E:/vcpkg/installed/x64-windows/lib/avdevice.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avdevice.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avfilter.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avfilter.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avformat.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avformat.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avcodec.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avcodec.lib;optimized;E:/vcpkg/installed/x64-windows/lib/swresample.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/swresample.lib;optimized;E:/vcpkg/installed/x64-windows/lib/swscale.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/swscale.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avutil.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avutil.lib -- Looking for mfapi.h -- Looking for mfapi.h - found -- Looking for d3d11_4.h -- Looking for d3d11_4.h - found -- Module opencv_alphamat disabled because the following dependencies are not found: Eigen -- freetype2: NO -- harfbuzz: NO -- Found HDF5: hdf5::hdf5-shared (found version "1.12.1") -- Julia not found. Not compiling Julia Bindings. -- Module opencv_ovis disabled because OGRE3D was not found -- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. -- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake. -- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components. -- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h -- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h -- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags -- Found GIF: E:/vcpkg/installed/x64-windows/lib/gif.lib (found version "5.2.1") -- Found LibArchive: E:/vcpkg/installed/x64-windows/lib/archive.lib (found version "3.5.2") -- Tesseract: YES (ver 4.1.1) -- Allocator metrics storage type: 'long long' -- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake -- opencv_dnn: filter out cuda4dnn source code -- Excluding from source files list: /modules/dnn/layers/layers_common.rvv.cpp -- wechat_qrcode: Download: detect.caffemodel -- wechat_qrcode: Download: detect.prototxt -- wechat_qrcode: Download: sr.caffemodel -- wechat_qrcode: Download: sr.prototxt -- highgui: using builtin backend: WIN32UI -- xfeatures2d/boostdesc: Download: boostdesc_bgm.i -- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i -- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i -- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i -- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i -- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i -- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i -- xfeatures2d/vgg: Download: vgg_generated_48.i -- xfeatures2d/vgg: Download: vgg_generated_64.i -- xfeatures2d/vgg: Download: vgg_generated_80.i -- xfeatures2d/vgg: Download: vgg_generated_120.i -- data: Download: face_landmark_model.dat -- Found 'misc' Python modules from E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/modules/python/package/extra_modules -- Found 'mat_wrapper;utils' Python modules from E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/modules/core/misc/python/package -- -- General configuration for OpenCV 4.5.5 ===================================== -- Version control: unknown -- -- Extra modules: -- Location (extra): E:/vcpkg/buildtrees/opencv4/src/4.5.5-c35cb8696d.clean/modules -- Version control (extra): unknown -- -- Platform: -- Timestamp: 2022-03-19T06:36:24Z -- Host: Windows 10.0.19044 AMD64 -- CMake: 3.22.2 -- CMake generator: Ninja -- CMake build tool: C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe -- MSVC: 1931 -- Configuration: Release -- -- CPU/HW features: -- Baseline: SSE SSE2 SSE3 -- requested: SSE3 -- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX -- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX -- SSE4_1 (14 files): + SSSE3 SSE4_1 -- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 -- FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX -- AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX -- AVX2 (29 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 -- AVX512_SKX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX -- -- C/C++: -- Built as dynamic libs?: YES -- C++ standard: 11 -- C++ Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe (ver 19.31.31104.0) -- C++ flags (Release): /nologo /DWIN32 /D_WINDOWS /W4 /utf-8 /GR /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MD /O2 /Oi /Gy /DNDEBUG /Z7 -- C++ flags (Debug): /nologo /DWIN32 /D_WINDOWS /W4 /utf-8 /GR /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -- C Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe -- C flags (Release): /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /MD /O2 /Oi /Gy /DNDEBUG /Z7 -- C flags (Debug): /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -- Linker flags (Release): /machine:x64 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /debug -- Linker flags (Debug): /machine:x64 /nologo /debug /INCREMENTAL -- ccache: NO -- Precompiled headers: NO -- Extra dependencies: -- 3rdparty dependencies: -- -- OpenCV modules: -- To be built: aruco barcode bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy hdf hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot quality rapid reg saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto -- Disabled: rgbd world -- Disabled by dependency: - -- Unavailable: alphamat cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype gapi java julia matlab ovis python2 python3 sfm ts viz -- Applications: - -- Documentation: NO -- Non-free algorithms: NO -- -- Windows RT support: NO -- -- GUI: WIN32UI -- Win32 UI: YES -- -- Media I/O: -- ZLib: optimized E:/vcpkg/installed/x64-windows/lib/zlib.lib debug E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (ver 1.2.11) -- JPEG: optimized E:/vcpkg/installed/x64-windows/lib/jpeg.lib debug E:/vcpkg/installed/x64-windows/debug/lib/jpeg.lib (ver 62) -- WEBP: optimized E:/vcpkg/installed/x64-windows/lib/webp.lib debug E:/vcpkg/installed/x64-windows/debug/lib/webpd.lib (ver 1.2.1) -- PNG: optimized E:/vcpkg/installed/x64-windows/lib/libpng16.lib debug E:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (ver 1.6.37) -- TIFF: optimized E:/vcpkg/installed/x64-windows/lib/tiff.lib debug E:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (ver 42 / 4.3.0) -- HDR: YES -- SUNRASTER: YES -- PXM: YES -- PFM: YES -- -- Video I/O: -- DC1394: NO -- FFMPEG: YES (find_package) -- avcodec: YES (58.134.100) -- avformat: YES (58.76.100) -- avutil: YES (56.70.100) -- swscale: YES (5.9.100) -- avresample: NO -- DirectShow: YES -- Media Foundation: YES -- DXVA: YES -- -- Parallel framework: Concurrency -- -- Trace: YES (built-in) -- -- Other third-party libraries: -- Custom HAL: NO -- Protobuf: optimized E:/vcpkg/installed/x64-windows/bin/libprotobuf.dll debug E:/vcpkg/installed/x64-windows/debug/bin/libprotobufd.dll version (3.18.0.0) -- -- OpenCL: YES (NVD3D11) -- Include path: E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load -- -- Python (for build): NO -- -- Install to: E:/vcpkg/packages/opencv4_x64-windows -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: E:/vcpkg/buildtrees/opencv4/x64-windows-rel [2/2] "C:/Program Files/CMake/bin/cmake.exe" -E chdir "E:/vcpkg/buildtrees/opencv4/x64-windows-dbg" "C:/Program Files/CMake/bin/cmake.exe" -S "E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean" "-DOPENCV_SKIP_SYSTEM_PROCESSOR_DETECTION=TRUE" "-DAARCH64=" "-DX86_64=1" "-DX86=" "-DARM=" "-DOpenCV_INSTALL_BINARIES_PREFIX=" "-DOPENCV_BIN_INSTALL_PATH=bin" "-DOPENCV_INCLUDE_INSTALL_PATH=include" "-DOPENCV_LIB_INSTALL_PATH=lib" "-DOPENCV_3P_LIB_INSTALL_PATH=lib" "-DOPENCV_CONFIG_INSTALL_PATH=share/opencv" "-DINSTALL_TO_MANGLED_PATHS=OFF" "-DOPENCV_FFMPEG_USE_FIND_PACKAGE=FFMPEG" "-DOPENCV_FFMPEG_SKIP_BUILD_CHECK=TRUE" "-DCMAKE_DEBUG_POSTFIX=d" "-DOPENCV_DLLVERSION=" "-DOPENCV_DEBUG_POSTFIX=d" "-DOPENCV_GENERATE_SETUPVARS=OFF" "-DBUILD_DOCS=OFF" "-DBUILD_EXAMPLES=OFF" "-Dade_DIR=E:/vcpkg/installed/x64-windows/share/ade" "-DBUILD_JASPER=OFF" "-DBUILD_JPEG=OFF" "-DBUILD_OPENEXR=OFF" "-DBUILD_PNG=OFF" "-DBUILD_TIFF=OFF" "-DBUILD_WEBP=OFF" "-DBUILD_ZLIB=OFF" "-DBUILD_TBB=OFF" "-DBUILD_IPP_IW=OFF" "-DBUILD_ITT=OFF" "-DBUILD_PROTOBUF=OFF" "-DBUILD_opencv_apps=OFF" "-DBUILD_opencv_java=OFF" "-DBUILD_opencv_js=OFF" "-DBUILD_ANDROID_PROJECT=OFF" "-DBUILD_ANDROID_EXAMPLES=OFF" "-DBUILD_PACKAGE=OFF" "-DBUILD_PERF_TESTS=OFF" "-DBUILD_TESTS=OFF" "-DBUILD_WITH_DEBUG_INFO=ON" "-DBUILD_WITH_STATIC_CRT=0" "-DBUILD_JAVA=OFF" "-DCURRENT_INSTALLED_DIR=E:/vcpkg/installed/x64-windows" "-DPROTOBUF_UPDATE_FILES=ON" "-DUPDATE_PROTO_FILES=ON" "-DENABLE_PYLINT=OFF" "-DENABLE_FLAKE8=OFF" "-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_JNI=ON" "-DENABLE_CXX11=ON" "-DOPENCV_DOWNLOAD_PATH=E:/vcpkg/downloads/opencv-cache" "-DOPENCV_EXTRA_MODULES_PATH=E:/vcpkg/buildtrees/opencv4/src/4.5.5-c35cb8696d.clean/modules" "-DOPENCV_OTHER_INSTALL_PATH=share/opencv" "-DWITH_ADE=OFF" "-DWITH_CONTRIB=ON" "-DWITH_CUBLAS=OFF" "-DWITH_CUDA=OFF" "-DWITH_CUDNN=OFF" "-DWITH_EIGEN=OFF" "-DWITH_FFMPEG=ON" "-DWITH_FREETYPE=ON" "-DWITH_GDCM=OFF" "-DWITH_GSTREAMER=OFF" "-DWITH_HALIDE=OFF" "-DWITH_JASPER=OFF" "-DWITH_JPEG=ON" "-DWITH_LAPACK=OFF" "-DOPENCV_ENABLE_NONFREE=OFF" "-DWITH_OPENEXR=OFF" "-DWITH_OPENGL=OFF" "-DWITH_PNG=ON" "-DWITH_QUIRC=ON" "-DBUILD_opencv_sfm=OFF" "-DWITH_TIFF=ON" "-DWITH_VTK=OFF" "-DWITH_WEBP=ON" "-DBUILD_opencv_world=OFF" "-DWITH_GTK=OFF" "-DWITH_QT=OFF" "-DWITH_IPP=OFF" "-DWITH_MATLAB=OFF" "-DWITH_MSMF=ON" "-DWITH_PYTHON=OFF" "-DWITH_OPENMP=OFF" "-DWITH_PROTOBUF=ON" "-DWITH_OPENCLAMDBLAS=OFF" "-DWITH_TBB=OFF" "-DWITH_OPENJPEG=OFF" "-DWITH_CPUFEATURES=OFF" "-DBUILD_opencv_ovis=OFF" "-DBUILD_opencv_dnn=ON" "-DBUILD_opencv_python3=OFF" "-DBUILD_opencv_quality=CMAKE_DEPENDS_IN_PROJECT_ONLY" "-DBUILD_opencv_gapi=ON" "-DBUILD_opencv_rgbd=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=E:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=E:/vcpkg" "-D_VCPKG_INSTALLED_DIR=E:/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=E:/vcpkg/packages/opencv4_x64-windows/debug" -- The CXX compiler identification is MSVC 19.31.31104.0 -- The C compiler identification is MSVC 19.31.31104.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detected processor: AMD64 -- 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 HAVE_CXX_ARCH:AVX512 (check file: cmake/checks/cpu_avx512.cpp) -- Performing Test HAVE_CXX_ARCH:AVX512 - Success -- Performing Test HAVE_CPU_BASELINE_FLAGS -- Performing Test HAVE_CPU_BASELINE_FLAGS - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success -- Performing Test HAVE_CXX_W15240 -- Performing Test HAVE_CXX_W15240 - Success -- Performing Test HAVE_C_W15240 -- Performing Test HAVE_C_W15240 - Success -- Looking for malloc.h -- Looking for malloc.h - found -- Looking for _aligned_malloc -- Looking for _aligned_malloc - found -- Found ZLIB: optimized;E:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found suitable version "1.2.11", minimum required is "1.2.3") -- Found JPEG: optimized;E:/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/jpeg.lib (found version "62") -- Found TIFF: optimized;E:/vcpkg/installed/x64-windows/lib/tiff.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (found version "4.3.0") -- Found ZLIB: optimized;E:/vcpkg/installed/x64-windows/lib/zlib.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (found version "1.2.11") -- Found PNG: optimized;E:/vcpkg/installed/x64-windows/lib/libpng16.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (found version "1.6.37") -- Looking for E:/vcpkg/installed/x64-windows/include/libpng/png.h -- Looking for E:/vcpkg/installed/x64-windows/include/libpng/png.h - not found -- Found Protobuf: E:/vcpkg/installed/x64-windows/tools/protobuf/protoc.exe (found version "3.18.0.0") -- Found FFMPEG: optimized;E:/vcpkg/installed/x64-windows/lib/avdevice.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avdevice.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avfilter.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avfilter.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avformat.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avformat.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avcodec.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avcodec.lib;optimized;E:/vcpkg/installed/x64-windows/lib/swresample.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/swresample.lib;optimized;E:/vcpkg/installed/x64-windows/lib/swscale.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/swscale.lib;optimized;E:/vcpkg/installed/x64-windows/lib/avutil.lib;debug;E:/vcpkg/installed/x64-windows/debug/lib/avutil.lib -- Looking for mfapi.h -- Looking for mfapi.h - found -- Looking for d3d11_4.h -- Looking for d3d11_4.h - found -- Module opencv_alphamat disabled because the following dependencies are not found: Eigen -- freetype2: NO -- harfbuzz: NO -- Found HDF5: hdf5::hdf5-shared (found version "1.12.1") -- Julia not found. Not compiling Julia Bindings. -- Module opencv_ovis disabled because OGRE3D was not found -- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. -- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake. -- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components. -- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h -- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h -- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags -- Found GIF: E:/vcpkg/installed/x64-windows/debug/lib/gif.lib (found version "5.2.1") -- Found LibArchive: E:/vcpkg/installed/x64-windows/debug/lib/archive.lib (found version "3.5.2") -- Tesseract: YES (ver 4.1.1) -- Allocator metrics storage type: 'long long' -- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake -- opencv_dnn: filter out cuda4dnn source code -- Excluding from source files list: /modules/dnn/layers/layers_common.rvv.cpp -- wechat_qrcode: Download: detect.caffemodel -- wechat_qrcode: Download: detect.prototxt -- wechat_qrcode: Download: sr.caffemodel -- wechat_qrcode: Download: sr.prototxt -- highgui: using builtin backend: WIN32UI -- xfeatures2d/boostdesc: Download: boostdesc_bgm.i -- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i -- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i -- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i -- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i -- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i -- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i -- xfeatures2d/vgg: Download: vgg_generated_48.i -- xfeatures2d/vgg: Download: vgg_generated_64.i -- xfeatures2d/vgg: Download: vgg_generated_80.i -- xfeatures2d/vgg: Download: vgg_generated_120.i -- data: Download: face_landmark_model.dat -- Found 'misc' Python modules from E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/modules/python/package/extra_modules -- Found 'mat_wrapper;utils' Python modules from E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/modules/core/misc/python/package -- -- General configuration for OpenCV 4.5.5 ===================================== -- Version control: unknown -- -- Extra modules: -- Location (extra): E:/vcpkg/buildtrees/opencv4/src/4.5.5-c35cb8696d.clean/modules -- Version control (extra): unknown -- -- Platform: -- Timestamp: 2022-03-19T06:36:26Z -- Host: Windows 10.0.19044 AMD64 -- CMake: 3.22.2 -- CMake generator: Ninja -- CMake build tool: C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe -- MSVC: 1931 -- Configuration: Debug -- -- CPU/HW features: -- Baseline: SSE SSE2 SSE3 -- requested: SSE3 -- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX -- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX -- SSE4_1 (14 files): + SSSE3 SSE4_1 -- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 -- FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX -- AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX -- AVX2 (29 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 -- AVX512_SKX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX -- -- C/C++: -- Built as dynamic libs?: YES -- C++ standard: 11 -- C++ Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe (ver 19.31.31104.0) -- C++ flags (Release): /nologo /DWIN32 /D_WINDOWS /W4 /utf-8 /GR /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MD /O2 /Oi /Gy /DNDEBUG /Z7 -- C++ flags (Debug): /nologo /DWIN32 /D_WINDOWS /W4 /utf-8 /GR /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -- C Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.31.31103/bin/Hostx64/x64/cl.exe -- C flags (Release): /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /MD /O2 /Oi /Gy /DNDEBUG /Z7 -- C flags (Debug): /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /FS /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -- Linker flags (Release): /machine:x64 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /debug -- Linker flags (Debug): /machine:x64 /nologo /debug /INCREMENTAL -- ccache: NO -- Precompiled headers: NO -- Extra dependencies: -- 3rdparty dependencies: -- -- OpenCV modules: -- To be built: aruco barcode bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy hdf hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot quality rapid reg saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto -- Disabled: rgbd world -- Disabled by dependency: - -- Unavailable: alphamat cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype gapi java julia matlab ovis python2 python2 python3 sfm ts viz -- Applications: - -- Documentation: NO -- Non-free algorithms: NO -- -- Windows RT support: NO -- -- GUI: WIN32UI -- Win32 UI: YES -- -- Media I/O: -- ZLib: optimized E:/vcpkg/installed/x64-windows/lib/zlib.lib debug E:/vcpkg/installed/x64-windows/debug/lib/zlibd.lib (ver 1.2.11) -- JPEG: optimized E:/vcpkg/installed/x64-windows/lib/jpeg.lib debug E:/vcpkg/installed/x64-windows/debug/lib/jpeg.lib (ver 62) -- WEBP: optimized E:/vcpkg/installed/x64-windows/lib/webp.lib debug E:/vcpkg/installed/x64-windows/debug/lib/webpd.lib (ver 1.2.1) -- PNG: optimized E:/vcpkg/installed/x64-windows/lib/libpng16.lib debug E:/vcpkg/installed/x64-windows/debug/lib/libpng16d.lib (ver 1.6.37) -- TIFF: optimized E:/vcpkg/installed/x64-windows/lib/tiff.lib debug E:/vcpkg/installed/x64-windows/debug/lib/tiffd.lib (ver 42 / 4.3.0) -- HDR: YES -- SUNRASTER: YES -- PXM: YES -- PFM: YES -- -- Video I/O: -- DC1394: NO -- FFMPEG: YES (find_package) -- avcodec: YES (58.134.100) -- avformat: YES (58.76.100) -- avutil: YES (56.70.100) -- swscale: YES (5.9.100) -- avresample: NO -- DirectShow: YES -- Media Foundation: YES -- DXVA: YES -- -- Parallel framework: Concurrency -- -- Trace: YES (built-in) -- -- Other third-party libraries: -- Custom HAL: NO -- Protobuf: optimized E:/vcpkg/installed/x64-windows/bin/libprotobuf.dll debug E:/vcpkg/installed/x64-windows/debug/bin/libprotobufd.dll version (3.18.0.0) -- -- OpenCL: YES (NVD3D11) -- Include path: E:/vcpkg/buildtrees/opencv4/src/4.5.5-f2b5f31c0d.clean/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load -- -- Python (for build): NO -- -- Install to: E:/vcpkg/packages/opencv4_x64-windows/debug -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: E:/vcpkg/buildtrees/opencv4/x64-windows-dbg
</details>
@LilyWangLL LilyWangLL added the category:port-bug The issue is with a library, which is something the port should already support label Mar 21, 2022
@LilyWangLL
Copy link
Contributor

LilyWangLL commented Apr 13, 2022

Change to the following codes, does this issue will be fixed? I install opencv4[freetype]:x64-windows locally, it install succeed. And I can't find this information in my config log.

-- freetype2:   NO
-- harfbuzz:    NO
diff --git a/modules/freetype/CMakeLists.txt b/modules/freetype/CMakeLists.txt
index 6dd4aaf..e734e97 100644
--- a/modules/freetype/CMakeLists.txt
+++ b/modules/freetype/CMakeLists.txt
@@ -3,8 +5,10 @@ if(APPLE_FRAMEWORK)
   ocv_module_disable(freetype)
 endif()
 
-ocv_check_modules(FREETYPE freetype2)
-ocv_check_modules(HARFBUZZ harfbuzz)
+if(WITH_FREETYPE)
+find_package(freetype2 NAMES freetype)
+find_package(harfbuzz NAMES harfbuzz)
+endif()

 if(OPENCV_INITIAL_PASS)
   if(NOT FREETYPE_FOUND)

cc @cenit

@cenit
Copy link
Contributor

cenit commented Apr 15, 2022

i'll look at it next week

@duanqn
Copy link
Contributor

duanqn commented May 19, 2022

Hi, did anyone take a look at this? I just encountered this problem and would appreciate a fix/workaround.

@trantuan-20048607
Copy link

It seems like this problem has not been solved. I found this patch in the ports folder, but I still encountered errors.

@tuduongquyet
Copy link

It occurs with conan also

@toothache
Copy link
Member

toothache commented Oct 19, 2022

I still encountered issues during build opencv-freetype. After some investigation, I found that there's casing issue in 0016-fix-freetype-contrib.patch.

Since CMake find_package is case insensitive, both find_package(freetype ...) and find_package(FREETYPE ...) will succeed. However, it will then populate variables with different casing. However, the opencv-freetype CMakeLists.txt assumes upper casing which is different with what we have.
Note: Whether CMake find_package is case insensitive or not depends on the underly OS system. My windows machine is case insensitive and my linux machine is case sensitive.

After applying the patch 0016-fix-freetype-contrib.patch, CMakeLists will populate freetype_FOUND and harfbuzz_FOUND instead of the upper casing ones. See opencv-freetype code below:

https://github.com/opencv/opencv_contrib/blob/ff5da1e154ea6e41c2cc77ca98574b3b19318848/modules/freetype/CMakeLists.txt#L9-L21

I verified the fix on my windows machine and submitted a PR to address this issue. #27322

Anyone can help review the change?

@dg0yt
Copy link
Contributor

dg0yt commented Oct 20, 2022

Since CMake find_package is case insensitive, both find_package(freetype ...) and find_package(FREETYPE ...) will succeed. However, it will then populate variables with different casing. However, the opencv-freetype CMakeLists.txt assumes upper casing which is different with what we have. Note: Whether CMake find_package is case insensitive or not depends on the underly OS system. My windows machine is case insensitive and my linux machine is case sensitive.

It is not so easy.

  • There are case-sensitive and case-insensitive file systems, regardless of operating system.
  • Config files named <Pkg>Config.cmake are matched case-sensitively.
  • Config files named <Pkg>-config.cmake are matched case-insensitively.
  • The directory <Pkg> containing the config is matched case-insensitively.
  • find_package(PkG) sets <PkG_FOUND (same case).
  • If you have case-sensitive config files for <Pkg> but only for care for the spelling of <PkG>_FOUND, you can do
    find_package(<PkG> NAMES <Pkg>)

@dg0yt
Copy link
Contributor

dg0yt commented Oct 20, 2022

Related/duplicate of: #5383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
8 participants