Skip to content

Commit

Permalink
.travis.sh: debian/sid rebuild cv-bridge deb
Browse files Browse the repository at this point in the history
debian/sid fails with

[ 57%] Linking CXX executable devel/lib/opencv_apps/adding_images
/usr/bin/cmake -E cmake_link_script CMakeFiles/adding_images_exe.dir/link.txt --verbose=1
/usr/bin/ld: cannot find -lopencv_barcode: No such file or directory
collect2: error: ld returned 1 exit status

-lopencv_barcode comes from cv_bridge, so we need to rebuild deb file again
  • Loading branch information
k-okada committed Feb 15, 2025
1 parent d9a2856 commit ef5eea8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ elif [ "$TEST" == "debian-unstable" ]; then
apt update
apt-get -y build-dep ros-opencv-apps

# rebuild cv-bridge to fix '/usr/bin/ld: cannot find -lopencv_barcode: No such file or directory'
travis_time_start rebuild_cv_bridge_deb.script
apt source ros-vision-opencv
apt-get -y build-dep $(find -type d -iname "ros-vision-opencv*")
(cd $(find -type d -iname "ros-vision-opencv*") && dpkg-buildpackage -b -us -uc)
dpkg -i *.deb
travis_time_end

travis_time_start build_debian_unstable.script
cd $CI_SOURCE_PATH
mkdir build
Expand Down

0 comments on commit ef5eea8

Please sign in to comment.