树莓派连接matlab发生的错误

我在安装完matlab树莓派package,并下载了相应的树莓派image,完成后,硬件连接也验证了,但输入mypi=raspi(‘169.254.0.2’,’pi’,’raspberry’)后显示错误如下, detail的信息还有很多, 没有全部拷贝。请教各位大神看看是什么原因?如何解决?
mypi=raspi(‘169.254.0.2’,’pi’,’raspberry’)

Updating Raspberry Pi I/O server…

Connecting to board…

Connected to 169.254.0.2…

Creating server folder…

Transferring source files…

Building MATLAB I/O server…

Error executing command “make -C /opt/MATLAB/server_v18.1.1 -f Makefile”. Details:

STDERR: server.c: In function ‘bindSocket’:
server.c:44:13: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
[-Wpointer-sign]
sprintf(serverAddr, “tcp://*:%d”,port);
^~
In file included from server.c:1:0:
/usr/include/stdio.h:366:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern int sprintf (char *__restrict __s,
^

本作品采用《CC 协议》,转载必须注明作者和本文链接
讨论数量: 1

请问您解决了吗

2年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!