- From Home tab, go to Add-Ons and click on Manage Add-Ons
- Search for MATLAB Support Package for Raspberry Pi Hardware
- Click on the gear icon at the end and follow the screens
when i want connect to raspberry occure error: Error executing command "make ONLY_MATLAB_IO=0 -C /opt/MATLAB/mw_server_v21.1.0 -f Makefile"
10 views (last 30 days)
Show older comments
Matin
on 17 Aug 2023
Commented: Matin
on 22 Aug 2023
>> r=raspi();
### Updating Raspberry Pi I/O server...
### Connecting to board...
### Connected to 192.168.1.116...
### Installing userland software (this might take a while)...
### Installing nanomsg Library (this might take a while)...
### Creating server folder...
### Transferring source files...
### Building MATLAB I/O server...
Error executing command "make ONLY_MATLAB_IO=0 -C /opt/MATLAB/mw_server_v21.1.0 -f Makefile". Details:
STDERR: IO_wrapperCameraboard.c: In function ‘camerboardInitialize’:
IO_wrapperCameraboard.c:38:19: warning: pointer targets in assignment from ‘uint8_T *’ {aka ‘unsigned
char *’} to ‘char_T *’ {aka ‘char *’} differ in signedness [-Wpointer-sign]
38 | controlParams = &payloadBufferRx[index];
| ^
IO_wrapperCameraboard.c:41:5: warning: implicit declaration of function ‘printf’
[-Wimplicit-function-declaration]
41 | printf("REQUEST_CAMERABOARD_INIT: (w, h, fps, q) = [%d, %d, %d, %d]\n", width, height,
| ^~~~~~
IO_wrapperCameraboard.c:41:5: warning: incompatible implicit declaration of built-in function ‘printf’
IO_wrapperCameraboard.c:11:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
10 | #include "IO_wrapperCameraboard.h"
+++ |+#include <stdio.h>
11 |
IO_wrapperCameraboard.c: In function ‘cameraboardSnapshot’:
IO_wrapperCameraboard.c:66:5: warning: incompatible implicit declaration of built-in function ‘printf’
66 | printf("REQUEST_CAMERABOARD_SNAPSHOT \n");
| ^~~~~~
IO_wrapperCameraboard.c:66:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
IO_wrapperCameraboard.c: In function ‘cameraboardControl’:
IO_wrapperCameraboard.c:95:19: warning: pointer targets in assignment from ‘uint8_T *’ {aka ‘unsigned
char *’} to ‘char_T *’ {aka ‘char *’} differ in signedness [-Wpointer-sign]
95 | controlParams = &payloadBufferRx[0];
| ^
IO_wrapperCameraboard.c:96:5: warning: incompatible implicit declaration of built-in function ‘printf’
96 | printf("REQUEST_CAMERABOARD_CONTROL: %s \n", controlParams);
| ^~~~~~
IO_wrapperCameraboard.c:96:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
IO_wrapperCameraboard.c: In function ‘cameraboardTerminate’:
IO_wrapperCameraboard.c:118:5: warning: incompatible implicit declaration of built-in function ‘printf’
118 | printf("REQUEST_CAMERABOARD_TERMINATE \n");
| ^~~~~~
IO_wrapperCameraboard.c:118:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
picam.c:19:10: fatal error: RaspiCamControl.h: No such file or directory
19 | #include "RaspiCamControl.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:78: obj/picam.o] Error 1
STDOUT: make: Entering directory '/opt/MATLAB/mw_server_v21.1.0'
[Compiling] IO_wrapperv4l2.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include -I/opt/userland/interface/vcos
-I/opt/userland/interface/vcos/pthreads -I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline -pipe -D_DEBUG
-D_MATLABIO_ -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE IO_wrapperv4l2.c -o obj/IO_wrapperv4l2.o
[Compiling] MW_PWM.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include -I/opt/userland/interface/vcos
-I/opt/userland/interface/vcos/pthreads -I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline -pipe -D_DEBUG
-D_MATLABIO_ -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE MW_PWM.c -o obj/MW_PWM.o
[Compiling] MW_pigs.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include -I/opt/userland/interface/vcos
-I/opt/userland/interface/vcos/pthreads -I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline -pipe -D_DEBUG
-D_MATLABIO_ -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE MW_pigs.c -o obj/MW_pigs.o
[Compiling] sharedServer.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include -I/opt/userland/interface/vcos
-I/opt/userland/interface/vcos/pthreads -I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline -pipe -D_DEBUG
-D_MATLABIO_ -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE sharedServer.c -o obj/sharedServer.o
[Compiling] IO_wrapperCameraboard.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include -I/opt/userland/interface/vcos
-I/opt/userland/interface/vcos/pthreads -I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline -pipe -D_DEBUG
-D_MATLABIO_ -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE IO_wrapperCameraboard.c -o
obj/IO_wrapperCameraboard.o
[Compiling] LED.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include -I/opt/userland/interface/vcos
-I/opt/userland/interface/vcos/pthreads -I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline -pipe -D_DEBUG
-D_MATLABIO_ -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE LED.c -o obj/LED.o
[Compiling] picam.c
gcc -c -g -O0 -D_DEBUG -Wall -I/opt/userland
-I/opt/userland/host_applications/linux/libs/bcm_host/include -I/opt/userland/interface/vcos
-I/opt/userland/interface/vcos/pthreads -I/opt/userland/interface/vmcs_host/linux
-I/opt/userland/host_applications/linux/apps/raspicam -I/opt/nanomsg/include -Winline -pipe -D_DEBUG
-D_MATLABIO_ -DMW_WEBSOC_INUSE -DMW_ENCODER_INUSE picam.c -o obj/picam.o
make: Leaving directory '/opt/MATLAB/mw_server_v21.1.0'
>> uiopen('C:\Users\matin\Desktop\RaspiCamControl.h',1)
>> install('C:\Users\matin\Desktop\RaspiCamControl.h')
Undefined function 'install' for input arguments of type 'char'.
>> putfile(pi,'C:\Users\matin\Desktop\RaspiCamControl.h','/opt/MATLAB/mw_server_v21.1.0')
Undefined function 'putfile' for input arguments of type 'double'.
>> putfile(pi,'C:\Users\matin\Desktop\RaspiCamControl.h','/opt/MATLAB/mw_server_v21.1.0/')
Unrecognized function or variable 'putfile'.
>> putFile(pi,'C:\Users\matin\Desktop\RaspiCamControl.h','/opt/MATLAB/mw_server_v21.1.0/')
Undefined function 'putFile' for input arguments of type 'double'.
what i do to solve this problem??
0 Comments
Accepted Answer
MathWorks MATLAB Hardware Team
on 17 Aug 2023
Hi,
Setup the Raspberry Pi hardware using hardware setup screen to resolve this issue, you can follow these steps
Thanks,
MATLAB Hardware Team
MathWorks
More Answers (0)
See Also
Categories
Find more on Installation Setup and Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!