Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Error in step 3 due to conan configuration

Answered

Comments

5 comments

  • Andrey Terentyev
    • Network Optix team

    Hello,

    Setting for default profile you've provided are wrong. The configuration Windows + gcc is not supported for building plugins.

    Please, read readme.md for supported configuration.

    Here is working settings autodetected by cmake

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

     

     

    0
  • Viacheslav Hodlevskyi

    Hello, I've tried correct configurations you provided, there is a new error:

    ade/0.1.2a: ERROR: Package '871c6303207aa1b539e682559d0b5180e15f0c30' build failed
    ade/0.1.2a: WARN: Build folder C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30\build
    ERROR: ade/0.1.2a: Error in build() method, line 48
            cmake.configure()
            ConanException: Error 1 while executing cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="C:/Users/Development/.conan/data/ade/0.1.2a/_/_/build/871c6303207aa1b539e682559d0b5180e15f0c30/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/Development/.conan/data/ade/0.1.2a/_/_/package/871c6303207aa1b539e682559d0b5180e15f0c30" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30\src"
    CMake Error at C:/Users/Development/develop_steps/opencv_object_detection_analytics_plugin/build/conan.cmake:651 (message):
      Conan install failed='1'
    Call Stack (most recent call first):
      CMakeLists.txt:69 (conan_cmake_install)
    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

    Could you provide OS version please? I suspect it's the one different from Windows 10.

    Could you share the entire cmake log file, please?

    0
  • Viacheslav Hodlevskyi

    It's Windows 11 pro 10.0.22621

    -- Building for: Visual Studio 16 2019
    -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
    -- The C compiler identification is MSVC 19.29.30148.0
    -- The CXX compiler identification is MSVC 19.29.30148.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/Community/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/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
    -- Conan: Automatic detection of conan settings from cmake
    -- Conan: Detected VS runtime: MD
    -- Conan: Settings= -s;arch=x86_64;-s;build_type=Release;-s;compiler=Visual Studio;-s;compiler.version=16;-s;compiler.runtime=MD
    -- Conan: checking conan executable
    -- Conan: Found program C:/Users/Development/AppData/Local/Programs/Python/Python37/Scripts/conan.exe
    -- Conan: Version found Conan version 1.59.0
    -- Conan executing: C:/Users/Development/AppData/Local/Programs/Python/Python37/Scripts/conan.exe install . -s arch=x86_64 -s build_type=Release -s compiler=Visual Studio -s compiler.version=16 -s compiler.runtime=MD -g=cmake
    Configuration:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MD
    compiler.version=16
    os=Windows
    os_build=Windows
    [options]
    [build_requires]
    [env]

    conanfile.txt: Installing package
    Requirements
    Packages

    Installing (downloading, building) binaries...
    conanfile.txt: Generator cmake created conanbuildinfo.cmake
    conanfile.txt: Generator txt created conanbuildinfo.txt
    conanfile.txt: Aggregating env generators
    conanfile.txt: Generated conaninfo.txt
    conanfile.txt: Generated graphinfo
    -- Conan: Loading conanbuildinfo.cmake
    -- Conan: checking conan executable
    -- Conan: Found program C:/Users/Development/AppData/Local/Programs/Python/Python37/Scripts/conan.exe
    -- Conan: Version found Conan version 1.59.0
    -- Conan executing: C:/Users/Development/AppData/Local/Programs/Python/Python37/Scripts/conan.exe install . --build missing --options opencv:parallel=False --options opencv:contrib=True --options opencv:contrib_freetype=False --options opencv:contrib_sfm=False --options opencv:with_jpeg=False --options opencv:with_png=False --options opencv:with_tiff=False --options opencv:with_jpeg2000=False --options opencv:with_openexr=False --options opencv:with_eigen=False --options opencv:with_webp=False --options opencv:with_quirc=False --options opencv:with_cuda=False --options opencv:with_cublas=False --options opencv:dnn=True --options opencv:with_ffmpeg=False --settings compiler.runtime=MT
    Configuration:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MT
    compiler.version=17
    os=Windows
    os_build=Windows
    [options]
    opencv:contrib=True
    opencv:contrib_freetype=False
    opencv:contrib_sfm=False
    opencv:dnn=True
    opencv:parallel=False
    opencv:with_cublas=False
    opencv:with_cuda=False
    opencv:with_eigen=False
    opencv:with_ffmpeg=False
    opencv:with_jpeg=False
    opencv:with_jpeg2000=False
    opencv:with_openexr=False
    opencv:with_png=False
    opencv:with_quirc=False
    opencv:with_tiff=False
    opencv:with_webp=False
    [build_requires]
    [env]

    conanfile.txt: Installing package
    Requirements
        ade/0.1.2a from 'conancenter' - Cache
        opencv/4.5.5 from 'conancenter' - Cache
        protobuf/3.17.1 from 'conancenter' - Cache
        zlib/1.2.13 from 'conancenter' - Cache
    Packages
        ade/0.1.2a:871c6303207aa1b539e682559d0b5180e15f0c30 - Build
        opencv/4.5.5:19bf2465ba16f0819f7ea761cbf5b9f6139c5a19 - Build
        protobuf/3.17.1:808430c16c6dccfa65f3947f5ef950747a93a7e8 - Build
        zlib/1.2.13:871c6303207aa1b539e682559d0b5180e15f0c30 - Build

    Installing (downloading, building) binaries...
    ade/0.1.2a: Copying sources to build folder
    ade/0.1.2a: Building your package in C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30
    ade/0.1.2a: Generator txt created conanbuildinfo.txt
    ade/0.1.2a: Calling generate()
    ade/0.1.2a: Preset 'default' added to CMakePresets.json. Invoke it manually using 'cmake --preset default'
    ade/0.1.2a: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30\build\generators\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW'
    ade/0.1.2a: Aggregating env generators
    ade/0.1.2a: Calling build()
    ade/0.1.2a: CMake command: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="C:/Users/Development/.conan/data/ade/0.1.2a/_/_/build/871c6303207aa1b539e682559d0b5180e15f0c30/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/Development/.conan/data/ade/0.1.2a/_/_/package/871c6303207aa1b539e682559d0b5180e15f0c30" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30\src"
    -- Using Conan toolchain: C:/Users/Development/.conan/data/ade/0.1.2a/_/_/build/871c6303207aa1b539e682559d0b5180e15f0c30/build/generators/conan_toolchain.cmake
    CMake Error at CMakeLists.txt:9 (project):
      Generator

        Visual Studio 17 2022

      could not find any instance of Visual Studio.


    -- Configuring incomplete, errors occurred!

    ade/0.1.2a:
    ade/0.1.2a: WARN: Package binary is corrupted, removing: 871c6303207aa1b539e682559d0b5180e15f0c30
    ade/0.1.2a: WARN: Build folder is dirty, removing it: C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30
    ade/0.1.2a: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    ade/0.1.2a: ERROR: Package '871c6303207aa1b539e682559d0b5180e15f0c30' build failed
    ade/0.1.2a: WARN: Build folder C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30\build
    ERROR: ade/0.1.2a: Error in build() method, line 48
            cmake.configure()
            ConanException: Error 1 while executing cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="C:/Users/Development/.conan/data/ade/0.1.2a/_/_/build/871c6303207aa1b539e682559d0b5180e15f0c30/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/Development/.conan/data/ade/0.1.2a/_/_/package/871c6303207aa1b539e682559d0b5180e15f0c30" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\Development\.conan\data\ade\0.1.2a\_\_\build\871c6303207aa1b539e682559d0b5180e15f0c30\src"
    CMake Error at C:/Users/Development/develop_steps/opencv_object_detection_analytics_plugin/build/conan.cmake:651 (message):
      Conan install failed='1'
    Call Stack (most recent call first):
      CMakeLists.txt:69 (conan_cmake_install)


    -- Configuring incomplete, errors occurred!
    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

    Thank you for the log file.

    As you can see, there is an error

    CMake Error at CMakeLists.txt:9 (project):
      Generator

        Visual Studio 17 2022

      could not find any instance of Visual Studio.

    Which means the cmake expects Visual Studio 17 to compile the code, meanwhile you have installed version 16 detected by conan

    -- Conan: Detected VS runtime: MD
    -- Conan: Settings= -s;arch=x86_64;-s;build_type=Release;-s;compiler=Visual Studio;-s;compiler.version=16;-s;compiler.runtime=MD

    Changing compiler.version to 16 in your default conan profile would resolve the issue

    0

Please sign in to leave a comment.