matlab树莓派usb摄像头,求 问Simulink做树莓派摄像头显示的一些问题

在尝试将Simulink程序烧录到树莓派时遇到错误,编译过程因无法找到SDL/SDL.h头文件而终止。删除SDLDisplay模块后可以成功烧录,但无法实现所需的功能。问题在于树莓派上未安装必要的SDL库,解决方法是确保安装并链接正确的SDL开发库。
摘要由CSDN通过智能技术生成

将 Simulink程序烧录制 树莓派上时、发生了错误:

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:

Error executing SSH command: make: Entering directory `/home/pi/untitled_rtt'

"gcc" -I"./" -O3 -D"MODEL=untitled" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ON_TARGET_WAIT_FOR_START=1" -D"ONESTEPFCN=0" -D"EXT_MODE=1" -D"TERMFCN=1"

-D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"TID01EQ=0" -D"_USE_TARGET_UDP_="

-D"_RUNONTARGETHARDWARE_BUILD_=" -c ./sdl_video_display.c ./v4l2_capture.c ./v4l2_capture_linux.c ./linuxUDP.c ./ext_svr.c ./ext_work.c .

/rtiostream_interface.c ./updown.c ./rtiostream_tcpip.c ./rtiostream_utils.c ./ert_main.c ./untitled.c ./untitled_data.c

In file included from ./untitled.h:31:0,

from ./ert_main.c:28:

./sdl_video_display.h:25:23: fatal error: SDL/SDL.h: No such file or directory

compilation terminated.

In file included from ./untitled.h:31:0,

from ./untitled.c:17:./sdl_video_display.h:25:23: fatal error: SDL/SDL.h: No such file or directory

compilation terminated.

In file included from ./untitled.h:31:0,from ./untitled_data.c:17:

./sdl_video_display.h:25:23: fatal error: SDL/SDL.h: No such file or directorycompilation terminated.

make: *** [sdl_video_display.o] Error 1

make: Leaving directory `/home/pi/untitled_rtt'

The build process will terminate as a result.

Caused by:

Error executing SSH command: make: Entering directory `/home/pi/untitled_rtt'

"gcc" -I"./" -O3 -D"MODEL=untitled" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ON_TARGET_WAIT_FOR_START=1" -D"ONESTEPFCN=0" -D"EXT_MODE=1"

-D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"TID01EQ=0" -D"_USE_TARGET_UDP_="

-D"_RUNONTARGETHARDWARE_BUILD_=" -c ./sdl_video_display.c ./v4l2_capture.c ./v4l2_capture_linux.c ./linuxUDP.c ./ext_svr.c ./ext_work.c .

/rtiostream_interface.c ./updown.c ./rtiostream_tcpip.c ./rtiostream_utils.c ./ert_main.c ./untitled.c ./untitled_data.c

In file included from ./untitled.h:31:0,

from ./ert_main.c:28:

./sdl_video_display.h:25:23: fatal error: SDL/SDL.h: No such file or directory

compilation terminated.

In file included from ./untitled.h:31:0,

from ./untitled.c:17:./sdl_video_display.h:25:23: fatal error: SDL/SDL.h: No such file or directory

compilation terminated.

In file included from ./untitled.h:31:0,

from ./untitled_data.c:17:./sdl_video_display.h:25:23: fatal error: SDL/SDL.h: No such file or directorycompilation terminated.

make: *** [sdl_video_display.o] Error 1

make: Leaving directory `/home/pi/untitled_rtt'

想问一下有没有遇见过这样问题的朋友、、我只是测试了下把SDL Display删除就可以烧录了、、但是我想看到电脑接受的实时状况

2015-10-17 14:54 上传

442a53943febe9465fc072b4fbe10813.gif

b2a5a3e0dcc7d508e00275fe42fce1b5.gif

Simulink仿真图

2ad8fc0af54dd2808cf0e41115f4ac3c.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值