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: Build error on Windows11(msvc) #24344

Closed dix75 closed 2 days ago

dix75 commented 2 weeks ago

Description

The opencv build does not build under Visual Studio 2019, I also noticed that the same problem appeared a few days ago for gcc 14.1.1, but it worked fine on 14.

Package and Environment Details

Conan profile

[settings] arch=x86_64 compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.version=192 os=Windows

Steps to reproduce

  1. Create a conanfile.py
    
    #!/usr/bin/env python
    # -*- coding: utf-8 -*-

from conan import ConanFile from conan.tools.cmake import cmake_layout

required_conan_version = ">=2.4.0"

class CompressorRecipe(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "CMakeDeps", "CMakeToolchain", "VirtualBuildEnv", "VirtualRunEnv"

def requirements(self):
    self.requires("opencv/4.9.0")

def layout(self):
    cmake_layout(self)
2.  Run
`conan install . -b=missing --settings=build_type=Debug -pr:b=default`

### Logs

<details><summary>Click to expand log</summary>

Microsoft Windows [Version 10.0.19044.2075] (c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

C:\projects\visys\sandbox\examples\projects\conan\simple>conan install . -b=missing --settings=build_type=Debug -pr:b=default

======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Debug compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Debug compiler.version=192 os=Windows

Profile build: [settings] arch=x86_64 compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=192 os=Windows

======== Computing dependency graph ======== Graph root conanfile.py: C:\projects\visys\sandbox\examples\projects\conan\simple\conanfile.py Requirements ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d - Cache brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519 - Cache bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache dav1d/1.2.1#0f008644f860d429003a09a96edee335 - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache ffmpeg/4.4.4#0e4bd98a7a3303ae108adb9940f9ec3f - 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/9e#3cd27a78643419450ee6d3739514d25c - 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#64189bfad173ff6dfcf60441d4e26bbe - Cache opus/1.4#54631f551fc450783fb2df8cd63f80a2 - Cache protobuf/3.21.12#2070373d5f1a2606a4491faef9315a73 - 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#1f239731dc45147c7fc2f54bfbde73df - Cache Build requirements autoconf/2.71#f9307992909d7fb3df459340f1932809 - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache cmake/3.29.5#56dbff3ff8af6bcd4b9c170fbd4da068 - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache meson/1.2.2#04bdfb85d665c82b08a3510aee3ffd19 - Cache meson/1.3.2#d1125ba555ec1a94f165a3412fdf7f88 - Cache meson/1.4.0#024dfac41ea5570cb1aec3ea6fe34d0a - Cache msys2/cci.latest#5a31efa2bde593541fd5ac3bcc50c01c - Cache nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache nasm/2.16.01#d0aebbd20ccbb6ad9c9c753ab708098c - Cache ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Cache pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605 - Cache protobuf/3.21.12#2070373d5f1a2606a4491faef9315a73 - Cache strawberryperl/5.30.0.1#9d849906813632cac546c690fc1f3ebb - Cache strawberryperl/5.32.1.1#707032463aa0620fa17ec0d887f5fe41 - Cache yasm/1.3.0#fb800a15413dca19bfaef9e4b5d50694 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache Resolved version ranges cmake/[>=3.18 <4]: cmake/3.29.5 cmake/[>=3.20 <4]: cmake/3.29.5 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 ======== ninja/1.11.1: Compatible package ID 522dcea5982a3f8a5b624c16477e47195da2f84f equal to the default package ID: Skipping it. libtiff/4.6.0: Compatible package ID 60550c883ac1b54db1b0171b81242db817a0e6d0 equal to the default package ID: Skipping it. libtiff/4.6.0: Checking 2 compatible configurations libtiff/4.6.0: Compatible configurations not found in cache, checking servers libtiff/4.6.0: '6ec40ca4aece49e165c1021d39d7e8b4708b02bf': compiler.cppstd=14 libtiff/4.6.0: 'd1c137e6921aa552bcd215c9228a0afa5a69842b': compiler.cppstd=20 libvpx/1.13.1: Compatible package ID 6b055b4b99128dbd047c5b779b2a328ab830eb19 equal to the default package ID: Skipping it. libvpx/1.13.1: Checking 2 compatible configurations libvpx/1.13.1: Compatible configurations not found in cache, checking servers libvpx/1.13.1: 'ba86e937a451ee0b0e39c9f88f20a648a9d1b563': compiler.cppstd=14 libvpx/1.13.1: 'e788daf7916fc7220173990cf8ac764f2bb6e140': compiler.cppstd=20 m4/1.4.19: Compatible package ID 522dcea5982a3f8a5b624c16477e47195da2f84f equal to the default package ID: Skipping it. openexr/3.2.3: Compatible package ID 8959100b242c81938728f02ea602e67f66f1a6aa equal to the default package ID: Skipping it. openexr/3.2.3: Checking 2 compatible configurations openexr/3.2.3: Compatible configurations not found in cache, checking servers openexr/3.2.3: '1b9e1846a0eee05bf7fb7a22dbdae4bcd275e8e4': compiler.cppstd=14 openexr/3.2.3: 'b9c4bd009c4b53de50716d97ea1348c9c661ee30': compiler.cppstd=20 protobuf/3.21.12: Compatible package ID 7dd2bc0ec03a066206997676f0238973fcca818d equal to the default package ID: Skipping it. protobuf/3.21.12: Checking 2 compatible configurations protobuf/3.21.12: Compatible configurations not found in cache, checking servers protobuf/3.21.12: '94ddfa520b6a864290ee4b4ba27b7f80a74b2900': compiler.cppstd=14 protobuf/3.21.12: '9d2ad6d08f21369d60e192a4917ed4172ade602a': compiler.cppstd=20 protobuf/3.21.12: Compatible package ID bd949bbff9863792dc41f80097d09687e8177e66 equal to the default package ID: Skipping it. protobuf/3.21.12: Checking 2 compatible configurations protobuf/3.21.12: Compatible configurations not found in cache, checking servers protobuf/3.21.12: '25f93fa739495e584ba24b6236e1be720da745ca': compiler.cppstd=14 protobuf/3.21.12: 'cc0d2329331f8bdbc4f7f4c3db17fb01e9136c64': compiler.cppstd=20 libx265/3.4: Compatible package ID 8f346475065736ddc024ce92994d66003c033047 equal to the default package ID: Skipping it. libx265/3.4: Checking 2 compatible configurations libx265/3.4: Compatible configurations not found in cache, checking servers libx265/3.4: '18aaa7f54fdb3daab8e3e9edec612113231f44b1': compiler.cppstd=14 libx265/3.4: '11e31d5154eac978c77328c8fa9aa999bda3869f': compiler.cppstd=20 openh264/2.3.1: Compatible package ID 62a4cc307a4550fd201a32e375e3e4bb1aad58f7 equal to the default package ID: Skipping it. openh264/2.3.1: Checking 2 compatible configurations openh264/2.3.1: Compatible configurations not found in cache, checking servers openh264/2.3.1: '1554f445e3cfda7968b8cc15e160d4b5c6d4a88a': compiler.cppstd=14 openh264/2.3.1: '0f79c8ffc0a92c5c524e1d673efb9d2861af4ba0': compiler.cppstd=20 opencv/4.9.0: Compatible package ID ce2952b2abfd751a83b7f5e8cf427d1de357484e equal to the default package ID: Skipping it. opencv/4.9.0: Checking 2 compatible configurations opencv/4.9.0: Compatible configurations not found in cache, checking servers opencv/4.9.0: 'f096ea6f82175d3449898982d5884130985c0a77': compiler.cppstd=14 opencv/4.9.0: 'a60312c3c6e6f5ae75717f3a2ff6fe6236e37fc6': compiler.cppstd=20 Requirements ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d:e7ff2ee6c0054703d1db33449b28841f630411ef#07035e2e9fb8126e76b9ff21de6c1ea6 - Cache brotli/1.1.0#d56d7bb9ca722942aba17369cb5c0519:08f75989e97907c9e7e09d7fc5853908e0a08f79#dda026efdba105bee6cecda70b537ff8 - Cache bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:bd49b58b839bddec6ded72cd3c98e01232cd4377#c6a06f492988a406179e939a10bb63ee - Cache dav1d/1.2.1#0f008644f860d429003a09a96edee335:d553401b9c03063f2be2b494261cce09bf5d3dfb - Build eigen/3.4.0#2e192482a8acff96fe34766adca2b24c:da39a3ee5e6b4b0d3255bfef95601890afd80709#b2e7c2d86c5d1dbefc534889aa72e12c - Cache ffmpeg/4.4.4#0e4bd98a7a3303ae108adb9940f9ec3f:d30b539796b2b462fb90340b183380515a9c9998 - Build freetype/2.13.2#7934d59c447d72edcd56025dc60e1aeb:119d34d8bc5e73ce8a955b437d33acd104a298d4 - Build imath/3.1.9#2e7f5802b247baae47235b4c8d5642c9:62a4cc307a4550fd201a32e375e3e4bb1aad58f7#47e524d4ac4caa69848daad48d13a05b - Cache jasper/4.2.0#bbda6a34e0a3d3e9caff91c15f632902:0bf1395153323e6e1e583728af2040d28f914e91 - Build jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef:4c98541369841e147ebbba95651a111a25ce24da#ec2868fe64ccdd7e4753254f27d405f7 - Cache libaom-av1/3.6.1#a569b342c6f8129cf327709e18691072:3d9490da577b3dbc3dd583868e7997a006b93cce - Build libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a#cf4c03ef9c53a5714636f67fc313eb4f - Cache libfdk_aac/2.0.3#a4041d75d31de57214adeb9c6f9cae26:62a4cc307a4550fd201a32e375e3e4bb1aad58f7#1e3ca23ebaeb4acc8f566ce12eda3876 - Cache libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a - Build libjpeg/9e#3cd27a78643419450ee6d3739514d25c:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a#1fc4f493648f3671e5e6787932ba9feb - Cache libmp3lame/3.100#44b12d19316eb2b223d98d3e75dae438:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a#a05c537383960803115a89e8b846dd6a - Cache libpng/1.6.43#c219d8f01983bac10c404fc613605eef:dd666dde53ab2b2377490e5009f1fc59fe00beff - Build libtiff/4.6.0#51d0e7e15d032aeec1b64e65c44ecd9f:60550c883ac1b54db1b0171b81242db817a0e6d0 - Build libvpx/1.13.1#31c5cc0bc9fff2b5baf5a1fac60bd9c9:6b055b4b99128dbd047c5b779b2a328ab830eb19 - Build libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38:69e41dedfc7f97155bcfd2aeb65197708fd1aee7#6989b6426eaa8c5b08931b4d7acebb08 - Cache libx264/cci.20220602#310132b8f365d0d74028128d3677f132:71bf6174b9d092c010f3cf4f569ba113e42e9f12 - Build libx265/3.4#60fd8f9d5a93fd2338a46a0664ddc768:8f346475065736ddc024ce92994d66003c033047 - Build ogg/1.3.5#062626875f5c8c59f069f76f148098ef:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a - Build opencv/4.9.0#0e6e307ff1ed2e12e623c2e72a3214de:ce2952b2abfd751a83b7f5e8cf427d1de357484e - Build openexr/3.2.3#cc76d7ca85ee7dfe03114eaa2a8e8c1b:8959100b242c81938728f02ea602e67f66f1a6aa - Build openh264/2.3.1#8b94a94f5472b67355953c7748ad4381:62a4cc307a4550fd201a32e375e3e4bb1aad58f7 - Build openjpeg/2.5.0#2886244f2492121aa7c6c493a814db06:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a - Build openssl/3.2.1#64189bfad173ff6dfcf60441d4e26bbe:c39c643606f7fd732ac0612f63ddbcedacd7a236#6eda64066a9676d24b5d9f08006ef095 - Cache opus/1.4#54631f551fc450783fb2df8cd63f80a2:ea56021b3bd90b13c62a49dde33e71a20581a377 - Build protobuf/3.21.12#2070373d5f1a2606a4491faef9315a73:7dd2bc0ec03a066206997676f0238973fcca818d - Build quirc/1.2#92179dd521786aea0729f2c859cbbcb9:1d8d0d0352538f73e1172cca9eb42953f869b9c5#bd5902e6b4a43404f6ce3de601455152 - Cache vorbis/1.3.7#37e58f52e59a6232199b34ef402714a6:b170ab2bcf4e8e5c6db1d61cfcebdb7850e5f8ec - Build xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a#de368b37349390b325f02eb819128842 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:25f93aaacbebaa913a6aaecd4fa01e3ef49c798a#3a92f167270c4e74188251320b8b9a5f - Cache zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df:3f4c56ab2b3b0b1e42df3ba7facbea9ec6961eae - Build Build requirements autoconf/2.71#f9307992909d7fb3df459340f1932809:da39a3ee5e6b4b0d3255bfef95601890afd80709#5b77f70c17ad1741f5845d4e468a347e - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50:ebec3dc6d7f6b907b3ada0c3d3cdc83613a2b715#07094da42a0b39fd4b34760c5f1f3e7d - Cache cmake/3.29.5#56dbff3ff8af6bcd4b9c170fbd4da068:522dcea5982a3f8a5b624c16477e47195da2f84f#f0d10c66a10edeffbfa8a440b3d7bf62 - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2:522dcea5982a3f8a5b624c16477e47195da2f84f - Build meson/1.2.2#04bdfb85d665c82b08a3510aee3ffd19:da39a3ee5e6b4b0d3255bfef95601890afd80709#97f4a23dd2d942f83e5344b1ca496ce7 - Cache meson/1.3.2#d1125ba555ec1a94f165a3412fdf7f88:da39a3ee5e6b4b0d3255bfef95601890afd80709#3ba677cf44c95996f4f326c668f92f00 - Cache meson/1.4.0#024dfac41ea5570cb1aec3ea6fe34d0a:da39a3ee5e6b4b0d3255bfef95601890afd80709#91b870cdcf4edb1a302a2ef7a0514791 - Cache msys2/cci.latest#5a31efa2bde593541fd5ac3bcc50c01c:956a88975bda9dfcc485e2861d71e74bd7e2b9a5#c99a611f14016fba4a51b85204f62fa3 - Cache nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568:522dcea5982a3f8a5b624c16477e47195da2f84f - Build ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21:522dcea5982a3f8a5b624c16477e47195da2f84f - Build pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605:cfe734f6f435320f9400bda6229903fdde06d9db - Build protobuf/3.21.12#2070373d5f1a2606a4491faef9315a73:bd949bbff9863792dc41f80097d09687e8177e66 - Build strawberryperl/5.30.0.1#9d849906813632cac546c690fc1f3ebb:522dcea5982a3f8a5b624c16477e47195da2f84f#049e56266aca4c0f5d5672bfffa5d0ed - Cache strawberryperl/5.32.1.1#707032463aa0620fa17ec0d887f5fe41:522dcea5982a3f8a5b624c16477e47195da2f84f#a365b3810f698e2f0a00fbeece022903 - Cache yasm/1.3.0#fb800a15413dca19bfaef9e4b5d50694:522dcea5982a3f8a5b624c16477e47195da2f84f - Build zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:a727dbc230bbe9ba3511a139b97ebdead444d01c - Build Skipped binaries nasm/2.16.01

======== Installing packages ======== ade/0.1.2d: Already installed! (1 of 51) brotli/1.1.0: Already installed! (2 of 51) bzip2/1.0.8: Already installed! (3 of 51) cmake/3.29.5: Already installed! (4 of 51) cmake/3.29.5: Appending PATH environment variable: C:\Users\dix.conan2\p\cmakeb8119594f04b2\p\bin cmake/3.29.5: Appending PATH environment variable: C:\Users\dix.conan2\p\cmakeb8119594f04b2\p\bin eigen/3.4.0: Already installed! (5 of 51) imath/3.1.9: Already installed! (6 of 51) jbig/20160605: Already installed! (7 of 51) libdeflate/1.19: Already installed! (8 of 51) libfdk_aac/2.0.3: Already installed! (9 of 51) libjpeg/9e: Already installed! (10 of 51) libmp3lame/3.100: Already installed! (11 of 51) libwebp/1.3.2: Already installed! (12 of 51) msys2/cci.latest: Already installed! (13 of 51)

-------- Installing package ninja/1.11.1 (14 of 51) -------- ninja/1.11.1: Building from source ninja/1.11.1: Package ninja/1.11.1:522dcea5982a3f8a5b624c16477e47195da2f84f ninja/1.11.1: Copying sources to build folder ninja/1.11.1: Building your package in C:\Users\dix.conan2\p\b\ninja33bbe8eb37a2c\b ninja/1.11.1: Calling generate() ninja/1.11.1: Generators folder: C:\Users\dix.conan2\p\b\ninja33bbe8eb37a2c\b\build\generators ninja/1.11.1: CMakeToolchain generated: conan_toolchain.cmake ninja/1.11.1: CMakeToolchain generated: C:\Users\dix.conan2\p\b\ninja33bbe8eb37a2c\b\build\generators\CMakePresets.jsonninja/1.11.1: CMakeToolchain generated: C:\Users\dix.conan2\p\b\ninja33bbe8eb37a2c\b\src\CMakeUserPresets.json ninja/1.11.1: Generating aggregated env files ninja/1.11.1: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] ninja/1.11.1: Calling build() ninja/1.11.1: Running CMake.configure() ninja/1.11.1: RUN: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/dix/.conan2/p/b/ninja33bbe8eb37a2c/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/dix/.conan2/p/b/ninja33bbe8eb37a2c/b/src" -- Using Conan toolchain: C:/Users/dix/.conan2/p/b/ninja33bbe8eb37a2c/b/build/generators/conan_toolchain.cmake -- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v142 -- Conan toolchain: C++ Standard 17 with extensions OFF -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044. -- The C compiler identification is MSVC 19.29.30154.0 -- The CXX compiler identification is MSVC 19.29.30154.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- IPO / LTO enabled CMake Warning at CMakeLists.txt:49 (message): re2c was not found; changes to src/*.in.cc will not affect your build.

-- Configuring done (7.1s) -- Generating done (0.0s) -- Build files have been written to: C:/Users/dix/.conan2/p/b/ninja33bbe8eb37a2c/b/build

ninja/1.11.1: Running CMake.build() ninja/1.11.1: ERROR: Package '522dcea5982a3f8a5b624c16477e47195da2f84f' build failed ninja/1.11.1: WARN: Build folder C:\Users\dix.conan2\p\b\ninja33bbe8eb37a2c\b\build ERROR: ninja/1.11.1: Error in build() method, line 41 cmake.build() ConanException: CMake: build_type setting should be defined.

C:\projects\visys\sandbox\examples\projects\conan\simple>



</details>
SpaceIm commented 2 weeks ago

Could you change the title please? In your log, it's a build error in ninja, not opencv.

The root cause is written in your log: ConanException: CMake: build_type setting should be defined.. Your build profile is illformed (missing build_type setting which is mandatory).

dix75 commented 2 weeks ago

I don't use ninja to build! I am only trying to install opencv. conan install . -b=missing --settings=build_type=Debug -pr:b=default A ninja in the dependencies of one of the opencv modules.

p.s. Nothing but msvc and conan is installed on the system specifically for this scenario.

SpaceIm commented 2 weeks ago

As I said your build profile is illformed, please read my previous answer.

dix75 commented 2 days ago

You're right, that's my problem.