How can I deploy some GUI (from app designer) into a raspberry pi 4?

21 views (last 30 days)
I created an app and I want to compile for run it in a raspberry pi 4... But I don't know if it is possible
I installed an virtual machine (with Ubuntu 20.04 LTS, my main machine have Windows 10) and compile the app there, then I try to install the app in the raspberry pi 4 (I try with two os raspbian and Ubuntu Desktop 21.04) but I can't install the files [As you can see I have never used before a linux based operating system]. Same thing trying to install runtime and matlab (needed for run the app) in the terminal show up an error (show in the image).
I think the problem is the architecture (is an ARM processor instead of a 'normal' desktop), but not sure...
However, can someone explain me, if can I deploy the GUI and run as soon as the os started?
I found the documentation and videos of the Raspberry Pi Support from MATLAB, but when I try to follow the tutorial [ https://www.mathworks.com/videos/deploy-matlab-algorithms-on-raspberry-pi-1591965724601.html ] (they used Algorithms I want a GUI) some error appears... Maybe I have to do something different, but again I don't know if it is possible.
All of this It's for a school project. Really appreciate the answers I'm a rookie with this subjects
  2 Comments
Rik
Rik on 23 Jan 2022
Comment posted as answer by @John Alabi:
Hello, Did you get a solution to this yet?
Rik
Rik on 23 Jan 2022
I personally make sure my code is compatible with Octave. It is painfully slow, but it does work on the Pi as well, as there is an ARM Octave build.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 23 Jan 2022
No, Application Compiler uses MATLAB Compiler, which can only target (Intel) Linux, (Intel) WIndows, or (Intel) MacOS (ARM MacOS would be through Rosetta 2)
For Raspberry Pi, you can use MATLAB Coder, or you can build a Simulink project and Deploy to Raspberry .
Not much is supported in the way of graphics. I am not sure at the moment that any graphics are supported through MATLAB Compiler. The support through Simulink is by way of a few blocks that effectively only write images, if I recall correctly. (Perhaps small LCD display support might exist as well; I would need to research that.)
Interactive facilities such as mouse and menus are not supported for deployment to Raspberry (unless you can find SImulink blocks for them.)

Categories

Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!