I've been using Qt library for several years, and recently tried it on Raspberry (Qt 5.6.0) for demonstration purposes and stuck on following item:
a) there was no problem in configuring/making library on host machine and following deployment to RPi
b) the console applications works well on RPi
c) the GUI application tells next on start (absense of EGLFS plugin):
root@rpi:/home/pi# ./testpi2 This application failed to start because it could not find or load the Qt platform plugin "eglfs" in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen.
d) I checked that plugins are located in folder where "Qt" placed (in my case /usr/local/qt5pi/plugins/platforms), so plugins have been built and deployed)
e) I tried: export QT_PLUGIN_DIR=/usr/local/qt5pi/plugins
as well as: export QT_PLUGIN_DIR=/usr/local/qt5pi/plugins/platforms
but it didn't help.
Can you guess me in following steps ?