Issues by creating a Video Analytics Plugin
AnsweredHi everyone,
I'm trying to create a Video Analytics Plugin by following the tutorial below:
but I'm stuck at step 3. After creating the detection.h and frame.h, I dont know how to proceed because the following is written:
IMPORTANT: For further reading past this point the full source code is needed. We are going to observe the principal plugin related part only, omitting OpenCV framework specifics. The code examples below are informational and are not supposed to be copy/pasted anywhere.
So I'm a little bit confuse how to proceed and need some help.
Thanks!!
-
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 -
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 -
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 -
Configuration for profile default:
[settings]
arch=x86_64
os=Linux
compiler.libcxx=libstdc++11
[options]
[conf]
[build_requires]
[env]0 -
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 -
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 -
What is OS version, cmake version?
What is the output of commands?
cmake --version
cat /etc/issue0 -
Use this command and try to compile again.
conan profile update settings.compiler=gcc default
0 -
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 -
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.
Comments
10 comments