-
Notifications
You must be signed in to change notification settings - Fork 0
Why does this package need opencv3-opt? #6
Comments
This ultimately fixed my issue:
This does support my theory that at least something is awry with this install. It might be an edit: I figured out which library to link directly by |
Further detail. This is the include line in my colleague's file:
I know almost zilch about cpp, includs,
So maybe back to the original theory: the |
Just gonna drop the upstream issue here: ros-perception/vision_opencv#272 |
Nice. That may help, though we also may have an issue with a fully functioning
|
I'm afraid I do not have the time to pry into the issues you have been facing. The right solution I think is to use the latest opencv. |
Completely understood. I'll leave this open as I think it's one thing to compile the package successfully, but another if there's something odd in our setup that doesn't let users actually do something they expect. I may try building |
I did also run into troubles trying to compile packages which depend on both cv_bridge and image_geometry, resulting in a linking error with opencv functions. I fixed it by building image_geometry with opencv3 (specified in CMakeLists.txt). It did automatically pick up my OpenCV-4 installation which I had to prevent, although OpenCV3 ist listed as an explicit dependency! |
Thanks for pointing that out @jhbruhn I believe this issue should be resolved with the noetic release since ROS will not target opencv3 anymore |
I agree, but shouldn't we be consistent with the OpenCV3 dependencies for melodic still? Or at least decide whether we
|
yeah we should be consistent esp considering that we get errors when compiling packages depending on it. Feel free to create a PR regarding this! |
With the merge I'll close this issue. |
I'm trying to build a colleague's code and get errors like this:
The closest I got was this ROS Answers post. One suggestion was to rearrange some stuff in
CMakeLists.txt
which didn't help. Another was to compile with-DWITH_OPENCL=OFF
which I tried and didn't work. Nothing has changed the error.The only other thing that stuck out to me was I wondered if my colleague used a different
opencv
version. I found this post aboutld
errors and in running this line, I found the results interesting:Maybe this is due to running things on the cli from scratch vs. expecting that ROS packages will populate said
PKG_CONFIG_PATH
, but I still found it worth mentioning. Maybe the issue is in my catkin workspace?In any case, this brought up the broader question: why are we mixing opencv versions within
ros-melodic
. This seems like a bad idea in my opinion.The text was updated successfully, but these errors were encountered: