regarding raspberry pi support package

3 vues (au cours des 30 derniers jours)
SURBHI
SURBHI le 2 Fév 2016
Commenté : Walter Roberson le 27 Fév 2017
sir, i have installed simulink support package for raspberry pi and also installed it sucessfully and able to write simple led blinkng program.......but when i access it from command window raspi function is shown unavailable and and after that even i install mplpkginstall file even after that raspi function is not available. my project is on fog removal system in which i hv to built independent hardware for fog removal system.... when i access camera using simulink it is showing me this error
The call to realtime_make_rtw_hook, during the after_make hook generated the following error:Description: tree
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 directory
compilation terminated.
_untitled.mk:125: recipe for target 'sdl_video_display.o' failed
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 directory
compilation terminated.
_untitled.mk:125: recipe for target 'sdl_video_display.o' failed
make: *** [sdl_video_display.o] Error 1
make: Leaving directory '/home/pi/untitled_rtt'
  1 commentaire
SURBHI
SURBHI le 2 Fév 2016
thankyou sir.... installing that work.....

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 2 Fév 2016
It appears that you may need to install the SDL development libraries; see http://www.libsdl.org/download-1.2.php or possibly "sudo aptitude install libsdl1.2-dev"
Once installed (and possibly you already have them) you may need to change your simulink configuration somehow to add an extra include directory that is the parent of where the SDL directory is installed, so that SDL/SDL.h would be a relative path to there. See http://www.mathworks.com/help/simulink/gui/simulation-target-pane-custom-code.html#bro3ioz-1
  2 commentaires
vcmorini
vcmorini le 27 Fév 2017
Walter and Surbhi Hello, the link is broken.
Can you give more details on how to solve it?
Thanks!
Walter Roberson
Walter Roberson le 27 Fév 2017
The link to libsdl 1.2 is still valid. The link to libsdl 2.0 is http://www.libsdl.org/download-2.0.php
Changing the include directories is described at https://www.mathworks.com/help/simulink/gui/include-directories.html

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Support Package for Raspberry Pi Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by