Open tuduongquyet opened 2 years ago
It should work in latest RREV of opencv. Could you check please?
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
It's not the latest RREV of opencv recipe.
How to build with the latest RREV btw?
add -u option while calling conan install
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
contrib_freetype = True
,opencv_freetype455.dll
is NOT built.harfbuzz
NOT found even it's installed by Conan.opencv_contrib
freetype module needs to be patched soharfbuzz
can be found.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: