Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Humble 22.04 compile error #16

Open
samuk opened this issue Jul 28, 2022 · 3 comments
Open

Humble 22.04 compile error #16

samuk opened this issue Jul 28, 2022 · 3 comments

Comments

@samuk
Copy link

samuk commented Jul 28, 2022

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]

@alto934
Copy link

alto934 commented Sep 13, 2022

@samuk having the same issue, were you able to resolve it?

@samuk
Copy link
Author

samuk commented Sep 13, 2022

No not yet

@surfertas
Copy link
Owner

Hey, sorry haven't tested on 22.04. Does it work for you on Ubuntu 20.04.4 LTS | Focal Fossa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants