This application failed to start because it could not find or load the Qt platform plugin "eglfs" in "/usr/local/qt5/plugins".
-
@Alex_wang Set QT_DEBUG_PLUGINS environment variable and start your app, you should see more output which can help to find out why the plug-in isn't loaded.
See http://doc.qt.io/qt-5/debug.htmlThanks!
QFactoryLoader::QFactoryLoader() checking directory path "/opt/autorun/platforms" ... Cannot load library /usr/local/qt5/plugins/platforms/libqeglfs.so: (libXext.so.6: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/usr/local/qt5/plugins/platforms/libqeglfs.so" : "Cannot load library /usr/local/qt5/plugins/platforms/libqeglfs.so: (libXext.so.6: cannot open shared object file: No such file or directory)" This application failed to start because it could not find or load the Qt platform plugin "eglfs" in "/usr/local/qt5/plugins". Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Reinstalling the application may fix this problem. AbortedI think , I need to install the X11......
-
Hi,
You should only need to install the libraries the compiler has been warning about. If on debian
apt-get install libxext-dev. -
Hi,
You should only need to install the libraries the compiler has been warning about. If on debian
apt-get install libxext-dev.@SGaist
Hi,
I have been added all the libraries that qt5 app needs.
but when running the Qt5 app , the error occurs:QFactoryLoader::QFactoryLoader() checking directory path "/opt/autorun/platforms" ... loaded library "/usr/local/qt5/plugins/platforms/libqeglfs.so" QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5/plugins/egldeviceintegrations" ... QFactoryLoader::QFactoryLoader() checking directory path "/opt/autorun/egldeviceintegrations" ... Could not open egl display Abortedany ideas ?
-
On what are you running that application ?
-
Hi,
device : TI DM8168/AM389x
arch : armv7-aconfigure :
Configuration .......... accessibility alsa audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus dbus-linked egl eglfs enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gstreamer-0.10 gtk2 gtkstyle harfbuzz iconv inotify ipv6ifname kms large-config largefile libudev linuxfb medium-config minimal-config mremap opengl opengles2 openssl openvg pcre png posix_fallocate precompile_header pulseaudio qpa qpa reduce_exports release rpath shared small-config system-freetype system-jpeg system-png system-zlib threadsafe-cloexec tslib xlib xrender Build parts ............ libs Mode ................... release Using sanitizer(s)...... none Using C++ standard ..... c++11 Using gold linker....... no Using new DTAGS ........ yes Using PCH .............. yes Using LTCG ............. no Target compiler supports: Neon ................. no Qt modules and options: Qt D-Bus ............... yes (linked to dbus-1) Qt Concurrent .......... yes Qt GUI ................. yes Qt Widgets ............. yes Large File ............. yes QML debugging .......... yes Use system proxies ..... no Support enabled for: Accessibility .......... yes ALSA ................... yes CUPS ................... no Evdev .................. yes FontConfig ............. yes FreeType ............... yes (system library) Glib ................... yes GStreamer .............. yes (0.10) GTK theme .............. yes HarfBuzz ............... yes (bundled copy) Iconv .................. yes ICU .................... no Image formats: GIF .................. yes (plugin, using bundled copy) JPEG ................. yes (plugin, using system library) PNG .................. yes (in QtGui, using system library) libinput................ no Logging backends: journald ............... no syslog ............... no mtdev .................. no Networking: getaddrinfo .......... yes getifaddrs ........... yes IPv6 ifname .......... yes libproxy.............. no OpenSSL .............. yes (loading libraries at run-time) OpenGL / OpenVG: EGL .................. yes OpenGL ............... yes (OpenGL ES 2.0+) OpenVG ............... yes-auto PCRE ................... yes (bundled copy) pkg-config ............. yes PulseAudio ............. yes QPA backends: DirectFB ............. no EGLFS ................ yes EGLFS i.MX6 ........ no EGLFS i.MX6 Wayland. no EGLFS EGLDevice .... no EGLFS GBM .......... no EGLFS Mali ......... no EGLFS Raspberry Pi . no EGLFS X11 .......... no LinuxFB .............. yes Mir client............ no XCB .................. no Session management ..... yes SQL drivers: DB2 .................. no InterBase ............ no MySQL ................ no OCI .................. no ODBC ................. no PostgreSQL ........... no SQLite 2 ............. no SQLite ............... yes (plugin, using bundled copy) TDS .................. no tslib .................. yes udev ................... yes xkbcommon-x11........... no xkbcommon-evdev......... no zlib ................... yes (system library) -
@Alex_wang Set QT_DEBUG_PLUGINS environment variable and start your app, you should see more output which can help to find out why the plug-in isn't loaded.
See http://doc.qt.io/qt-5/debug.html -
What device are you using exactly ?
-
@SGaist
Hi, the device is ti DM8168/AM389x,its arm arch is armv7-a.
the configure result shows that :KMS enabled. ...... EGL enabled. ...... egl-x11.cpp: In function 'int main(int, char**)': egl-x11.cpp:48:50: error: invalid conversion from 'Display*' to 'EGLNativeDisplayType' egl-x11.cpp:49:11: error: invalid conversion from 'EGLNativeDisplayType' to 'Display*' egl-x11.cpp:50:79: error: invalid conversion from 'Window' to 'void*' egl-x11.cpp:51:26: error: invalid conversion from 'void*' to 'Window' egl-x11.cpp:51:26: error: initializing argument 2 of 'int XDestroyWindow(Display*, Window)' Makefile:239: recipe for target 'egl-x11.o' failed make: *** [egl-x11.o] Error 1 **EGL-X11 disabled.**so, the egl/x11 is old on my device ,that cause the error ?
-
What Linux distribution are you using ?
-
@Alex_wang This is the Linux kernel version not the name and version of your Linux distribution.
And kernel is very old. -
@Alex_wang This is the Linux kernel version not the name and version of your Linux distribution.
And kernel is very old. -
Just because of the date I'd say that your dependencies are out of date.
You may try to patch Qt's to match your version of the relevant X11 libraries but there's not guaranty it's doable.
-
Just because of the date I'd say that your dependencies are out of date.
You may try to patch Qt's to match your version of the relevant X11 libraries but there's not guaranty it's doable.
-
If possible you should rather upgrade your device distribution to something more recent.