I’m stuck at this same point too. Maybe my observations will help.
I recently loaded Jetpack 4.3 and ran through some of the hello word tutorials to make sure everything was working OK. All looks good.
I then got Nsight Eclipse edition running on my host Ubuntu 18.04.4 machine.
Following the “CUDA Development for Jetson with NVIDIA Nsight Eclipse Edition” tutorial, I created a boxfilter project from the Cuda Samples directory.
The project compiles fine and runs on the remote Nano but fails saying:
freeglut (/tmp/nsight-debug/boxTest): failed to open display ':0". (I tried other display values as well)
When I attempt to debug the program, I can single step to glutInit(argc, argv); On the next step(over) I get “[Inferior 1 (process 8603) exited with code 01]” with no specific info on what went wrong. This occurs whether the Nano is headless or not.
If I do log into the Nano locally, i can go to /tmp/nsight-debug and run boxTest directly. That opens up a window on the Nano and works fine.
However, if I SSH with MobaXterm from a Windows machine and try to run /tmp/nsight-debug/boxTest i get:
./boxTest Starting…
Loaded ‘./lenaRGB.ppm’, 1024 x 1024 pixels
GPU Device 0: “NVIDIA Tegra X1” with compute capability 5.3
MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
Error: failed to get minimal extensions for demo
This sample requires:
OpenGL version 2.0
GL_ARB_vertex_buffer_object
GL_ARB_pixel_buffer_object
Ironically, I just found out that if I SSH from the Ubuntu host to the Nano and go to /tmp/nsight-debug, I can run boxTest and it works fine. A window open on the Nano and works fine.
So,
Running Nsight executable on Nano from Nsight on Ubuntu host fails.
Running the executable that Nsight created locally on the Nano works
SSH from the Ubuntu to the Nano and running the executable that Nsight created works.
SSH with MobaXtem from Windows and running the executable that Nsight created fails with:
MESA-LOADER: failed to open swrast
I hope this help someone figure out what wrong in the scenarios others have presented.