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

cv_bridge moving from opencv 3.2 to 3.3 no longer links libopencv_highgui3 #192

Closed
lucasw opened this issue Dec 11, 2017 · 4 comments
Closed

Comments

@lucasw
Copy link
Contributor

lucasw commented Dec 11, 2017

I just did an apt upgrade in kinetic and now C++ that used to get highgui via cv_bridge no longer links.

It looks like libopencv_core 3.2.0 links to highgui but 3.3.1 doesn't.

@mikaelarguedas
Copy link
Contributor

Yes indeed, now cv_bridge only links against what it needs (8b5bbcb).
Packages using openCV should find_package and link against the components they use.

AFAIK all released packages in Kinetic and Lunar have been updated accordingly and re-released. If you find any package that don't build because of this, please consider open an issue or consider opening a PR with the fix.

Thanks!

@lucasw
Copy link
Contributor Author

lucasw commented Dec 11, 2017

It's just all my packages that need to be updated (and P.J. Reed's https://discourse.ros.org/t/opencv-3-3-1-is-breaking-builds-in-kinetic/3384).

This is what is now required to get highgui back:

find_package(OpenCV REQUIRED)
...
target_link_libraries(
  ...
  ${OpenCV_LIBRARIES}

A note in http://wiki.ros.org/opencv3 would be good (I can do it later).

lucasw pushed a commit to lucasw/vimjay that referenced this issue Dec 11, 2017
@tfoote
Copy link

tfoote commented Dec 12, 2017

lucasw added a commit to lucasw/vimjay that referenced this issue Dec 29, 2017
…need individual OpenCV_LIBRARIES (though so does marti_common?)
@tfoote
Copy link

tfoote commented Mar 16, 2018

Is there anything else that needs to be follow up on this. @lucasw Did you get a chance to make a note on the wiki?

@tfoote tfoote closed this as completed Mar 20, 2018
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