conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
965 stars 1.77k forks source link

[opencv] opencv_freetype/4.5.5: opencv_freetype not available #11256

Open tuduongquyet opened 2 years ago

tuduongquyet commented 2 years ago

Package and Environment Details

Conan profile

[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 compiler=Visual Studio compiler.version=16 build_type=Release [options] [conf] [build_requires] [env]

Steps to reproduce

Logs

Error log ``` 6/17/2022 1:36:40 PM: -- harfbuzz: NO 6/17/2022 1:36:40 PM: -- Julia not found. Not compiling Julia Bindings. 6/17/2022 1:36:41 PM: -- Module opencv_ovis disabled because OGRE3D was not found 6/17/2022 1:36:42 PM: -- Conan: Using autogenerated Findgflags.cmake 6/17/2022 1:36:42 PM: -- Library gflags_nothreads_static found C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:42 PM: -- Found: C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:42 PM: -- Conan: Using autogenerated Findglog.cmake 6/17/2022 1:36:42 PM: -- Library glog found C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:42 PM: -- Found: C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:42 PM: -- Dependency gflags already found 6/17/2022 1:36:42 PM: -- Conan: Using autogenerated Findgflags.cmake 6/17/2022 1:36:42 PM: -- Library gflags_nothreads_static found C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:42 PM: -- Skipping already existing target: CONAN_LIB::gflags_gflags_nothreads_static 6/17/2022 1:36:42 PM: -- Found: C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:42 PM: -- Conan: Using autogenerated Findglog.cmake 6/17/2022 1:36:42 PM: -- Library glog found C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:42 PM: -- Skipping already existing target: CONAN_LIB::glog_glog 6/17/2022 1:36:42 PM: -- Found: C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:42 PM: -- CERES support is disabled. Ceres Solver for reconstruction API is required. 6/17/2022 1:36:42 PM: -- Tesseract: NO 6/17/2022 1:36:43 PM: -- Allocator metrics storage type: 'long long' 6/17/2022 1:36:46 PM: -- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/.conan/13eb24/1/source_subfolder/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake 6/17/2022 1:36:46 PM: -- opencv_dnn: filter out ocl4dnn source code 6/17/2022 1:36:46 PM: -- Excluding from source files list: /modules/dnn/layers/layers_common.rvv.cpp 6/17/2022 1:36:47 PM: -- imgcodecs: Jasper codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/14058 6/17/2022 1:36:48 PM: -- Conan: Using autogenerated FindIconv.cmake 6/17/2022 1:36:48 PM: -- Library iconv found C:/Users/Conan/.conan/data/libiconv/1.16/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/iconv.lib 6/17/2022 1:36:48 PM: -- Skipping already existing target: CONAN_LIB::Iconv_iconv 6/17/2022 1:36:48 PM: -- Found: C:/Users/Conan/.conan/data/libiconv/1.16/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/iconv.lib 6/17/2022 1:36:48 PM: -- Library charset found C:/Users/Conan/.conan/data/libiconv/1.16/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/charset.lib 6/17/2022 1:36:48 PM: -- Skipping already existing target: CONAN_LIB::Iconv_charset 6/17/2022 1:36:48 PM: -- Found: C:/Users/Conan/.conan/data/libiconv/1.16/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/charset.lib 6/17/2022 1:36:49 PM: -- highgui: using builtin backend: WIN32UI 6/17/2022 1:36:51 PM: -- Conan: Using autogenerated Findgflags.cmake 6/17/2022 1:36:51 PM: -- Library gflags_nothreads_static found C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:51 PM: -- Found: C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:51 PM: -- Conan: Using autogenerated Findglog.cmake 6/17/2022 1:36:51 PM: -- Library glog found C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:51 PM: -- Found: C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:51 PM: -- Dependency gflags already found 6/17/2022 1:36:51 PM: -- Conan: Using autogenerated Findgflags.cmake 6/17/2022 1:36:51 PM: -- Library gflags_nothreads_static found C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:51 PM: -- Skipping already existing target: CONAN_LIB::gflags_gflags_nothreads_static 6/17/2022 1:36:51 PM: -- Found: C:/Users/Conan/.conan/data/gflags/2.2.2/_/_/package/276ecda833039958fbea98273ce18f54031274b8/lib/gflags_nothreads_static.lib 6/17/2022 1:36:51 PM: -- Conan: Using autogenerated Findglog.cmake 6/17/2022 1:36:51 PM: -- Library glog found C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:51 PM: -- Skipping already existing target: CONAN_LIB::glog_glog 6/17/2022 1:36:51 PM: -- Found: C:/Users/Conan/.conan/data/glog/0.5.0/_/_/package/7388bbc133673b4a6d4abbc3dc58a3c2c9fc3fa4/lib/glog.lib 6/17/2022 1:36:51 PM: -- CERES support is disabled. Ceres Solver for reconstruction API is required. 6/17/2022 1:36:51 PM: -- Building with NVIDIA Optical Flow API 2.0 6/17/2022 1:36:52 PM: -- Found 'misc' Python modules from C:/.conan/13eb24/1/source_subfolder/modules/python/package/extra_modules 6/17/2022 1:36:52 PM: -- Found 'mat_wrapper;utils' Python modules from C:/.conan/13eb24/1/source_subfolder/modules/core/misc/python/package 6/17/2022 1:36:52 PM: -- Found 'gapi' Python modules from C:/.conan/13eb24/1/source_subfolder/modules/gapi/misc/python/package 6/17/2022 1:36:52 PM: -- 6/17/2022 1:36:52 PM: -- General configuration for OpenCV 4.5.5 ===================================== 6/17/2022 1:36:52 PM: -- Version control: unknown 6/17/2022 1:36:52 PM: -- 6/17/2022 1:36:52 PM: -- Extra modules: 6/17/2022 1:36:56 PM: -- Location (extra): C:/.conan/13eb24/1/contrib/modules 6/17/2022 1:36:56 PM: -- Version control (extra): unknown 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Platform: 6/17/2022 1:36:56 PM: -- Timestamp: 2022-06-17T05:45:44Z 6/17/2022 1:36:56 PM: -- Host: Windows 10.0.19044 AMD64 6/17/2022 1:36:56 PM: -- CMake: 3.19.1 6/17/2022 1:36:56 PM: -- CMake generator: Visual Studio 16 2019 6/17/2022 1:36:56 PM: -- CMake build tool: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe 6/17/2022 1:36:56 PM: -- MSVC: 1928 6/17/2022 1:36:56 PM: -- Configuration: Debug Release MinSizeRel RelWithDebInfo 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- CPU/HW features: 6/17/2022 1:36:56 PM: -- Baseline: SSE SSE2 SSE3 6/17/2022 1:36:56 PM: -- requested: SSE3 6/17/2022 1:36:56 PM: -- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX 6/17/2022 1:36:56 PM: -- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX 6/17/2022 1:36:56 PM: -- SSE4_1 (16 files): + SSSE3 SSE4_1 6/17/2022 1:36:56 PM: -- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 6/17/2022 1:36:56 PM: -- FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX 6/17/2022 1:36:56 PM: -- AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX 6/17/2022 1:36:56 PM: -- AVX2 (31 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 6/17/2022 1:36:56 PM: -- AVX512_SKX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- C/C++: 6/17/2022 1:36:56 PM: -- Built as dynamic libs?: YES 6/17/2022 1:36:56 PM: -- C++ standard: 11 6/17/2022 1:36:56 PM: -- C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe (ver 19.28.29336.0) 6/17/2022 1:36:56 PM: -- C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /MP8 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MD /O2 /Ob2 /DNDEBUG 6/17/2022 1:36:56 PM: -- C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /MP8 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MD /Zi /Ob0 /Od /RTC1 6/17/2022 1:36:56 PM: -- C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe 6/17/2022 1:36:56 PM: -- C flags (Release): /DWIN32 /D_WINDOWS /W3 /MP8 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /MD /O2 /Ob2 /DNDEBUG 6/17/2022 1:36:56 PM: -- C flags (Debug): /DWIN32 /D_WINDOWS /W3 /MP8 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /MD /Zi /Ob0 /Od /RTC1 6/17/2022 1:36:56 PM: -- Linker flags (Release): /machine:x64 /INCREMENTAL:NO 6/17/2022 1:36:56 PM: -- Linker flags (Debug): /machine:x64 /debug /INCREMENTAL 6/17/2022 1:36:56 PM: -- ccache: NO 6/17/2022 1:36:56 PM: -- Precompiled headers: YES 6/17/2022 1:36:56 PM: -- Extra dependencies: cudart_static.lib nppc.lib nppial.lib nppicc.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cudnn.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.3/lib/x64 6/17/2022 1:36:56 PM: -- 3rdparty dependencies: 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- OpenCV modules: 6/17/2022 1:36:56 PM: -- To be built: alphamat aruco barcode bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot quality rapid reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto 6/17/2022 1:36:56 PM: -- Disabled: python_tests world 6/17/2022 1:36:56 PM: -- Disabled by dependency: - 6/17/2022 1:36:56 PM: -- Unavailable: cvv freetype hdf java julia matlab ovis python2 python3 ts viz 6/17/2022 1:36:56 PM: -- Applications: - 6/17/2022 1:36:56 PM: -- Documentation: NO 6/17/2022 1:36:56 PM: -- Non-free algorithms: NO 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Windows RT support: NO 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- GUI: WIN32UI 6/17/2022 1:36:56 PM: -- Win32 UI: YES 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Media I/O: 6/17/2022 1:36:56 PM: -- ZLib: C:/Users/Conan/.conan/data/zlib/1.2.12/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/zlib.lib (ver ) 6/17/2022 1:36:56 PM: -- JPEG: (ver 90) 6/17/2022 1:36:56 PM: -- PNG: (ver ..) 6/17/2022 1:36:56 PM: -- TIFF: (ver 42 / 4.3.0) 6/17/2022 1:36:56 PM: -- JPEG 2000: (ver 2.0.33) 6/17/2022 1:36:56 PM: -- OpenEXR: C:/Users/Conan/.conan/data/openexr/2.5.7/_/_/package/d140711d95cc16a85766a8fc3a551dfafe84cf63/lib/Imath-2_5.lib C:/Users/Conan/.conan/data/openexr/2.5.7/_/_/package/d140711d95cc16a85766a8fc3a551dfafe84cf63/lib/IlmImf-2_5.lib C:/Users/Conan/.conan/data/openexr/2.5.7/_/_/package/d140711d95cc16a85766a8fc3a551dfafe84cf63/lib/Iex-2_5.lib C:/Users/Conan/.conan/data/openexr/2.5.7/_/_/package/d140711d95cc16a85766a8fc3a551dfafe84cf63/lib/Half-2_5.lib C:/Users/Conan/.conan/data/openexr/2.5.7/_/_/package/d140711d95cc16a85766a8fc3a551dfafe84cf63/lib/IlmThread-2_5.lib (ver 2_5) 6/17/2022 1:36:56 PM: -- HDR: NO 6/17/2022 1:36:56 PM: -- SUNRASTER: NO 6/17/2022 1:36:56 PM: -- PXM: NO 6/17/2022 1:36:56 PM: -- PFM: NO 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Video I/O: 6/17/2022 1:36:56 PM: -- FFMPEG: YES (find_package) 6/17/2022 1:36:56 PM: -- avcodec: YES (58.134.100) 6/17/2022 1:36:56 PM: -- avformat: YES (58.76.100) 6/17/2022 1:36:56 PM: -- avutil: YES (56.70.100) 6/17/2022 1:36:56 PM: -- swscale: YES (5.9.100) 6/17/2022 1:36:56 PM: -- avresample: YES (4.4) 6/17/2022 1:36:56 PM: -- DirectShow: YES 6/17/2022 1:36:56 PM: -- Media Foundation: YES 6/17/2022 1:36:56 PM: -- DXVA: YES 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Parallel framework: Concurrency 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Trace: YES (built-in) 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Other third-party libraries: 6/17/2022 1:36:56 PM: -- Intel IPP: 2020.0.0 Gold [2020.0.0] 6/17/2022 1:36:56 PM: -- at: C:/.conan/13eb24/1/build_subfolder/source_subfolder/3rdparty/ippicv/ippicv_win/icv 6/17/2022 1:36:56 PM: -- Intel IPP IW: sources (2020.0.0) 6/17/2022 1:36:56 PM: -- at: C:/.conan/13eb24/1/build_subfolder/source_subfolder/3rdparty/ippicv/ippicv_win/iw 6/17/2022 1:36:56 PM: -- Eigen: YES (ver ..) 6/17/2022 1:36:56 PM: -- Custom HAL: NO 6/17/2022 1:36:56 PM: -- Protobuf: C:/.conan/00057c/1/lib/libprotoc.lib C:/.conan/00057c/1/lib/libprotobuf.lib (3.17.1) 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- NVIDIA CUDA: YES (ver 11.3, CUFFT CUBLAS) 6/17/2022 1:36:56 PM: -- NVIDIA GPU arch: 35 37 50 52 60 61 70 75 80 86 6/17/2022 1:36:56 PM: -- NVIDIA PTX archs: 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- cuDNN: YES (ver 8.2.1) 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Python (for build): NO 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:56 PM: -- Install to: C:/.conan/f1e76e/1 6/17/2022 1:36:56 PM: -- ----------------------------------------------------------------- 6/17/2022 1:36:56 PM: -- 6/17/2022 1:36:58 PM: -- Configuring done ```
SpaceIm commented 1 year ago

It should work in latest RREV of opencv. Could you check please?

tuduongquyet commented 1 year ago

I tried and got this error

WARN: replace_in_file didn't find pattern 'if (ade_DIR)' in 'source_subfolder\modules\gapi\cmake\init.cmake' file.
CMake Warning:
  Ignoring extra path from command line:

   "C:\.conan\0a6dcf\1"

CMake Error: The source directory "C:/.conan/0a6dcf/1" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
opencv/4.5.5:
opencv/4.5.5: ERROR: Package '555cf246238b87eb9ca8900017c55637a21e0bec' build failed
opencv/4.5.5: WARN: Build folder C:\.conan\0a6dcf\1
ERROR: opencv/4.5.5: Error in build() method, line 518
        cmake = self._configure_cmake()
while calling '_configure_cmake', line 513

For

[requires]
opencv/4.5.5
jasper/3.0.6

[options]
opencv:contrib = True
opencv:contrib_freetype = False

[generators]
visual_studio

[imports]
bin, *.dll -> .. # Copies all dll files from packages bin folder to my "build" folder
SpaceIm commented 1 year ago

It's not the latest RREV of opencv recipe.

tuduongquyet commented 1 year ago

How to build with the latest RREV btw?

SpaceIm commented 1 year ago

add -u option while calling conan install