Package Details: ros-melodic-cv-bridge 1.13.0-3

Git Clone URL: https://aur.archlinux.org/ros-melodic-cv-bridge.git (read-only)
Package Base: ros-melodic-cv-bridge
Description: ROS - This contains CvBridge, which converts between ROS Image messages and OpenCV images.
Upstream URL: https://wiki.ros.org/cv_bridge
Licenses: BSD
Submitter: GPereira
Maintainer: bionade24
Last Packager: bionade24
Votes: 0
Popularity: 0.000000
First Submitted: 2018-05-13 18:35
Last Updated: 2019-10-13 18:31

Latest Comments

MichaelChou commented on 2019-02-18 06:05

@marsmee, fixed and confirmed.

I updated opencv3-opt (https://aur.archlinux.org/cgit/aur.git/commit/?h=opencv3-opt&id=e4b48f5240c9).

The fix is just adding a file /etc/ld.so.conf.d/opencv3-opt.conf which contains the ld path. There's no need to recompile any ROS packages.

MichaelChou commented on 2019-02-18 05:19

@marsmee, thanks for the report. I am the package maintainer of opencv3-opt. I'll look into it later this week when I have some free time.

marsmee commented on 2019-02-17 00:39

An AUR helper script, which tests if a package has missing dynamic links, revealed to me that ros-melodic-cv-bridge and ros-melodic-image-proc have unresolved (transitive) links to various OpenCV shared libraries. I used to use a local installation of OpenCV 3 but apparently it didn't work as expected. Then I found out that this package now offers an official solution and rebuilt it with opencv3-opt. I ran the script again, but the missing links were still there.

marcus@porygon ~ % ldd /opt/ros/melodic/lib/libcv_bridge.so 
    libopencv_imgcodecs.so.3.4 => not found
    libopencv_imgproc.so.3.4 => not found
    libopencv_core.so.3.4 => not found
    ...

A workaround is to manually add the OpenCV 3 library path to the environment with export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/opencv3/lib, although this is just a temporary solution. I'm not sure if this is just the case because I didn't reinstall the entire ROS bundle. In the current situation (upstream issues etc.) I really won't try my luck.

bionade24 commented on 2019-02-15 12:18

@MichaelChou:

  1. Other opencv3 packages in the AUR don't work and are deprecated. So I'll let it this way. I tried it with Indigo's and Kinectic's opencv3 packages, both fail with melodic cv-bridge.

  2. Thanks for mentioning $pkgrel. Forgot it since there was no upstream change, but of course it won't work with opencv4.

MichaelChou commented on 2019-02-15 03:27

@bionade24

Hi, I have two suggestions:

  1. use opencv3 as dependency will be better than opencv3-opt, in case there are some other packages providing opencv3. Users can use any of that to meet the requirement.
  2. whenever you update PKGBUILD and $pkgver is not changed, you might want to increase $pkgrel, so people using aur helpers will receiving this update automatically. (remember to change $pkgrel back to 1 when $pkgver changed)

Thank you for maintaining ROS packages.

MichaelChou commented on 2019-02-14 03:03

@bionade24 I confirmed that you can simply change the dependency from opencv to opencv3 will do the trick. At least it will build.

MichaelChou commented on 2019-02-13 12:50

@bionade24 I made an AUR package here: opencv3-opt. It will install to /opt and co-exist with opencv. I hope you can use it.

bionade24 commented on 2019-02-03 12:04

This is an upstream issue. I'll wait for an upstream fix. If someone will make an AUR package named opencv3-binwhich download opencv3, I will use it as dependency.

MacProSector commented on 2019-01-20 05:44

You can go the opencv.org, download OpenCV 3 source, compile and install them under /usr/local, and then cv-bridge should be able to compile.

reem17 commented on 2019-01-18 18:25

It seems like this will not compile with opencv4 which is the current version in archlinux. Any ideas on what to do?