Unsolved qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
-
Hello
I deploy my Qt app to raspberry pi 3 using buildroot toolchain . After cross -compiling I get this error when i run my app on target .
Any help please ? -
@dziko147
I don't know if it helps in this "eglfs" situation, but the usual starting point for "Could not find the Qt platform plugin" is you need to set environment variableexport QT_DEBUG_PLUGINS=1
on target and run your application, it will send diagnostic output to stdout/stderr, you usually need to look at the end of it to see what's failing. -
@JonB thanks for your reply . But I am new in Qt development Can you please guide me to solve this error
-
Hi,
@JonB already wrote the first steps to understand what is going on.
Beside that, did you install your cross-compiled Qt on your target ?
-
@SGaist I think that yes . Qt was installed using buildroot menuconfig . there is another installation needed ! I tranfert the executable using ssh .
-
Then as @JonB suggested: use QT_DEBUG_PLUGINS to gather information about what is going on your target.
-
@SGaist Can you explain how to use the QT_DEBUG_PLUGINS please !
-
If you are starting your application from the command line, literally what @JonB wrote:
export QT_DEBUG_PLUGINS=1
.If from Qt Creator, go to the Run part of the Project panel and add it to the environment variables.