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

조회 수: 18 (최근 30일)
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
Prasanth Sunkara
Prasanth Sunkara 2025년 10월 23일
Hi Yosuke, could you reach out to MathWorks Technical support? They can help you investigate this issue and suggest solutions/workarounds if possible

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by