Could not find the Qt platform plugin "eglfs" in ""
-
Hi,
When I want to run a Qt project via an ssh connection to Orange Pi,
I am getting an error like;qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb.
Aborted
How can i solve this problem?
Thank you -
Hi,
When I want to run a Qt project via an ssh connection to Orange Pi,
I am getting an error like;qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb.
Aborted
How can i solve this problem?
Thank you@kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":
qt.qpa.plugin: Could not find the Qt platform plugin "eglfs"
...
Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb.
The problem is that the eglfs plugin does not exist. So, the solution is to make it exist.
How did you build or install Qt?
-
@JKSH I typed the command "sudo apt install qtcreator" in terminal and ran it
-
@JKSH I typed the command "sudo apt install qtcreator" in terminal and ran it
-
@JKSH I typed the command "sudo apt install qtcreator" in terminal and ran it
@kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":
I typed the command "sudo apt install qtcreator" in terminal and ran it
As @JonB said, Qt Creator is an IDE. You need to install Qt libraries too.
Also, it's not clear from your post:
- Did you get the error message when trying to run Qt Creator? Or did you get the error message when trying to run your project executable?
- Did you install Qt Creator on the Pi directly? Or did you install it on your host PC?
-
@kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":
I typed the command "sudo apt install qtcreator" in terminal and ran it
As @JonB said, Qt Creator is an IDE. You need to install Qt libraries too.
Also, it's not clear from your post:
- Did you get the error message when trying to run Qt Creator? Or did you get the error message when trying to run your project executable?
- Did you install Qt Creator on the Pi directly? Or did you install it on your host PC?
@JKSH I get the error message when trying to run my project executable. I did install it on my host PC.
I sent the executable version of the project I created to Orange Pi and was able to run the project file with the ./OrangeDemoQqml command in the Orange Pi terminal. But after accessing Orange Pi via SSH connection from my host computer, I type ./OrangeDemoQml in the terminal and I get an error.!
-
Hi,
Start it with the QT_DEBUG_PLUGINS environment variable set to 1 to see why exactly it fails to load the plugin.
-
Hi,
Start it with the QT_DEBUG_PLUGINS environment variable set to 1 to see why exactly it fails to load the plugin.
@SGaist I don't know exactly how to do this, can you describe?
-
export QT_DEBUG_PLUGINS=1
Then call your application.
-
@SGaist said in Could not find the Qt platform plugin "eglfs" in "":
export QT_DEBUG_PLUGINS=1
These are the output lines
QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5opi/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqlinuxfb.so" Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archreq": 0, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("linuxfb") QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqminimal.so" Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archreq": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimal") QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqoffscreen.so" Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archreq": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("offscreen") QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqvnc.so" Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archreq": 0, "className": "QVncIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("vnc") QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqwebgl.so" Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqwebgl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "webgl" ] }, "archreq": 0, "className": "QWebGLIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("webgl") QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqxcb.so" Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archreq": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/opi/platforms" ... qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb. Aborted
-
Then the version of Qt you have currently installed on your target does not provide that plugin.
Did you deploy the one you use for cross-compiling your application ?
-
Then the version of Qt you have currently installed on your target does not provide that plugin.
Did you deploy the one you use for cross-compiling your application ?
I do not have qt installed on the Orange Pi that I intend to run.
I think our main goal is to transfer executable files of qt projects to Orange Pi and connect remotely via ssh and run projects on Orange Pi.
-
How did you install Qt on the OrangePi ?
-
@SGaist I did not install Qt on the Orange Pi. I installed it on my host computer.
-
That path
/usr/local/qt5opi/
suggests a non standard installation. Hence it would be good to know how it was installed.In any case, you have a cross-compiled Qt version on your host, correct ? If so, you should deploy it on your device so your application can use it.
-
That path
/usr/local/qt5opi/
suggests a non standard installation. Hence it would be good to know how it was installed.In any case, you have a cross-compiled Qt version on your host, correct ? If so, you should deploy it on your device so your application can use it.
@SGaist
What am I supposed to understand from this deployment process? How can I do the deploy process? By the way, I leave the youtube link I took as an example here, this is how I installed it.If you watch the video, you will understand how I installed it. I'm a bit of a novice in these matters and solving this problem will add a lot to me.
-
Do you want to run your application on EGLFS or X11 like the video shows how to do ?
-
@SGaist It makes no difference to me, I don't know the difference between the two? Is there a performance difference between the two?
-
The first one uses the hardware directly and does not provide windowing capabilities the other uses the Xorg server. Like most desktop installation (unless they run in Wayland).
-
The first one uses the hardware directly and does not provide windowing capabilities the other uses the Xorg server. Like most desktop installation (unless they run in Wayland).
@SGaist The Project I've created aims to command GPIO pins. Which do you think would be better for me to do?