Raspberry Pi Setup Error

9 次查看(过去 30 天)
Veluvolu
Veluvolu 2023-12-9
回答: arushi 2024-7-29,9:20
Error executing command "make ONLY_MATLAB_IO=0 -C /opt/MATLAB/mw_server_v23.2.0 -f Makefile". Details:
STDERR: ^~
frameBuffer.c:54:31: note: did you mean to dereference the pointer?
54 | for(ii=0;ii<100 & glob_buffer.gl_pathv[i] != '\0';ii++)
| ^
frameBuffer.c:54:24: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
54 | for(ii=0;ii<100 & glob_buffer.gl_pathv[i] != '\0';ii++)
| ~~^~~~
frameBuffer.c: In function ‘EXT_FRAMEBUFFER_WRITEPIXEL’:
frameBuffer.c:80:9: warning: unused variable ‘ii’ [-Wunused-variable]
80 | int ii ;
| ^~
frameBuffer.c: In function ‘EXT_FRAMEBUFFER_DISPLAYIMAGE’:
frameBuffer.c:107:17: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
107 | for(ii=0; ii<100 & sh_fbname[ii] != '\0'; ii++)
| ~~^~~~
frameBuffer.c:105:10: warning: variable ‘fileName’ set but not used [-Wunused-but-set-variable]
105 | char fileName[100];
| ^~~~~~~~
frameBuffer.c:104:9: warning: unused variable ‘pxllocation’ [-Wunused-variable]
104 | int pxllocation=0;
| ^~~~~~~~~~~
joystick.c: In function ‘EXT_JOYSTICK_INIT’:
joystick.c:45:56: warning: comparison between pointer and zero character constant [-Wpointer-compare]
45 | for(ii=0; ii<100 & glob_buffer.gl_pathv[i] != '\0'; ii++)
| ^~
joystick.c:45:32: note: did you mean to dereference the pointer?
45 | for(ii=0; ii<100 & glob_buffer.gl_pathv[i] != '\0'; ii++)
| ^
joystick.c:45:25: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
45 | for(ii=0; ii<100 & glob_buffer.gl_pathv[i] != '\0'; ii++)
| ~~^~~~
joystick.c: In function ‘EXT_JOYSTICK_READ’:
joystick.c:82:17: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
82 | for(ii=0;(ii<100 & sh_evdevName[ii] != '\0');ii++)
| ~~^~~~
IO_wrapperNanomsgPubSub.c: In function ‘nanomsgPubInit’:
IO_wrapperNanomsgPubSub.c:49:13: warning: pointer targets in assignment from ‘uint8_T *’ {aka ‘unsigned char *’} to ‘char_T *’ {aka ‘char *’} differ in
signedness [-Wpointer-sign]
49 | mdlName = &payloadBufferRx[1];
| ^
IO_wrapperNanomsgPubSub.c: In function ‘nanomsgSubInit’:
IO_wrapperNanomsgPubSub.c:73:13: warning: pointer targets in assignment from ‘uint8_T *’ {aka ‘unsigned char *’} to ‘char_T *’ {aka ‘char *’} differ in
signedness [-Wpointer-sign]
73 | mdlName = &payloadBufferRx[1];
| ^
IO_wrapperNanomsgPubSub.c: In function ‘nanomsgClientSend’:
IO_wrapperNanomsgPubSub.c:101:14: warning: pointer targets in assignment from ‘uint8_T *’ {aka ‘unsigned char *’} to ‘char_T *’ {aka ‘char *’} differ in
signedness [-Wpointer-sign]
101 | jsonData = &payloadBufferRx[index];
| ^
IO_wrapperNanomsgPubSub.c: In function ‘nanomsgClientRecv’:
IO_wrapperNanomsgPubSub.c:112:14: warning: unused variable ‘index’ [-Wunused-variable]
112 | uint32_T index = 0;
| ^~~~~
MW_Pyserver_control.c: In function ‘MW_execmd’:
MW_Pyserver_control.c:127:9: warning: unused variable ‘ret’ [-Wunused-variable]
127 | int ret = 0, bufferLoc = 0;
| ^~~
MW_Pyserver_control.c: In function ‘MW_getDefines’:
MW_Pyserver_control.c:43:29: warning: ‘MW_pyserver.py’ directive writing 14 bytes into a region of size between 1 and 65535 [-Wformat-overflow=]
43 | sprintf(pyserverLoc, "%sMW_pyserver.py", exePath);
| ^~~~~~~~~~~~~~
MW_Pyserver_control.c:43:5: note: ‘sprintf’ output between 15 and 65549 bytes into a destination of size 65535
43 | sprintf(pyserverLoc, "%sMW_pyserver.py", exePath);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MW_Pyserver_control.c: In function ‘MW_killPyserver’:
MW_Pyserver_control.c:69:34: warning: ‘%s’ directive writing up to 65534 bytes into a region of size 186 [-Wformat-overflow=]
69 | sprintf(buff, "sudo pkill -f %s", pyserverLoc);
| ^~ ~~~~~~~~~~~
MW_Pyserver_control.c:69:5: note: ‘sprintf’ output between 15 and 65549 bytes into a destination of size 200
69 | sprintf(buff, "sudo pkill -f %s", pyserverLoc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MW_Pyserver_control.c: In function ‘MW_launchPyserver’:
MW_Pyserver_control.c:95:24: warning: ‘%s’ directive writing up to 65534 bytes into a region of size 250 [-Wformat-overflow=]
95 | sprintf(cmd, "sudo %s %s >/tmp/mw_websoc_sl_io.log &", pyserverLoc, jsonFileLoc);
| ^~ ~~~~~~~~~~~
MW_Pyserver_control.c:95:5: note: ‘sprintf’ output between 35 and 66592 bytes into a destination of size 255
95 | sprintf(cmd, "sudo %s %s >/tmp/mw_websoc_sl_io.log &", pyserverLoc, jsonFileLoc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MW_JSONParser.c: In function ‘MW_getSignalStr’:
MW_JSONParser.c:22:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
22 | *SigStr = json_object_to_json_string(Signals);
| ^
MW_JSONParser.c: In function ‘MW_getDashboardSourceData’:
MW_JSONParser.c:40:20: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
40 | *BlockLabelStr = json_object_get_string(blocklabelWithID);
| ^
MW_JSONParser.c:44:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
44 | *BlockIDStr = json_object_get_string(blockID);
| ^
MW_JSONParser.c:35:9: warning: variable ‘keyExists’ set but not used [-Wunused-but-set-variable]
35 | int keyExists;
| ^~~~~~~~~
MW_JSONParser.c: In function ‘MW_getPortData’:
MW_JSONParser.c:62:13: warning: variable ‘dataOut’ set but not used [-Wunused-but-set-variable]
62 | double *dataOut;
| ^~~~~~~
MW_JSONParser.c:61:10: warning: unused variable ‘dataType’ [-Wunused-variable]
61 | char dataType[1024];
| ^~~~~~~~
/usr/bin/ld: cannot find -lmmal
/usr/bin/ld: cannot find -lmmal_core
/usr/bin/ld: cannot find -lmmal_util
/usr/bin/ld: cannot find -lmmal_vc_client
collect2: error: ld returned 1 exit status
make: *** [Makefile:95: build] Error 1
STDOUT: make: Entering directory '/opt/MATLAB/mw_server_v23.2.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 -DMW_PANTILT_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 -DMW_PANTILT_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 -DMW_PANTILT_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 -DMW_PANTILT_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 -DMW_PANTILT_INUSE IO_wrapperCameraboard.c -o obj/IO_wrapperCameraboard.o
[Compiling] IO_wrapperArducamMultiAdapter.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 -DMW_PANTILT_INUSE IO_wrapperArducamMultiAdapter.c -o
obj/IO_wrapperArducamMultiAdapter.o
[Compiling] mw_wrapperCANChannel.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 -DMW_PANTILT_INUSE mw_wrapperCANChannel.c -o obj/mw_wrapperCANChannel.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 -DMW_PANTILT_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 -DMW_PANTILT_INUSE picam.c -o obj/picam.o
[Compiling] arducamMultiAdapter.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 -DMW_PANTILT_INUSE arducamMultiAdapter.c -o obj/arducamMultiAdapter.o
[Compiling] system.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 -DMW_PANTILT_INUSE system.c -o obj/system.o
[Compiling] IO_wrapperLED.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 -DMW_PANTILT_INUSE IO_wrapperLED.c -o obj/IO_wrapperLED.o
[Compiling] MW_digitalIO.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 -DMW_PANTILT_INUSE MW_digitalIO.c -o obj/MW_digitalIO.o
[Compiling] customFunction.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 -DMW_PANTILT_INUSE customFunction.c -o obj/customFunction.o
[Compiling] servoRaspi.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 -DMW_PANTILT_INUSE servoRaspi.c -o obj/servoRaspi.o
[Compiling] IO_checksum.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 -DMW_PANTILT_INUSE IO_checksum.c -o obj/IO_checksum.o
[Compiling] IO_packet.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 -DMW_PANTILT_INUSE IO_packet.c -o obj/IO_packet.o
[Compiling] IO_standardperipherals.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 -DMW_PANTILT_INUSE IO_standardperipherals.c -o obj/IO_standardperipherals.o
[Compiling] IO_wrapperI2C.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 -DMW_PANTILT_INUSE IO_wrapperI2C.c -o obj/IO_wrapperI2C.o
[Compiling] IO_wrapperPulseIn.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 -DMW_PANTILT_INUSE IO_wrapperPulseIn.c -o obj/IO_wrapperPulseIn.o
[Compiling] IO_wrapperSCI.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 -DMW_PANTILT_INUSE IO_wrapperSCI.c -o obj/IO_wrapperSCI.o
[Compiling] PeripheralToHandle.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 -DMW_PANTILT_INUSE PeripheralToHandle.c -o obj/PeripheralToHandle.o
[Compiling] IO_debug.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 -DMW_PANTILT_INUSE IO_debug.c -o obj/IO_debug.o
[Compiling] IO_server.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 -DMW_PANTILT_INUSE IO_server.c -o obj/IO_server.o
[Compiling] IO_utilities.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 -DMW_PANTILT_INUSE IO_utilities.c -o obj/IO_utilities.o
[Compiling] IO_wrapperDigitalIO.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 -DMW_PANTILT_INUSE IO_wrapperDigitalIO.c -o obj/IO_wrapperDigitalIO.o
[Compiling] IO_wrapperPWM.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 -DMW_PANTILT_INUSE IO_wrapperPWM.c -o obj/IO_wrapperPWM.o
[Compiling] IO_wrapperSPI.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 -DMW_PANTILT_INUSE IO_wrapperSPI.c -o obj/IO_wrapperSPI.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiCamControl.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 -DMW_PANTILT_INUSE
/opt/userland/host_applications/linux/apps/raspicam/RaspiCamControl.c -o obj/RaspiCamControl.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiHelpers.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 -DMW_PANTILT_INUSE /opt/userland/host_applications/linux/apps/raspicam/RaspiHelpers.c
-o obj/RaspiHelpers.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiPreview.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 -DMW_PANTILT_INUSE /opt/userland/host_applications/linux/apps/raspicam/RaspiPreview.c
-o obj/RaspiPreview.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiCLI.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 -DMW_PANTILT_INUSE /opt/userland/host_applications/linux/apps/raspicam/RaspiCLI.c -o
obj/RaspiCLI.o
[Compiling] /opt/userland/host_applications/linux/apps/raspicam/RaspiCommonSettings.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 -DMW_PANTILT_INUSE
/opt/userland/host_applications/linux/apps/raspicam/RaspiCommonSettings.c -o obj/RaspiCommonSettings.o
[Compiling] frameBuffer.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 -DMW_PANTILT_INUSE frameBuffer.c -o obj/frameBuffer.o
[Compiling] frameBufferRaspi.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 -DMW_PANTILT_INUSE frameBufferRaspi.c -o obj/frameBufferRaspi.o
[Compiling] joystick.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 -DMW_PANTILT_INUSE joystick.c -o obj/joystick.o
[Compiling] joystickRaspi.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 -DMW_PANTILT_INUSE joystickRaspi.c -o obj/joystickRaspi.o
[Compiling] runCommand.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 -DMW_PANTILT_INUSE runCommand.c -o obj/runCommand.o
[Compiling] IO_wrapperNanomsgPubSub.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 -DMW_PANTILT_INUSE IO_wrapperNanomsgPubSub.c -o obj/IO_wrapperNanomsgPubSub.o
[Compiling] MW_Pyserver_control.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 -DMW_PANTILT_INUSE MW_Pyserver_control.c -o obj/MW_Pyserver_control.o
[Compiling] MW_nanomsgClient.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 -DMW_PANTILT_INUSE MW_nanomsgClient.c -o obj/MW_nanomsgClient.o
[Compiling] MW_JSONParser.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 -DMW_PANTILT_INUSE MW_JSONParser.c -o obj/MW_JSONParser.o
[Compiling] IO_wrapperEncoder.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 -DMW_PANTILT_INUSE IO_wrapperEncoder.c -o obj/IO_wrapperEncoder.o
[Compiling] MW_RaspiEncoder.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 -DMW_PANTILT_INUSE MW_RaspiEncoder.c -o obj/MW_RaspiEncoder.o
[Compiling] IO_wrapper_i2c_pwm_pca9685.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 -DMW_PANTILT_INUSE IO_wrapper_i2c_pwm_pca9685.c -o obj/IO_wrapper_i2c_pwm_pca9685.o
[Compiling] MW_i2c_pwm_pca9685.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 -DMW_PANTILT_INUSE MW_i2c_pwm_pca9685.c -o obj/MW_i2c_pwm_pca9685.o
echo [Linking]
[Linking]
make: Leaving directory '/opt/MATLAB/mw_server_v23.2.0'

回答(1 个)

arushi
arushi 2024-7-29,9:20
Hi Veluvolu,
I understand that you want to know why you are getting this error while setting up Raspberry Pi. Based on the error stack you have provided, it looks like there are several issues with the code that need to be addressed. Here is a breakdown of the warnings and the errors.
Warnings:
  • The code is using a bitwise AND operator (‘&’) instead of a logical AND operator (‘&&’). After correction, the line of code will look like this:
for(ii=0; ii<100 && glob_buffer.gl_pathv[i] != '\0'; ii++)
  • There are multiple variables which are never used. You can remove these variables to get rid of the warnings.
  • A pointer is being compared to the null character constant ‘\0’ instead of the dereferenced pointer value. Dereference the pointer using and asterisk (*). The corrected code is:
for(ii=0; ii<100 && *(glob_buffer.gl_pathv[i]) != '\0'; ii++)
  • There are assignments in the code from ‘uint8_T *’ (unsigned char pointer) to ‘char_T *’ (signed char pointer). Use an explicit cast to match the signs if this assignment is intentional.
mdlName = (char_T *)&payloadBufferRx[1];
Errors:
  • The linker (‘ld’) cannot find the libraries: ‘libmmal’, ‘libmmal_core’, ‘libmmal_util’, ‘libmmal_vc_client’. Make sure that these libraries are installed on the system and the paths are correctly set so that the linker can find them.
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Source Code and Binary Deployment 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by