Skip to content

Commit

Permalink
Fix ROS build
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Mar 4, 2024
1 parent 6fa9442 commit 39cd8d5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion builder/image-build-ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ vcs import --input noetic.rosinstall ./src
#cd ~/ros_catkin_ws

echo "--- Resolve dependencies"
rosdep install --from-paths ./src --ignore-packages-from-source --rosdistro $ROS_DISTRO -y --os=debian:bullseye --skip-keys="python3-catkin-pkg-modules libboost-thread python3-rosdep-modules"
rosdep install --from-paths ./src --ignore-packages-from-source --rosdistro $ROS_DISTRO -y --os=debian:bullseye --skip-keys="python3-catkin-pkg-modules libboost-thread python3-rosdep-modules" || true

echo "--- Install missing dependencies"
apt-get install -y liborocos-kdl1.5 geographiclib-tools libgeographiclib-dev

echo "-- Install geographiclib datasets"
wget https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh
./install_geographiclib_datasets.sh

echo "--- Apply patches"
wget https://github.com/ros/rosconsole/pull/58.patch
Expand All @@ -76,6 +83,9 @@ patch -p1 -d src/rosconsole < 58.patch
wget https://github.com/ros/ros_comm/pull/2353.patch
patch -p2 -d src/ros_comm < 2353.patch

wget https://github.com/AJahueyM/web_video_server/commit/5b722eb0822bcc3fe45fefe7b393b87bfe004417.patch
patch -p2 -d src/web_video_server < 5b722eb0822bcc3fe45fefe7b393b87bfe004417.patch

echo "--- Build ROS"
# https://github.com/ros/catkin/issues/863#issuecomment-290392074
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
Expand Down

0 comments on commit 39cd8d5

Please sign in to comment.