surfertas / ros2_ipcamera

ros2 package for use with ip camera
26 stars 12 forks source link

Resolve link-stage error regarding OpenCV. #20

Open ozzdemir opened 1 year ago

ozzdemir commented 1 year ago

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 commented 1 year ago

Fixes #16

surfertas commented 10 months ago

Will review soon.

JasonLKelly commented 9 months ago

This commit solved my build error on Humble. Thank you!

ozzdemir commented 9 months ago

You are welcome :blush: