From 1ce30bf65f8ede198102241f5103e9af2e89bcf6 Mon Sep 17 00:00:00 2001 From: swdee Date: Thu, 23 Nov 2023 20:43:28 +1300 Subject: [PATCH] adjusted Makefile to build for debian bookworm --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index e2b759e5..3a79f6e8 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ BUILD_SHARED_LIBS?=ON # Package list for each well-known Linux distribution RPMS=cmake curl wget git gtk2-devel libpng-devel libjpeg-devel libtiff-devel tbb tbb-devel libdc1394-devel unzip gcc-c++ DEBS=unzip wget build-essential cmake curl git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev +DEBS_BOOKWORM=unzip wget build-essential cmake curl git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev libtbbmalloc2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev DEBS_UBUNTU_JAMMY=unzip wget build-essential cmake curl git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-dev JETSON=build-essential cmake git unzip pkg-config libjpeg-dev libpng-dev libtiff-dev libavcodec-dev libavformat-dev libswscale-dev libgtk2.0-dev libcanberra-gtk* libxvidcore-dev libx264-dev libgtk-3-dev libtbb2 libtbb-dev libdc1394-22-dev libv4l-dev v4l-utils libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavresample-dev libvorbis-dev libxine2-dev libfaac-dev libmp3lame-dev libtheora-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenblas-dev libatlas-base-dev libblas-dev liblapack-dev libeigen3-dev gfortran libhdf5-dev protobuf-compiler libprotobuf-dev libgoogle-glog-dev libgflags-dev @@ -33,9 +34,13 @@ else ifneq ($(shell which apt-get 2>/dev/null),) ifneq ($(shell cat /etc/os-release 2>/dev/null | grep "Jammy Jellyfish"),) distro_deps=deps_ubuntu_jammy +else +ifneq ($(shell cat /etc/debian_version 2>/dev/null | grep "12."),) + distro_deps=deps_debian_bookworm else distro_deps=deps_debian endif +endif else ifneq ($(shell which yum 2>/dev/null),) distro_deps=deps_rh_centos @@ -52,6 +57,10 @@ deps_rh_centos: deps_fedora: sudo dnf -y install pkgconf-pkg-config $(RPMS) +deps_debian_bookworm: + sudo apt-get -y update + sudo apt-get -y install $(DEBS_BOOKWORM) + deps_debian: sudo apt-get -y update sudo apt-get -y install $(DEBS)