This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7: Not able to run QT applications using wayland

Part Number: AM62A7

Hi Team,

We are testing QT application in AM62A7 based custom board.

We built the tisdk-edgeai file system for testing after running QT applications below error is shown

QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
qt.qpa.xcb: could not connect to display
[ 4329.514073] audit: type=1701 audit(1700131144.808:90): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1503 comm="pylonviewer" exe="/opt/pylon/bin/pylonviewer" sig=6 res=1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ""[ 4329.537151] audit: type=1334 audit(1700131144.832:91): prog-id=39 op=LOAD
 even though it was found.
This application failed to start bec[ 4329.544970] audit: type=1334 audit(1700131144.840:92): prog-id=40 op=LOAD
ause no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, webgl, xcb.

Aborted (core dumped)

Even when testing sample applications in file system below error is shown

/usr/share/qt5/examples/wayland/ivi-compositor/ivi-compositor                                                                                                                 
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" i[ 4370.267698] audit: type=1701 audit(1700131185.561:95): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1510 comm="ivi-compositor" exe="/u1
n "" even though it was found.
This application failed to start[ 4370.291018] audit: type=1334 audit(1700131185.585:96): prog-id=41 op=LOAD
 because no Qt platform plugin could be initialized. Reinstallin[ 4370.303298] audit: type=1334 audit(1700131185.597:97): prog-id=42 op=LOAD
g the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, xcb.

Aborted (core dumped)

How to resolve this error and run the QT applications using wayland?