Trouble in Code Generation for NVIDIA Jetson
    11 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Francesco Passigato
 el 23 de Mzo. de 2022
  
    
    
    
    
    Respondida: Ramakrishna Mandalapu
    
 el 7 de Abr. de 2022
            Dear members of the community,
I am experiencing a problem with the Matlab Coder. I am trying to implement the example "Deploy and Run Sobel Edge Detection with I/O on NVIDIA Jetson Nano". Actually, I am using an NVIDIA Jetson Xavier NX.
All the tests recommended at the beginning of the examples run without errors. However, when I run the codegen() command, I get the following error:
Error executing command "touch -c /pathToDir/sobel_edge_detection_deploy/codegen/exe/sobelEdgeDetection/*.*;make -f sobelEdgeDetection_rtw.mk -j4 all MATLAB_WORKSPACE="/home/nvidia/remoteBuildDir/MATLAB_ws/R2021b" -C /pathToDir/sobel_edge_detection_deploy/codegen/exe/sobelEdgeDetection". Details:
STDERR: In file included from /home/nvidia/remoteBuildDir/MATLAB_ws/R2021b/C/ProgramData/MATLAB/SupportPackages/R2021b/toolbox/realtime/targets/linux/src/MW_SDL_video_display.c:7:0:
/home/nvidia/remoteBuildDir/MATLAB_ws/R2021b/C/ProgramData/MATLAB/SupportPackages/R2021b/toolbox/realtime/targets/linux/include/MW_SDL_video_display.h:17:11: fatal error: SDL/SDL.h: No such file or directory
#include "SDL/SDL.h"
^~~~~~~~~~~
compilation terminated.
I am not able to figure out what the problem could be. The necessary Cuda libraries are installed on the host.
Thank you very much for your help.
Best
Francesco
0 comentarios
Respuesta aceptada
  Ramakrishna Mandalapu
    
 el 7 de Abr. de 2022
        Hi Francesco,
Thanks for writing to us.
From the log I can say that it is the issue with the SDL libray installation on the target (on your NVIDIA hardware). SDL v1.2 must be installed on the target for the graphical visulaization operations. So, please take a look at the install and srtup instructions in the below page at "Software" section  to install this library. This will resolve the above compilation failure.
Thanks
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Get Started with GPU Coder en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

