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

Status Page

Issues by creating a Video Analytics Plugin

Answered

Comments

10 comments

  • Andrey Terentyev
    • Network Optix team

    Hello Abdourazaki Derman ,

    So I'm a little bit confuse how to proceed and need some help.

    Proceed just by reading further.

    For full source code details, see files in opencv_object_detection_analytics_plugin/step3/src/sample_company/vms_server_plugins/opencv_object_detection of nx_open_integrations (see Getting the source code of the examples).

    Download the source code.

    Read the manual and use source code downloaded for viewing the whole code, not just quotations used in the manual.

     

    0
  • Permanently deleted user

    Thanks for the quick reply!

    I have done what you have said but I'm facing the following issue if I ran this command:

    cmake -DmetadataSdkDir=.../develop/metadata_sdk/ -DCMAKE_BUILD_TYPE=Release .../develop/step3

    I get the following output with error:

    -- The C compiler identification is GNU 7.5.0
    -- The CXX compiler identification is GNU 8.4.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - 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: Settings= -s;build_type=Release;-s;compiler=gcc;-s;compiler.version=8;-s;compiler.libcxx=libstdc++11
    -- Conan: checking conan executable
    -- Conan: Found program /usr/local/bin/conan
    -- Conan: Version found Conan version 1.46.0
    -- Conan executing: /usr/local/bin/conan install . -s build_type=Release -s compiler=gcc -s compiler.version=8 -s compiler.libcxx=libstdc++11 -g=cmake


    ERROR: compiler not defined for compiler.libcxx
    Please define compiler value first too
    CMake Error at /home/desk-developer/Desktop/Abdu_workspace/develop/step3_build/conan.cmake:529 (message):
      Conan install failed='1'
    Call Stack (most recent call first):
      /home/desk-developer/Desktop/Abdu_workspace/develop/step3_build/conan.cmake:766 (old_conan_cmake_install)
      CMakeLists.txt:61 (conan_cmake_run)


    -- Configuring incomplete, errors occurred!
    See also ".../develop/step3_build/CMakeFiles/CMakeOutput.log".

    0
  • Andrey Terentyev
    • Network Optix team

    Hello,

    Seems like you missing proper conan profile settings.

    This section describes the necessary setting to be made.

    https://support.networkoptix.com/hc/en-us/articles/360057029774

    What is the output of this command on the computer you're compiling?

     conan profile show default
    0
  • Permanently deleted user

    Configuration for profile default:

    [settings]
    arch=x86_64
    os=Linux
    compiler.libcxx=libstdc++11
    [options]
    [conf]
    [build_requires]
    [env]

    0
  • Andrey Terentyev
    • Network Optix team

    What is OS version, cmake version?

    Could you share the  develop/step3_build/CMakeFiles/CMakeOutput.log file? Place on the google drive or similar and public a link here.

    Do you have libstdc++ installed in the OS? What is the out of the command

    sudo apt list --installed | grep libstd
    0
  • Permanently deleted user

    CMakeOutput.log file:

    https://drive.google.com/file/d/1vO5kwbPcGUUa_gN5ALdRJP4vb0JAn5bj/view?usp=sharing

     

    sudo apt list --installed | grep libstd

    Output:

    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

    libstdc++-7-dev/bionic-updates,bionic-security,now 7.5.0-3ubuntu1~18.04 amd64 [installed,automatic]
    libstdc++-8-dev/bionic-updates,bionic-security,now 8.4.0-1ubuntu1~18.04 amd64 [installed,automatic]
    libstdc++6/bionic-updates,bionic-security,now 8.4.0-1ubuntu1~18.04 amd64 [installed]

     

     

    0
  • Andrey Terentyev
    • Network Optix team

    What is OS version, cmake version?

    What is the output of commands?

    cmake --version
    cat /etc/issue
    0
  • Andrey Terentyev
    • Network Optix team

    Abdourazaki Derman ,

    Use this command and try to compile again.

    conan profile update settings.compiler=gcc default
    0
  • Permanently deleted user

    Hallo Andry,

    thanks for the support.

    cmake --version

    Output:

    cmake version 3.22.2

    cat /etc/issue

    Output:

    Ubuntu 18.04.6 LTS \n \l

     Command: conan profile show default

    Output:

    Configuration for profile default:

    [settings]
    arch=x86_64
    os=Linux
    compiler.libcxx=libstdc++11
    compiler=gcc
    [options]
    [conf]
    [build_requires]
    [env]

    Command: cmake -DmetadataSdkDir=.../develop/metadata_sdk/ -DCMAKE_BUILD_TYPE=Release .../develop/step3

    Output:

    -- The C compiler identification is GNU 7.5.0
    -- The CXX compiler identification is GNU 8.4.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - 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: Settings= -s;build_type=Release;-s;compiler=gcc;-s;compiler.version=8;-s;compiler.libcxx=libstdc++11
    -- Conan: checking conan executable
    -- Conan: Found program /usr/local/bin/conan
    -- Conan: Version found Conan version 1.46.0
    -- Conan executing: /usr/local/bin/conan install . -s build_type=Release -s compiler=gcc -s compiler.version=8 -s compiler.libcxx=libstdc++11 -g=cmake


    ERROR: compiler not defined for compiler.libcxx
    Please define compiler value first too
    CMake Error at /home/........./step3_build/conan.cmake:529 (message):
      Conan install failed='1'
    Call Stack (most recent call first):
      /home/............./step3_build/conan.cmake:766 (old_conan_cmake_install)
      CMakeLists.txt:61 (conan_cmake_run)


    -- Configuring incomplete, errors occurred!
    See also "/home/......../step3_build/CMakeFiles/CMakeOutput.log".

     

     

     

     

     

     

     

    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

    I have tried to reproduce your issue and got similar error messages

    Conan install failed='1'

    I managed to fix the issue.

    Taking into account the principal error message

    ERROR: compiler not defined for compiler.libcxx

    Since you have compiler version 7 and 8 installed, I would suppose the default compilers are not set to be gcc-8 g++-8. Please try the following

    cd /usr/bin
    sudo rm gcc
    sudo ln -s gcc-8 gcc
    sudo rm g++
    sudo ln -s g++-8 g++

    Please, make sure python3 is set as default in /usr/bin/python

    0

Please sign in to leave a comment.