Build libcamera
in temp directory
This commit is contained in:
parent
9cccfeacb5
commit
24d2a42ba2
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
workingDirectory="$(pwd)"
|
||||||
|
contextRoot="$(mktemp -d)"
|
||||||
|
cd "$contextRoot"
|
||||||
|
|
||||||
sudo apt install -y \
|
sudo apt install -y \
|
||||||
build-essential meson ninja-build pkg-config libgnutls28-dev openssl \
|
build-essential meson ninja-build pkg-config libgnutls28-dev openssl \
|
||||||
python3-pip python3-yaml python3-ply python3-jinja2 \
|
python3-pip python3-yaml python3-ply python3-jinja2 \
|
||||||
|
@ -9,3 +13,6 @@ cd libcamera
|
||||||
meson build -Dpipelines=uvcvideo,vimc,ipu3 -Dipas=vimc,ipu3 -Dprefix=/usr -Dgstreamer=enabled
|
meson build -Dpipelines=uvcvideo,vimc,ipu3 -Dipas=vimc,ipu3 -Dprefix=/usr -Dgstreamer=enabled
|
||||||
ninja -C build
|
ninja -C build
|
||||||
sudo ninja -C build install
|
sudo ninja -C build install
|
||||||
|
|
||||||
|
cd "$workingDirectory"
|
||||||
|
rm -rf "$contextRoot"
|
||||||
|
|
Loading…
Reference in a new issue