🚀️ Always up-to-date Dlib binaries for Raspberry Pi - just download and use it.
⭐ If you find this repository useful, please consider giving it a star.
Dlib binaries are compiled with the GCC Toolchain targeting older glibc versions, ensuring compatibility across a wide range of Raspberry Pi boards running Raspberry Pi OS 64-bit. GitHub CI workflows are used to automate the build process: pipelines run daily, but new builds are triggered only when a new Dlib release is available.
- No official Dlib packages. There are no prebuilt official Dlib packages for Raspberry Pi OS, forcing users to compile it from source themselves.
- Slow compilation on Raspberry Pi. Building Dlib directly on a Raspberry Pi can take hours and often runs into the limited RAM available on the device.
- Always up to date. GitHub CI workflows rebuild and publish Dlib automatically whenever a new version is released upstream.
- No extra dependencies. The required libraries are statically linked, so the Dlib binaries only depend on the base system libraries already present on Raspberry Pi OS.
- Dynamically linked with an older glibc version. For details, see the GCC Toolchain.
- Statically linked with libstdc++, libgcc, and OpenBLAS.
If you prefer not to build the Dlib yourself, a precompiled Dlib can be downloaded from the releases page.
curl -sSLo dlib.deb https://github.com/prepkg/dlib-raspberrypi/releases/latest/download/dlib-aarch64-linux-gnu.deb \
&& sudo apt install -y ./dlib.deb \
&& rm -rf dlib.deb- Git
- Docker
- Clone the repository:
git clone https://github.com/prepkg/dlib-raspberrypi.git && cd dlib-raspberrypi- Build the Docker image:
./setup.sh build-image- Build the library:
./setup.sh build-libAfter compilation, the deb package will be available in the build directory.
- (Optional) Run the test to verify that the library links correctly and the resulting binary runs under QEMU:
./setup.sh test-lib