qtcam with Nano

Hi,
I have tried to install qtcam on Jetson Nano platform.

I have downloaded the source from https://github.com/econsysqtcam/qtcam/blob/master/ repository.

I have built the source,

$ qmake
$ make clean
$ make
It built successfully.
When I open the application, using sudo ./Qtcam it reports the following error.


QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.

I have exported,

$export DISPLAY=:0

but still issue persist. Any suggestion to fix the issue?

Thanks.

do you have the Display 0 connected ?

I have connected HDMI display.

did it resolve?

xdmserver solved the issue.
Thanks.