Skip to content

Commit e35ffb6

Browse files
authored
Tools: install Debian 12 prereqs
1 parent c5b9f50 commit e35ffb6

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

Tools/environment_install/install-prereqs-ubuntu.sh

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ if [ ${RELEASE_CODENAME} == 'bionic' ] ; then
8484
SITLCFML_VERSION="2.4"
8585
PYTHON_V="python3"
8686
PIP=pip3
87+
elif [ ${RELEASE_CODENAME} == 'bookworm' ]; then
88+
SITLFML_VERSION="2.5"
89+
SITLCFML_VERSION="2.5"
90+
PYTHON_V="python3"
91+
PIP=pip3
8792
elif [ ${RELEASE_CODENAME} == 'buster' ]; then
8893
SITLFML_VERSION="2.5"
8994
SITLCFML_VERSION="2.5"
@@ -162,7 +167,8 @@ fi
162167
ARM_LINUX_PKGS="g++-arm-linux-gnueabihf $INSTALL_PKG_CONFIG"
163168
# python-wxgtk packages are added to SITL_PKGS below
164169

165-
if [ ${RELEASE_CODENAME} == 'lunar' ] ||
170+
if [ ${RELEASE_CODENAME} == 'bookworm' ] ||
171+
[ ${RELEASE_CODENAME} == 'lunar' ] ||
166172
[ ${RELEASE_CODENAME} == 'mantic' ]; then
167173
# on Lunar (and presumably later releases), we install in venv, below
168174
PYTHON_PKGS+=" numpy pyparsing psutil"
@@ -173,7 +179,8 @@ fi
173179

174180
# add some packages required for commonly-used MAVProxy modules:
175181
if [[ $SKIP_AP_GRAPHIC_ENV -ne 1 ]]; then
176-
if [ ${RELEASE_CODENAME} == 'lunar' ] ||
182+
if [ ${RELEASE_CODENAME} == 'bookworm' ] ||
183+
[ ${RELEASE_CODENAME} == 'lunar' ] ||
177184
[ ${RELEASE_CODENAME} == 'mantic' ]; then
178185
PYTHON_PKGS+=" matplotlib scipy opencv-python pyyaml"
179186
SITL_PKGS+=" xterm libcsfml-dev libcsfml-audio${SITLCFML_VERSION} libcsfml-dev libcsfml-graphics${SITLCFML_VERSION} libcsfml-network${SITLCFML_VERSION} libcsfml-system${SITLCFML_VERSION} libcsfml-window${SITLCFML_VERSION} libsfml-audio${SITLFML_VERSION} libsfml-dev libsfml-graphics${SITLFML_VERSION} libsfml-network${SITLFML_VERSION} libsfml-system${SITLFML_VERSION} libsfml-window${SITLFML_VERSION}"
@@ -261,6 +268,8 @@ elif [ ${RELEASE_CODENAME} == 'groovy' ] ||
261268
[ ${RELEASE_CODENAME} == 'jammy' ]; then
262269
BASE_PKGS+=" python-is-python3"
263270
SITL_PKGS+=" libpython3-stdlib" # for argparse
271+
elif [ ${RELEASE_CODENAME} == 'bookworm' ]; then
272+
SITL_PKGS+=" libpython3-stdlib" # for argparse
264273
elif [ ${RELEASE_CODENAME} == 'lunar' ]; then
265274
SITL_PKGS+=" libpython3-stdlib" # for argparse
266275
elif [ ${RELEASE_CODENAME} == 'buster' ]; then
@@ -277,6 +286,8 @@ if [[ $SKIP_AP_GRAPHIC_ENV -ne 1 ]]; then
277286
elif [ ${RELEASE_CODENAME} == 'groovy' ] ||
278287
[ ${RELEASE_CODENAME} == 'focal' ]; then
279288
SITL_PKGS+=" libjpeg8-dev"
289+
elif [ ${RELEASE_CODENAME} == 'bookworm' ]; then
290+
SITL_PKGS+=" libgtk-3-dev libwxgtk3.2-dev "
280291
elif [ ${RELEASE_CODENAME} == 'lunar' ]; then
281292
SITL_PKGS+=" libgtk-3-dev libwxgtk3.2-dev "
282293
elif [ ${RELEASE_CODENAME} == 'mantic' ]; then
@@ -293,10 +304,14 @@ if [[ $SKIP_AP_GRAPHIC_ENV -ne 1 ]]; then
293304
SITL_PKGS+=" fonts-freefont-ttf libfreetype6-dev libjpeg8-dev libpng12-0 libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev" # for pygame
294305
fi
295306

296-
if [ ${RELEASE_CODENAME} == 'lunar' ]; then
307+
if [ ${RELEASE_CODENAME} == 'bookworm' ]; then
297308
PYTHON_PKGS+=" opencv-python"
298309
SITL_PKGS+=" python3-wxgtk4.0"
299310
SITL_PKGS+=" fonts-freefont-ttf libfreetype6-dev libpng16-16 libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev" # for pygame
311+
elif [ ${RELEASE_CODENAME} == 'lunar' ]; then
312+
PYTHON_PKGS+=" wxpython opencv-python"
313+
SITL_PKGS+=" python3-wxgtk4.0"
314+
SITL_PKGS+=" fonts-freefont-ttf libfreetype6-dev libpng16-16 libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev" # for pygame
300315
elif [ ${RELEASE_CODENAME} == 'mantic' ]; then
301316
PYTHON_PKGS+=" wxpython opencv-python"
302317
SITL_PKGS+=" python3-wxgtk4.0"
@@ -343,7 +358,8 @@ fi
343358
PIP_USER_ARGUMENT="--user"
344359

345360
# create a Python venv on more recent releases:
346-
if [ ${RELEASE_CODENAME} == 'lunar' ] ||
361+
if [ ${RELEASE_CODENAME} == 'bookworm' ] ||
362+
[ ${RELEASE_CODENAME} == 'lunar' ] ||
347363
[ ${RELEASE_CODENAME} == 'mantic' ]; then
348364
$APT_GET install python3.11-venv
349365
python3 -m venv $HOME/venv-ardupilot
@@ -369,7 +385,8 @@ if [ "$GITHUB_ACTIONS" == "true" ]; then
369385
PIP_USER_ARGUMENT+=" --progress-bar off"
370386
fi
371387

372-
if [ ${RELEASE_CODENAME} == 'lunar' ] ||
388+
if [ ${RELEASE_CODENAME} == 'bookworm' ] ||
389+
[ ${RELEASE_CODENAME} == 'lunar' ] ||
373390
[ ${RELEASE_CODENAME} == 'mantic' ]; then
374391
# must do this ahead of wxPython pip3 run :-/
375392
$PIP install $PIP_USER_ARGUMENT -U attrdict3

0 commit comments

Comments
 (0)