MATLAB I/O Server Build Failure on Raspberry Pi OS Bookworm: Missing Libcamera Header File

42 visualizzazioni (ultimi 30 giorni)
Hi
I encountered a build error when integrating Raspberry Pi with MATLAB. I couldn't find any similar cases, but if there's already a post about this, please let me know.
1. Issue Summary
The MATLAB I/O Server failed to build/update on the target board using the Raspberry Pi Support Package, resulting in a compilation error.
2. Environment and Version Details
Windows11home + MATLAB R2024b (Home License) 
Raspberry Pi Zero 2 W + Raspberry Pi OS Bookworm (32-bit)
Support Package ver 24.2.0
3. Error Details (Fatal Error)
The compilation terminated due to a fatal error, indicating a missing header file related to the camera library during the build process.
Excerpt from the Error Log:
LibCamera.h:26:14: fatal error: core/rpicam_app.hpp: No such file or directory
26 | #include <core/rpicam_app.hpp>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:109: obj/customFunction.o] Error 1
Observation:
  • The MATLAB Support Package documentation(2024b) states that Raspberry Pi OS Bookworm is supported.
  • The error suggests the rpicam_app.hpp header file, which is part of the Libcamera/camera application development files, is missing on the system.
  • The installation of any prerequisite library/package (e.g., rpicam-dev or libcamera-app) has not been performed yet.
4. Questioins
A. Given that the documentation confirms support for Raspberry Pi OS Bookworm, are users required to manually install a specific development package (such as rpicam-dev or libcamera-app) on the Raspberry Pi prior to building the I/O server? If so, please specify the exact package name required to resolve the missing header file error.
B. Have there been any similar reports of this specific compilation error (fatal error: core/rpicam_app.hpp: No such file or directory) when building on Bookworm? If so, please provide the official resolution or link to the relevant Answer.
C. I understand that Raspberry Pi OS Bullseye is no longer officially supported by the Raspberry Pi Foundation. However, concerning the MATLAB Support Package:
Does the older Bullseye release offer greater stability for the MATLAB I/O Server build and execution compared to the officially supported Bookworm release?
  3 Commenti
Prasanth Sunkara
Prasanth Sunkara il 23 Ott 2025 alle 6:40
Hi Yosuke, could you reach out to MathWorks Technical support? They can help you investigate this issue and suggest solutions/workarounds if possible

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Raspberry Pi Hardware in Help Center e File Exchange

Prodotti


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by