-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpi_build_notes.txt
29 lines (22 loc) · 1.08 KB
/
rpi_build_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Starting from a clean Raspbian Lite Bookworm install.
Increase size of swap if you have less than 2GB:
in /etc/dphys-swapfile, set CONF_SWAPFILE=2048
run: sudo dphys-swapfile setup
Install:
git git-lfs g++ cmake ninja-build libvips-dev python3-dev
Building on a lower power Raspberry Pi, like a Zero 2, can be very slow.
Consider using distcc to accelerate the build: see distcc_notes.txt.
Otherwise be patient!
The package manager libvips should be good enough for most use cases.
But if you want raw image support, you'll need to build it and ImageMagick
from scratch; don't install "libvips-dev" and see "libvips_build_notes.txt".
Add vcpkg environment variables to ~/.profile:
export VCPKG_FORCE_SYSTEM_BINARIES=1 # Required
export VCPKG_MAX_CONCURRENCY=2 # For Zero 2 if not using distcc
Reload profile:
run: . ~/.profile
Build cadre:
run: git clone --recurse-submodules https://github.com/DDoS/Cadre.git
run: cd Cadre/vcpkg && ./bootstrap-vcpkg.sh
run: cd ../encre && cmake --workflow --preset release
run: cd ../cru && cmake --workflow --preset release