The reference precompiled runtime is based on rpicam-apps v1.12.0. Building from source is the best option when you need to track a different Raspberry Pi OS/libcamera version or incorporate the DRM behavior into another custom rpicam-apps build.
On Raspberry Pi OS Lite 64-bit:
sudo apt update
sudo apt install -y \
git cmake meson ninja-build \
libcamera-dev libjpeg-dev libpng-dev libtiff-dev \
libboost-program-options-dev libdrm-dev libexif-devPackage names can change between Raspberry Pi OS releases. If a dependency name is unavailable, use the current Raspberry Pi rpicam-apps build documentation for that OS release.
git clone --branch v1.12.0 --depth 1 \
https://github.com/raspberrypi/rpicam-apps.git
cd rpicam-appsgit apply /path/to/SeekerHD-RaspberryPi-Helper/patches/rpicam-apps-v1.12.0-full-frame-drm.patchVerify:
git diff -- preview/drm_preview.cppmeson setup build \
-Denable_libav=disabled \
-Denable_drm=enabled \
-Denable_egl=disabled \
-Denable_qt=disabled \
-Denable_opencv=disabled \
-Denable_tflite=disabled \
-Denable_hailo=disabledOn a Pi Zero 2 W or another memory-constrained Pi, use one build job:
meson compile -C build -j 1The equivalent Ninja form is:
ninja -C build -j1Two approaches are possible.
sudo meson install -C build
sudo ldconfigThen use the installed rpicam-hello normally.
The SeekerHD installer uses a private runtime under /opt/divimath/rpicam instead of replacing Raspberry Pi OS's packaged rpicam-apps.
Copy the matching artifacts from the build tree:
build/apps/rpicam-hello
build/preview/drm-preview.so
build/librpicam_app.so.1.12.0
Preserve the shared-library symlinks:
librpicam_app.so.1 -> librpicam_app.so.1.12.0
librpicam_app.so -> librpicam_app.so.1
The rpicam-hello binary has a relative runpath to find the private librpicam_app one directory above it. The DRM preview is selected at runtime using --preview-libs.
libcamera does not guarantee a stable binary ABI. A precompiled drm-preview.so is linked against the libcamera ABI present when it was built. If Raspberry Pi OS changes libcamera ABI, rebuild rpicam-apps against the installed libcamera-dev rather than mixing incompatible binaries.