ros2_ipcamera
ros2_ipcamera copied to clipboard
Humble 22.04 compile error
I have sudo apt install libopencv-*
The build fails as below
colcon build --symlink-install
Starting >>> ros2_ipcamera
--- stderr: ros2_ipcamera
/usr/bin/ld: libipcamera_component.so: undefined reference to cv::VideoCapture::VideoCapture()' /usr/bin/ld: libipcamera_component.so: undefined reference to
cv::VideoCapture::isOpened() const'
/usr/bin/ld: libipcamera_component.so: undefined reference to cv::VideoCapture::~VideoCapture()' /usr/bin/ld: libipcamera_component.so: undefined reference to
cv::VideoCapture::operator>>(cv::Mat&)'
/usr/bin/ld: libipcamera_component.so: undefined reference to cv::VideoCapture::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' /usr/bin/ld: libipcamera_component.so: undefined reference to
cv::VideoCapture::set(int, double)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/composition.dir/build.make:196: composition] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:165: CMakeFiles/composition.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Failed <<< ros2_ipcamera [1.41s, exited with code 2]