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

Git Clone URL: https://aur.archlinux.org/ros-melodic-cv-bridge.git (read-only, click to copy)
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: None
Last Packager: bionade24
Votes: 1
Popularity: 0.000000
First Submitted: 2018-05-13 18:35 (UTC)
Last Updated: 2021-07-04 20:08 (UTC)

Latest Comments

1 2 Next › Last »

bionade24 commented on 2020-02-16 13:14 (UTC) (edited on 2020-02-16 13:16 (UTC) by bionade24)

Nihili0: After a boost update you have to rebuild every c++ package. This time you could have luck because of a fix in the c++ packges we increased all their pkgrel, updates will be available when CI/CD has finished.

FederAndInk commented on 2020-02-16 11:41 (UTC) (edited on 2020-02-16 11:43 (UTC) by FederAndInk)

With boost 1.72 installed I have this problem:

make[2]: ***  No rule to make target « /usr/lib64/libboost_regex.so.1.71.0 », required by « devel/lib/libcv_bridge.so ». Stop.

Any idea to fix this ?

jerry73204 commented on 2019-12-19 15:09 (UTC)

The prepare() points to the wrong path of patch files. Could you please modify the prepare() to the following?

prepare() {
  cd "${srcdir}/${_dir}"
  patch -uN src/module.hpp "${srcdir}/endian-fix.patch" || return 1
  patch -uN CMakeLists.txt "${srcdir}/boost-fix.patch" || return 1
}

MichaelChou commented on 2019-02-18 06:05 (UTC)

@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 (UTC)

@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 (UTC) (edited on 2019-02-17 18:01 (UTC) by marsmee)

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 (UTC)

@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 (UTC)

@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 (UTC)

@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 (UTC)

@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.