Open schaubh opened 2 years ago
self.requires.add("opencv/4.1.1@conan/stable")
this is an old reference and old syntax :)
try to change into:
self.required("opencv/4.1.1")
Thanks for the suggestion, but with this change I get this error instead where it can't download 4.1.1.
opencv/4.1.1: Trying with 'conan-center'...
opencv/4.1.1: Trying with 'conan-community'...
ERROR: Failed requirement 'opencv/4.1.1' from 'conanfile.py (Basilisk/2.0.7b0)'
ERROR: Permission denied for user: 'None'. [Remote: conan-community]
I tried install gettext/0.20.1
first, which worked. But opencv/4.1.1, as well as opencv/4.1.2, fail to install properly? The error message I get trying to install opencv/4.1.1 is
`opencv/4.1.1@conan/stable: Configuring sources in /Users/hp/.conan/data/opencv/4.1.1/conan/stable/source Downloading 4.1.1.tar.gz completed [86354.89k]
Downloading 4.1.1.tar.gz completed [58427.16k]
opencv/4.1.1@conan/stable: Copying sources to build folder opencv/4.1.1@conan/stable: Building your package in /Users/hp/.conan/data/opencv/4.1.1/conan/stable/build/a98d80d18db6bd64fa952fcd018f2b799de496e6 opencv/4.1.1@conan/stable: Generator cmake created conanbuildinfo.cmake opencv/4.1.1@conan/stable: Aggregating env generators opencv/4.1.1@conan/stable: Calling build() opencv/4.1.1@conan/stable: opencv/4.1.1@conan/stable: ERROR: Package 'a98d80d18db6bd64fa952fcd018f2b799de496e6' build failed opencv/4.1.1@conan/stable: WARN: Build folder /Users/hp/.conan/data/opencv/4.1.1/conan/stable/build/a98d80d18db6bd64fa952fcd018f2b799de496e6 ERROR: opencv/4.1.1@conan/stable: Error in build() method, line 469 cmake = self._configure_cmake() while calling '_configure_cmake', line 410 cmake.definitions['HARFBUZZ_INCLUDE_DIRS'] = ';'.join(self._gather_include_paths('harfbuzz')) while calling '_gather_include_paths', line 218 include_paths += self._gather_include_paths(dep) while calling '_gather_include_paths', line 218 include_paths += self._gather_include_paths(dep) while calling '_gather_include_paths', line 216 if not getattr(self.options[p],'shared', False): ConanException: option 'shared' doesn't exist Possible options are [] `
I also tried installing the newer opencv/4.5.2 version, but that also fails to install properly... Anyone else seeing these issues?
Ok, I was able to solve the opencv install issues by using
self.requires.add("gettext/0.20.1")
self.requires.add("glib/2.65.0")
self.requires.add("opencv/4.1.1@conan/stable")
By including gettext
and glib
before the opencv install the packages were found. Further, glib
had to be at least version 2.65.0 to resolve the linking issues that appeared now with version 2.58 version that opencv/4.1.1
tries to install.
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
I am trying to include 4.1.1 version of OpenCV. This was working earlier this summer, but stopped recently. self.requires.add("opencv/4.1.1@conan/stable")
Logs (Include/Attach if Applicable)
Click to expand log
``` (.venv) Repos/basilisk % bskConfig WARN: Remotes registry file missing, creating default one in /Users/hp/.conan/remotes.json Configuring: conan-community https://api.bintray.com/conan/conan-community/conan Configuring: bincrafters https://bincrafters.jfrog.io/artifactory/api/conan/public-conan Checking conan configuration: Done Auto-Generating Draft Modules... Done Running this conan command: conan install . --build=missing -s build_type=Release -if dist3/conan -o opNav=True -o vizInterface=True -o buildProject=False -o clean=True Auto detecting your dev setup to initialize the default profile (/Users/hp/.conan/profiles/default) Found apple-clang 12.0 Default settings os=Macos os_build=Macos arch=x86_64 arch_build=x86_64 compiler=apple-clang compiler.version=12.0 compiler.libcxx=libc++ build_type=Release *** You can change them in /Users/hp/.conan/profiles/default *** *** Or override with -s compiler='other' -s ...s*** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=12.0 os=Macos os_build=Macos [options] buildProject=False clean=True opNav=True vizInterface=True [build_requires] [env] Checking conan configuration: Done cmake generator set to: Xcode eigen/3.3.7: Not found in local cache, looking in remotes... eigen/3.3.7: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.21k] Downloading conanfile.py completed [2.12k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] eigen/3.3.7: Downloaded recipe revision 0 opencv/4.1.1@conan/stable: Not found in local cache, looking in remotes... opencv/4.1.1@conan/stable: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.46k] Downloading conanfile.py completed [27.05k] Downloading conan_export.tgz completed [0.75k] Decompressing conan_export.tgz completed [0.00k] opencv/4.1.1@conan/stable: Downloaded recipe revision 0 zlib/1.2.11: Not found in local cache, looking in remotes... zlib/1.2.11: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.35k] Downloading conanfile.py completed [5.94k] Downloading conan_export.tgz completed [0.34k] Decompressing conan_export.tgz completed [0.00k] zlib/1.2.11: Downloaded recipe revision 0 libjpeg/9d: Not found in local cache, looking in remotes... libjpeg/9d: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.25k] Downloading conanfile.py completed [6.25k] Downloading conan_export.tgz completed [0.29k] Decompressing conan_export.tgz completed [0.00k] libjpeg/9d: Downloaded recipe revision 0 libtiff/4.0.9: Not found in local cache, looking in remotes... libtiff/4.0.9: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.45k] Downloading conanfile.py completed [6.90k] Downloading conan_export.tgz completed [0.30k] Decompressing conan_export.tgz completed [0.00k] libtiff/4.0.9: Downloaded recipe revision 0 xz_utils/5.2.5: Not found in local cache, looking in remotes... xz_utils/5.2.5: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [8.36k] Downloading conan_export.tgz completed [0.23k] Decompressing conan_export.tgz completed [0.00k] xz_utils/5.2.5: Downloaded recipe revision 0 jbig/20160605: Not found in local cache, looking in remotes... jbig/20160605: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.33k] Downloading conanfile.py completed [2.38k] Downloading conan_export.tgz completed [0.35k] Decompressing conan_export.tgz completed [0.00k] jbig/20160605: Downloaded recipe revision 0 libwebp/1.0.3: Not found in local cache, looking in remotes... libwebp/1.0.3: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.31k] Downloading conanfile.py completed [5.97k] Downloading conan_export.tgz completed [0.30k] Decompressing conan_export.tgz completed [0.00k] libwebp/1.0.3: Downloaded recipe revision 0 libpng/1.6.37: Not found in local cache, looking in remotes... libpng/1.6.37: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.24k] Downloading conanfile.py completed [4.75k] Downloading conan_export.tgz completed [0.24k] Decompressing conan_export.tgz completed [0.00k] libpng/1.6.37: Downloaded recipe revision 0 jasper/2.0.14: Not found in local cache, looking in remotes... jasper/2.0.14: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.25k] Downloading conanfile.py completed [4.89k] Downloading conan_export.tgz completed [0.31k] Decompressing conan_export.tgz completed [0.00k] jasper/2.0.14: Downloaded recipe revision 0 openexr/2.3.0: Not found in local cache, looking in remotes... openexr/2.3.0: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.25k] Downloading conanfile.py completed [6.45k] Downloading conan_export.tgz completed [0.31k] Decompressing conan_export.tgz completed [0.00k] openexr/2.3.0: Downloaded recipe revision 0 protobuf/3.5.2@bincrafters/stable: Not found in local cache, looking in remotes... protobuf/3.5.2@bincrafters/stable: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.22k] Downloading conanfile.py completed [2.93k] Downloading conan_export.tgz completed [0.74k] Decompressing conan_export.tgz completed [0.00k] protobuf/3.5.2@bincrafters/stable: Downloaded recipe revision 0 freetype/2.10.1: Not found in local cache, looking in remotes... freetype/2.10.1: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [9.02k] Downloading conan_export.tgz completed [0.28k] Decompressing conan_export.tgz completed [0.00k] freetype/2.10.1: Downloaded recipe revision 0 WARN: freetype/2.10.1: requirement bzip2/1.0.8 overridden by opencv/4.1.1@conan/stable to bzip2/1.0.8@conan/stable bzip2/1.0.8@conan/stable: Not found in local cache, looking in remotes... bzip2/1.0.8@conan/stable: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.16k] Downloading conanfile.py completed [2.14k] Downloading conan_export.tgz completed [0.75k] Decompressing conan_export.tgz completed [0.00k] bzip2/1.0.8@conan/stable: Downloaded recipe revision 0 harfbuzz/2.4.0@bincrafters/stable: Not found in local cache, looking in remotes... harfbuzz/2.4.0@bincrafters/stable: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.21k] Downloading conanfile.py completed [4.30k] Downloading conan_export.tgz completed [1.05k] Decompressing conan_export.tgz completed [0.00k] harfbuzz/2.4.0@bincrafters/stable: Downloaded recipe revision 0 WARN: harfbuzz/2.4.0@bincrafters/stable: requirement freetype/2.10.0@bincrafters/stable overridden by opencv/4.1.1@conan/stable to freetype/2.10.1 glib/2.58.3@bincrafters/stable: Not found in local cache, looking in remotes... glib/2.58.3@bincrafters/stable: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.16k] Downloading conanfile.py completed [6.80k] Downloading conan_export.tgz completed [0.75k] Decompressing conan_export.tgz completed [0.00k] glib/2.58.3@bincrafters/stable: Downloaded recipe revision 0 libffi/3.2.1: Not found in local cache, looking in remotes... libffi/3.2.1: Trying with 'conan-center'... Downloading conanmanifest.txt completed [1.39k] Downloading conanfile.py completed [7.15k] Downloading conan_export.tgz completed [0.41k] Decompressing conan_export.tgz completed [0.00k] libffi/3.2.1: Downloaded recipe revision 0 pcre/8.41: Not found in local cache, looking in remotes... pcre/8.41: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [8.28k] Downloading conan_export.tgz completed [0.24k] Decompressing conan_export.tgz completed [0.00k] pcre/8.41: Downloaded recipe revision 0 WARN: pcre/8.41: requirement bzip2/1.0.8 overridden by glib/2.58.3@bincrafters/stable to bzip2/1.0.8@conan/stable libelf/0.8.13: Not found in local cache, looking in remotes... libelf/0.8.13: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [4.67k] Downloading conan_export.tgz completed [0.28k] Decompressing conan_export.tgz completed [0.00k] libelf/0.8.13: Downloaded recipe revision 0 gettext/0.20.1@bincrafters/stable: Not found in local cache, looking in remotes... gettext/0.20.1@bincrafters/stable: Trying with 'conan-center'... gettext/0.20.1@bincrafters/stable: Trying with 'conan-community'... ERROR: Failed requirement 'gettext/0.20.1@bincrafters/stable' from 'glib/2.58.3@bincrafters/stable' ERROR: Permission denied for user: 'None'. [Remote: conan-community] Running cmake: conan build . -if dist3/conan Checking conan configuration: Done cmake generator set to: Xcode ERROR: conanbuildinfo.txt file not found in /Users/hp/Repos/basilisk/dist3/conan It is required for this command You can generate it using 'conan install' ```