Skip to content

Commit e5d972b

Browse files
committed
azure-pipelines.yml: Fix ros:rolling CI
The ros:rolling docker container uses noble as base image as of osrf/docker_images#731, which by default comes with GNU 13.2.0. Libwebsockets, ToF and tof-ros2 are not compatible with this compiler version, so downgrade it to gcc-9. Signed-off-by: bia1708 <[email protected]>
1 parent 915380d commit e5d972b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CI/dependencies_setup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Base Image Updates
44
sudo apt-get update -y
5-
sudo apt-get install -y git cmake build-essential apt-utils libssl-dev wget
5+
sudo apt-get install -y git gcc-9 g++-9 cmake build-essential apt-utils libssl-dev wget
66

77
# Install cmake v3.20
88
wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz
@@ -24,7 +24,7 @@ sudo apt-get install libssl-dev
2424
git clone --branch v3.1-stable --depth 1 https://github.com/warmcat/libwebsockets
2525
cd libwebsockets
2626
mkdir build_3_1 && cd build_3_1
27-
sudo cmake -DLWS_WITH_SSL=OFF -DLWS_STATIC_PIC=ON -DCMAKE_INSTALL_PREFIX=/opt/websockets ..
27+
sudo cmake -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DLWS_WITH_SSL=OFF -DLWS_STATIC_PIC=ON -DCMAKE_INSTALL_PREFIX=/opt/websockets ..
2828
sudo cmake --build . --target install
2929

3030
# Install Protobuf

azure-pipelines.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ steps:
4343
cd ToF
4444
mkdir build
4545
cd build
46-
sudo cmake -DWITH_EXAMPLES=off -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
46+
sudo cmake -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DWITH_EXAMPLES=off -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
4747
sudo make install .
4848
4949
displayName: 'ToF Build'
@@ -80,6 +80,6 @@ steps:
8080
git clone -b ${{ variables.BRANCH_NAME }} https://github.com/analogdevicesinc/tof-ros2
8181
cd ../
8282
source /opt/ros/rolling/setup.sh
83-
colcon build
83+
colcon build --cmake-args -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9
8484
condition: eq( variables['buildContainer'], 'ubuntu_22_04_ros2_rolling' )
8585
displayName: 'ros2_rolling'

0 commit comments

Comments
 (0)