eglGetDisplay in headless mode

Board: Xavier NX 8GB
L4T Version: 32.5.1

Hello,
When initializing EGL on my jetson, I run the following:

EGLDisplay  egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY);

But, if the DISPLAY env var is set, it fails with: Failed to get EGL display.

Is there a way to always use a headless display? (i never plan to display anything on script, just processing)

Thanks!

Hi,
If you don’t have display output, please not to set export DISPLAY=:0 and the function call is supposed to work. There are later Jetpack 4.6.6 and 5.1.5. You may consider upgrade to later version and try.