필터 지우기
필터 지우기

Error During Connection to Raspberry Pi 4

조회 수: 5 (최근 30일)
Arda Kayaalp
Arda Kayaalp 2022년 10월 13일
댓글: Arda Kayaalp 2022년 10월 17일
When I try to create raspberry pi object in our local network, MATLAB throws the following error;
>> raspberrypi = raspi('172.16.0.8','pi','raspberrypi')
### Updating Raspberry Pi I/O server...
### Connecting to board...
### Connected to 172.16.0.8...
### Installing nanomsg Library (this might take a while)...
### Creating server folder...
Error executing command "sudo make -C /opt/MATLAB/mw_server_v22.1.0 SERVER_DIR=/opt/MATLAB/mw_server_v22.1.0 -f Makefile_raspiPeriphs". Details:
STDERR: MW_SocketCAN.c: In function MW_getTimeNow:
MW_SocketCAN.c:139:8: warning: implicit declaration of function ‘gettimeofday’ [-Wimplicit-function-declaration]
139 | if(gettimeofday(&timeNow,NULL)==-1)
| ^~~~~~~~~~~~
MW_I2C.c: In function EXT_I2C_readRegisterH:
MW_I2C.c:145:23: warning: assignment to ‘struct i2c_msg *’ from incompatible pointer type ‘struct i2c_msg (*)[2]’ [-Wincompatible-pointer-types]
145 | i2c_data.msgs = &msg;
| ^
/usr/bin/ld: MW_availableWebcam.c.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `wc' which may bind externally can not be used when making a shared object; recompile with -fPIC
MW_availableWebcam.c.o: in function `getCameraAddrIndex':
MW_availableWebcam.c:(.text+0x140): dangerous relocation: unsupported relocation
/usr/bin/ld: MW_availableWebcam.c.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `wc' which may bind externally can not be used when making a shared object; recompile with -fPIC
MW_availableWebcam.c:(.text+0x20c): dangerous relocation: unsupported relocation
/usr/bin/ld: MW_availableWebcam.c.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `wc' which may bind externally can not be used when making a shared object; recompile with -fPIC
MW_availableWebcam.c.o: in function `getCameraResolution':
MW_availableWebcam.c:(.text+0x2d0): dangerous relocation: unsupported relocation
/usr/bin/ld: MW_availableWebcam.c.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `wc' which may bind externally can not be used when making a shared object; recompile with -fPIC
MW_availableWebcam.c.o: in function `getCameraList':
MW_availableWebcam.c:(.text+0x624): dangerous relocation: unsupported relocation
/usr/bin/ld: MW_availableWebcam.c.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `wc' which may bind externally can not be used when making a shared object; recompile with -fPIC
MW_availableWebcam.c.o: in function `validateResolution':
MW_availableWebcam.c:(.text+0x710): dangerous relocation: unsupported relocation
/usr/bin/ld: MW_availableWebcam.c.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `wc' which may bind externally can not be used when making a shared object; recompile with -fPIC
MW_availableWebcam.c:(.text+0x7b4): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
make: *** [Makefile_raspiPeriphs:206: libmwraspiperipheral.so] Error 1
STDOUT: make: Entering directory '/opt/MATLAB/mw_server_v22.1.0'
gcc -c -MMD -MP -MF"MW_availableWebcam.c.dep" -MT"MW_availableWebcam.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "MW_availableWebcam.c.o" "MW_availableWebcam.c"
gcc -c -MMD -MP -MF"MW_SocketCAN.c.dep" -MT"MW_SocketCAN.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "MW_SocketCAN.c.o" "MW_SocketCAN.c"
gcc -c -MMD -MP -MF"MW_v4l2_cam.c.dep" -MT"MW_v4l2_cam.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "MW_v4l2_cam.c.o" "MW_v4l2_cam.c"
gcc -c -MMD -MP -MF"MW_gpio.c.dep" -MT"MW_gpio.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "MW_gpio.c.o" "MW_gpio.c"
gcc -c -MMD -MP -MF"MW_I2C.c.dep" -MT"MW_I2C.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "MW_I2C.c.o" "MW_I2C.c"
gcc -c -MMD -MP -MF"MW_SPI.c.dep" -MT"MW_SPI.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "MW_SPI.c.o" "MW_SPI.c"
gcc -c -MMD -MP -MF"MW_SCI.c.dep" -MT"MW_SCI.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "MW_SCI.c.o" "MW_SCI.c"
gcc -c -MMD -MP -MF"devices.c.dep" -MT"devices.c.o" -O2 -D_MATLABIO_ -I/opt/MATLAB/mw_server_v22.1.0 -o "devices.c.o" "devices.c"
echo "### Creating dynamic library "libmwraspiperipheral.so" ..."
### Creating dynamic library libmwraspiperipheral.so ...
gcc -shared -lrt -lpthread -ldl -o libmwraspiperipheral.so MW_availableWebcam.c.o MW_SocketCAN.c.o MW_v4l2_cam.c.o MW_gpio.c.o MW_I2C.c.o MW_SPI.c.o MW_SCI.c.o devices.c.o -lm -lm -lstdc++
make: Leaving directory '/opt/MATLAB/mw_server_v22.1.0'
On my Raspberry Pi 4, I have stock 64-Bit Raspbian OS installed. How can I solve this issue?

채택된 답변

Arda Kayaalp
Arda Kayaalp 2022년 10월 13일
When I try to install required packages via Hardware Setup app, at Installing userland step this error comes out;
  댓글 수: 3
Prasanth Sunkara
Prasanth Sunkara 2022년 10월 14일
Hi Arda,
Raspberry Pi 64-bit is not yet supported. MathWorks team is actively looking at adding support for it soon.
At this moment, Buster 32-bit OS is fully supported.
Thanks,
Prasanth
Arda Kayaalp
Arda Kayaalp 2022년 10월 17일
Thank you for the quick answer, I'm looking forward to it.

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by