Getting Error in Jetson Xavier -> qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

Hello

I am getting this error

qt.qpa.plugin: Could not find the Qt platform plugin “xcb” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

to find more information that what is missing, I run
export QT_DEBUG_PLUGINS=1
It shows
QFactoryLoader::QFactoryLoader() checking directory path “/usr/bin/platforms” …
qt.qpa.plugin: Could not find the Qt platform plugin “xcb” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped)

When I click platforms inside ->Computer->usr->bin to see list of files
it does not open the folder and shows following message
The link “platform” is broken"

I followed following link to build pyQT from source

But I got errors
/Downloads/PyQt4_gpl_win-4.12.3/QtCore/sipQtCoreQAbstractEventDispatcher.cpp:115:10: error: ‘void sipQAbstractEventDispatcher::registerTimer(int, int, QObject*)’ marked ‘override’, but does not override
void registerTimer(int,int, ::QObject*) SIP_OVERRIDE;
^~~~~~~~~~~~~
Makefile:18: recipe for target ‘sipQtCoreQAbstractEventDispatcher.o’ failed
make[1]: *** [sipQtCoreQAbstractEventDispatcher.o] Error 1
make[1]: Leaving directory ‘/home/sam/Downloads/PyQt4_gpl_win-4.12.3/QtCore’
Makefile:3: recipe for target ‘all’ failed
make: *** [all] Error 2

Build from source solution did not work for me.

so, I used these commands to install QT

pip3 install --upgrade pip
pip3 install sip
sudo apt-get install python3-pyqt5

It successfully installs.

But
When I run the my program:
I get the same error again

It shows
QFactoryLoader::QFactoryLoader() checking directory path “/usr/bin/platforms” …
qt.qpa.plugin: Could not find the Qt platform plugin “xcb” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped)

I have spent two days to solve this issue but the problem is still there…

So need help now.

Thank You

Hi,
There are several topics of building/running QT:
PySide2 (Qt for python) installation on Jetson Xavier - #5 by Muscle_Oliver
Jetson Nano and Qt5 - #2 by WayneWWW
Pyqt not working on Nano - #4 by coolbot

Please take a look.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.