2023-07-12 20:37:31 +00:00
|
|
|
#!/bin/bash
|
2023-01-23 14:55:10 +00:00
|
|
|
contextRoot="$(mktemp -d)";
|
2023-03-16 19:14:49 +00:00
|
|
|
pushd "$contextRoot" > /dev/null;
|
2022-11-17 14:30:40 +00:00
|
|
|
|
2022-11-17 14:21:02 +00:00
|
|
|
sudo apt install -y \
|
2022-11-16 17:56:35 +00:00
|
|
|
build-essential meson ninja-build pkg-config libgnutls28-dev openssl \
|
|
|
|
python3-pip python3-yaml python3-ply python3-jinja2 \
|
|
|
|
qtbase5-dev libqt5core5a libqt5gui5 libqt5widgets5 qttools5-dev-tools \
|
|
|
|
libtiff-dev libevent-dev libyaml-dev \
|
2023-01-23 14:55:10 +00:00
|
|
|
gstreamer1.0-tools libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev;
|
2023-01-23 13:19:26 +00:00
|
|
|
|
2023-01-23 14:55:10 +00:00
|
|
|
git clone https://git.libcamera.org/libcamera/libcamera.git;
|
|
|
|
cd libcamera;
|
|
|
|
meson build -Dpipelines=uvcvideo,vimc,ipu3 -Dipas=vimc,ipu3 -Dprefix=/usr -Dgstreamer=enabled;
|
|
|
|
ninja -C build;
|
|
|
|
sudo ninja -C build install;
|
2022-11-17 14:30:40 +00:00
|
|
|
|
2023-03-16 19:14:49 +00:00
|
|
|
popd > /dev/null;
|
2023-01-23 14:55:10 +00:00
|
|
|
rm -rf "$contextRoot";
|