use tegra_multimedia_api/samples/02_video_dec_cuda sampe. but Get defalut EGL display fail

use tegra_multimedia_api/samples/02_video_dec_cuda sampe. but Get defalut EGL display fail
detail:

if (parse_csv_args(&ctx, argc, argv))
{
    fprintf(stderr, "Error parsing commandline arguments\n");
    return -1;
}

// Get defalut EGL display
ctx.egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
if (ctx.egl_display == EGL_NO_DISPLAY)
{
    fprintf(stderr, "Error while get EGL display connection\n");
    return -1;
}

return of “eglGetDisplay(EGL_DEFAULT_DISPLAY);” is fail。

I have cost somesday to solve this error。 thank anyone to help me.

Was this run through ssh? Or locally from a GUI? If ssh, then it needs you to set the DISPLAY environment variable to the correct DISPLAY (usually “export DISPLAY=:0”, but not always). If running from a local GUI, then perhaps EGL support is not installed (run “xdpyinfo” to see extensions to X).

Hi zbit, there is no issue on r24.2.1. Are you on r24.2.1? Do you install via Jetpack?

I have install jetpak3.0。 and try install jetpak 2.3
Need start some servers,first ?

For installing via Jetpack3.0, please refer to
https://www.youtube.com/watch?v=D7lkth34rgM

After the system is booted, please do

# ssh Ubuntu@10.19.106.154
$ export DISPLAY=:0
$ cd tegra_multimedia_api/samples/02_video_dec_cuda
$ gst-launch-1.0 nvcamerasrc num-buffers=300 ! 'video/x-raw(memory:NVMM),width=1280,height=720' ! omxh264enc ! 'video/x-h264,stream-format=byte-stream' ! filesink location=a.h264
$ ./video_dec_cuda a.h264 H264

The steps are verified. Please give it a try.