conan-io / conan-center-index

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

[package] opencv/4.9.0: cudaimgproc not found during installation #24299

Open bblsh opened 3 weeks ago

bblsh commented 3 weeks ago

Description

After building opencv/4.9.0 with additional cuda features (conanfile pasted below), the installation process fails.

The error returned is ERROR: opencv/4.9.0: Internal components not found: ['cudaimgproc']

However, it appears that the build succeeded without errors and both opencv_cudaimgproc490.lib and cudaimgproc.hpp exist in their respective lib/include directories.

conanfile.txt used:

[requires]
opencv/4.9.0

[generators]
MSBuildDeps

[options]
opencv/*:with_jpeg=libjpeg-turbo
opencv/*:optflow=True
opencv/*:imgproc=True
opencv/*:ximgproc=True
opencv/*:with_cuda=True
opencv/*:cudafilters=True
opencv/*:cudawarping=True
opencv/*:xfeatures2d=True
opencv/*:cudafeatures2d=True
opencv/*:cudabgsegm=True
opencv/*:cudaimgproc=True
opencv/*:cudaoptflow=True
opencv/*:cudaarithm=True
opencv/*:cudev=True

Thanks all!

Package and Environment Details

Conan profile

Host profile: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows [conf]

Build profile: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows [conf]

Steps to reproduce

Logs

Click to expand log ``` [~/path/to/conanfile]: conan install . -of conan ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows [conf] Profile build: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows [conf] ======== Computing dependency graph ======== Graph root conanfile.txt: C:\path\to\conanfile.txt Requirements ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d - Cache brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519 - Cache bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache dav1d/1.2.1#94259c8baa2b1e7ab9976f1c20822be8 - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache ffmpeg/4.4.4#0b69ead2491729f9b701d4c14b8c59d0 - Cache freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb - Cache imath/3.1.9#2e7f5802b247baae47235b4c8d5642c9 - Cache jasper/4.2.0#bbda6a34e0a3d3e9caff91c15f632902 - Cache jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef - Cache libaom-av1/3.6.1#a569b342c6f8129cf327709e18691072 - Cache libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602 - Cache libfdk_aac/2.0.3#a4041d75d31de57214adeb9c6f9cae26 - Cache libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Cache libjpeg-turbo/3.0.2#1acc4234a921c5c948652e04c77d3d80 - Cache libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438 - Cache libpng/1.6.43#c219d8f01983bac10c404fc613605eef - Cache libtiff/4.6.0#51d0e7e15d032aeec1b64e65c44ecd9f - Cache libvpx/1.13.1#31c5cc0bc9fff2b5baf5a1fac60bd9c9 - Cache libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38 - Cache libx264/cci.20220602#310132b8f365d0d74028128d3677f132 - Cache libx265/3.4#60fd8f9d5a93fd2338a46a0664ddc768 - Cache ogg/1.3.5#062626875f5c8c59f069f76f148098ef - Cache opencv/4.9.0#0e6e307ff1ed2e12e623c2e72a3214de - Cache openexr/3.2.3#cc76d7ca85ee7dfe03114eaa2a8e8c1b - Cache openh264/2.3.1#8b94a94f5472b67355953c7748ad4381 - Cache openjpeg/2.5.0#2886244f2492121aa7c6c493a814db06 - Cache openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70 - Cache opus/1.4#54631f551fc450783fb2df8cd63f80a2 - Cache protobuf/3.21.12#ff413e7c6d81724e872661875af83e68 - Cache quirc/1.2#92179dd521786aea0729f2c859cbbcb9 - Cache vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6 - Cache xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache Build requirements autoconf/2.71#f9307992909d7fb3df459340f1932809 - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache cmake/3.29.3#292a699b66d006bf4c6648608fa7c9e4 - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache make/4.4#92c7132b451d1c4a2e73b62dc27420c4 - Cache meson/1.2.1#f641f02771e4660c772354736da0b9c6 - Cache meson/1.2.2#04bdfb85d665c82b08a3510aee3ffd19 - Cache meson/1.3.2#d1125ba555ec1a94f165a3412fdf7f88 - Cache msys2/cci.latest#5a31efa2bde593541fd5ac3bcc50c01c - Cache nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Cache nv-codec-headers/12.1.14.0#65e2d80efd67e46fc41f135f2468e3df - Cache pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605 - Cache protobuf/3.21.12#ff413e7c6d81724e872661875af83e68 - Cache strawberryperl/5.30.0.1#d125df083747d815c66e9ee621f3909f - Cache strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47 - Cache yasm/1.3.0#fb800a15413dca19bfaef9e4b5d50694 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache Resolved version ranges cmake/[>=3.18 <4]: cmake/3.29.3 cmake/[>=3.20 <4]: cmake/3.29.3 libpng/[>=1.6 <2]: libpng/1.6.43 openssl/[>=1.1 <4]: openssl/3.2.1 zlib/[>=1.2.11 <2]: zlib/1.3.1 ======== Computing necessary packages ======== Requirements ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d:c13a22a41ecd72caf9e556f68b406569547e0861#b78b0d2439efcd647ad21fbe8ccb0487 - Cache brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519:75df3523cadfb3cb5a2c1cc2d61e8c640e1f9b96#249943a2756eb869cac284274651a4ab - Cache bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:67bfcb7b4b78262b9d05495e479dcd92f747316b#cea9c0f0dfa41e83aebd5d39c5a5cbf3 - Cache dav1d/1.2.1#94259c8baa2b1e7ab9976f1c20822be8:852774d78624946d6aeb4c046613f3ee57f2fc72#ff8ec5cf02f3b10dae1a4541f1b32daf - Cache ffmpeg/4.4.4#0b69ead2491729f9b701d4c14b8c59d0:9e2bc4c133858aadff84865c5c4fbe5289446e08#80e1cb4638e42f79fbea9c31a356ec7d - Cache freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb:79f73b3fcb4ea3718b05e96b46594ae8f2ec3895#daf3f245ce397360c1f45a139c6bbba2 - Cache imath/3.1.9#2e7f5802b247baae47235b4c8d5642c9:9bdee485ef71c14ac5f8a657202632bdb8b4482b#4d80d6bd068a78efcf6449d464489308 - Cache jasper/4.2.0#bbda6a34e0a3d3e9caff91c15f632902:4c9bf2ad78fc729a6c7b95425a22f74d4469280b#98140547bccef05a7d7b736fd3014d98 - Cache jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef:98edcdfcd9fb7b473373eb7fe0d66af0e897e33e#15e80bf3d1dd518581ce57babc1260c3 - Cache libaom-av1/3.6.1#a569b342c6f8129cf327709e18691072:c2103b16a3c2427d7d8b2881830304dcd9a9594c#2bf84911633c393e38be416cd137d257 - Cache libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602:7bfde258ff4f62f75668d0896dbddedaa7480a0f#8770475aa00261bfaf612b6b29ef567a - Cache libfdk_aac/2.0.3#a4041d75d31de57214adeb9c6f9cae26:9bdee485ef71c14ac5f8a657202632bdb8b4482b#435509930d17f26affca5c89cf706d70 - Cache libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd:7bfde258ff4f62f75668d0896dbddedaa7480a0f#9ef92719f5c05dca2f0dbb46f50d3f8d - Cache libjpeg-turbo/3.0.2#1acc4234a921c5c948652e04c77d3d80:85d61d70e10fd3df4675f422c284547b6e1eb1bc#c63c6f6c2b9c8673cfce4faa998e9e15 - Cache libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438:7bfde258ff4f62f75668d0896dbddedaa7480a0f#1f940ddf96019360898491726791f26a - Cache libpng/1.6.43#c219d8f01983bac10c404fc613605eef:e0d2306461d10438fbd847f0556a0f0ac5653d3a#2a2341ee1f132fd46cca305aab884ba1 - Cache libtiff/4.6.0#51d0e7e15d032aeec1b64e65c44ecd9f:d49f4d78c9400117b1d8567db02fef473e63394d#5eb7031439e436e513e7067161e929cc - Cache libvpx/1.13.1#31c5cc0bc9fff2b5baf5a1fac60bd9c9:a41a3c9132f76c03420a0d58c94f179496b2c6c1#ce1a87d1c1df1ad4fc9c972aea4542dc - Cache libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38:653db3a579025ea1bd9ddbca1ed97a34042b07bc#e758295d7002a9bba78e7644fc8f4df0 - Cache libx264/cci.20220602#310132b8f365d0d74028128d3677f132:d255942e7ec60660e981cc1158cc19583e748ba0#d392689ef3f3d0601c6baf1d6ac711c6 - Cache libx265/3.4#60fd8f9d5a93fd2338a46a0664ddc768:51e0f530ce3b7ab1874d8a7d4d1db79c6980ad83#a5e0e7a93959730513e3fb3d6ae47cc8 - Cache ogg/1.3.5#062626875f5c8c59f069f76f148098ef:7bfde258ff4f62f75668d0896dbddedaa7480a0f#e927a574838328774c00363480fd0711 - Cache opencv/4.9.0#0e6e307ff1ed2e12e623c2e72a3214de:c384941fd16ea4bcbb3b8277af869b884574c13a#f31f3beac503e204807f2aa046d7ce5b - Cache openexr/3.2.3#cc76d7ca85ee7dfe03114eaa2a8e8c1b:813bcfcaffb93e3d0c170007e643e0d8d07e98e1#077d5a9e79c9cabdbe2090d643a7fd61 - Cache openh264/2.3.1#8b94a94f5472b67355953c7748ad4381:9bdee485ef71c14ac5f8a657202632bdb8b4482b#4d8e6860f6626ad26adf96897a1adc51 - Cache openjpeg/2.5.0#2886244f2492121aa7c6c493a814db06:7bfde258ff4f62f75668d0896dbddedaa7480a0f#4705898766648d4734738619d4e86b2b - Cache openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70:2bcf959ecd653496ee2aa793e11b67c013b3b876#22353e3fc81971dc437dc78e0d770b79 - Cache opus/1.4#54631f551fc450783fb2df8cd63f80a2:d1a5b9bcc299cdd33a65105d273acb7da6ab62cf#1316366bac65750d59b07e9d62760f99 - Cache protobuf/3.21.12#ff413e7c6d81724e872661875af83e68:9a546d3c2c7b2b02ebec30698e8536173849d86f#b82dd7b48314f815ad8eb5955bfd9a27 - Cache quirc/1.2#92179dd521786aea0729f2c859cbbcb9:20029e17f0b8792b803e478a6a51139592160580#ca4e9e31e54ec55d8db06e8a2b70a6a2 - Cache vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6:5716ed60be3e52a680aebcade966a2d4782db011#6bd7f8caee1c94c4eccf2f5b117619d1 - Cache xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:7bfde258ff4f62f75668d0896dbddedaa7480a0f#57664b6c320d027a8925991ad27ae18c - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:7bfde258ff4f62f75668d0896dbddedaa7480a0f#20d206871b3e3bf5f87d27bbd968cbcf - Cache zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:c60581f2463ba21c248b22570dc9f7e6dcb636f7#24418836b90a596712e698effc35a2fa - Cache Build requirements Skipped binaries eigen/3.4.0, autoconf/2.71, automake/1.16.5, cmake/3.29.3, m4/1.4.19, make/4.4, meson/1.2.1, meson/1.2.2, meson/1.3.2, msys2/cci.latest, nasm/2.15.05, ninja/1.11.1, nv-codec-headers/12.1.14.0, pkgconf/2.1.0, protobuf/3.21.12, strawberryperl/5.30.0.1, strawberryperl/5.32.1.1, yasm/1.3.0, zlib/1.3.1 ======== Installing packages ======== ade/0.1.2d: Already installed! (1 of 34) brotli/1.1.0: Already installed! (2 of 34) bzip2/1.0.8: Already installed! (3 of 34) imath/3.1.9: Already installed! (4 of 34) jbig/20160605: Already installed! (5 of 34) libdeflate/1.19: Already installed! (6 of 34) libfdk_aac/2.0.3: Already installed! (7 of 34) libmp3lame/3.100: Already installed! (8 of 34) libwebp/1.3.2: Already installed! (9 of 34) ogg/1.3.5: Already installed! (10 of 34) openjpeg/2.5.0: Already installed! (11 of 34) opus/1.4: Already installed! (12 of 34) quirc/1.2: Already installed! (13 of 34) xz_utils/5.4.5: Already installed! (14 of 34) zlib/1.3.1: Already installed! (15 of 34) zstd/1.5.5: Already installed! (16 of 34) libaom-av1/3.6.1: Already installed! (17 of 34) libiconv/1.17: Already installed! (18 of 34) libvpx/1.13.1: Already installed! (19 of 34) dav1d/1.2.1: Already installed! (20 of 34) libjpeg-turbo/3.0.2: Already installed! (21 of 34) libx264/cci.20220602: Already installed! (22 of 34) libx265/3.4: Already installed! (23 of 34) openh264/2.3.1: Already installed! (24 of 34) libpng/1.6.43: Already installed! (25 of 34) openexr/3.2.3: Already installed! (26 of 34) protobuf/3.21.12: Already installed! (27 of 34) vorbis/1.3.7: Already installed! (28 of 34) openssl/3.2.1: Already installed! (29 of 34) jasper/4.2.0: Already installed! (30 of 34) libtiff/4.6.0: Already installed! (31 of 34) freetype/2.13.2: Already installed! (32 of 34) ffmpeg/4.4.4: Already installed! (33 of 34) opencv/4.9.0: Already installed! (34 of 34) ERROR: opencv/4.9.0: Internal components not found: ['cudaimgproc'] ```
bblsh commented 3 weeks ago

After some investigation, the line causing this issue is here:

https://github.com/conan-io/conan-center-index/blob/fafec98c95259530c13cf62db02c2fda998c3ad5/recipes/opencv/4.x/conanfile.py#L665

"cudaimgproc" should be changed to "opencv_cudaimgproc", but this causes the tests to fail.

bblsh commented 3 weeks ago

Additional information: It looks like the tests are failing because things are not being linked to cuda.lib and cudartc.lib, which are found at $CUDA_PATH/lib/x64.

sanderscience commented 6 days ago

Also facing this issue.

AbrilRBS commented 4 days ago

As this is a CUDA issue, I'm pinging our resident CUDA expert @jcar87 :)