Skip to content

Commit

Permalink
build: add bionic specific dependencies install step (quick-hack)
Browse files Browse the repository at this point in the history
- copy mod commited in be78596 that are not merged in the master branch so that the CI built dependencies push the fix
  • Loading branch information
RedLeader962 committed Sep 10, 2024
1 parent 6aa08f3 commit addba71
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build_system/ubuntu/lpm_install_dependencies_general_ubuntu.bash
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ sudo apt-get update &&
curl \
wget \
git \
software-properties-common \
&& sudo apt-get install --assume-yes "${APT_FLAGS[@]}" \
g++ \
gcc \
Expand All @@ -87,6 +88,22 @@ sudo apt-get update &&

##cmake --version

# Retrieve ubuntu version number: DISTRIB_RELEASE
source /etc/lsb-release
print_msg "Ubuntu version is ${DISTRIB_RELEASE}"
if [[ ${DISTRIB_RELEASE} == '18.04' ]]; then
# Update Bionic outdated compiler
# Ref https://github.com/norlab-ulaval/libpointmatcher/pull/581#issuecomment-2284415233
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update &&
sudo apt-get install --assume-yes "${APT_FLAGS[@]}" \
gcc-9 \
g++-9 &&
sudo rm -rf /var/lib/apt/lists/*
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
fi


teamcity_service_msg_blockClosed
# .................................................................................................

Expand Down

0 comments on commit addba71

Please sign in to comment.