ros2_ipcamera icon indicating copy to clipboard operation
ros2_ipcamera copied to clipboard

Resolve link-stage error regarding OpenCV.

Open ozzdemir opened this issue 1 year ago • 4 comments

Had linking problems when building for humble, fixed with only a minor dependency addition.

--- 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

ozzdemir avatar Jun 01 '23 17:06 ozzdemir