Skip to content

Commit 2575f39

Browse files
committed
Take into account that package was renamed from Ubuntu 22 -> 23
1 parent 9461325 commit 2575f39

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

install_dependencies.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ elif [[ "$unamestr" == 'Linux' ]]; then
1515
elif [[ "$unamestr" == 'Darwin' ]]; then
1616
platform='macOS'
1717
fi
18+
major=${release%%.*}
1819

1920
if [[ "$platform" == 'macOS' ]]; then
2021
echo "Executing brew bundle"
@@ -70,11 +71,15 @@ if [[ "$platform" == 'macOS' ]]; then
7071
elif [[ "$platform" == 'linux' ]]; then
7172
. /etc/os-release
7273
if [ "$distribution" == 'Ubuntu' ] || [ "$distribution" == 'LinuxMint' ]; then
73-
74+
if [[ "$major" -le 22 ]]; then
75+
additional_deps="libqt6core5compat6-dev"
76+
else
77+
additional_deps="qt6-5compat-dev"
78+
fi
7479
sudo apt-get update && sudo apt-get install -y build-essential verilator \
7580
lsb-release git cmake pkgconf libboost-all-dev qt6-base-dev \
7681
libpython3-dev ccache autoconf autotools-dev libsodium-dev \
77-
libqt6svg6-dev libqt6svg6* libqt6core5compat6 qt6-5compat-dev \
82+
libqt6svg6-dev libqt6svg6* \
7883
ninja-build lcov gcovr python3-sphinx \
7984
doxygen python3-sphinx-rtd-theme python3-jedi python3-pip \
8085
pybind11-dev python3-pybind11 rapidjson-dev libspdlog-dev libz3-dev z3 \

0 commit comments

Comments
 (0)