Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qt.qpa.plugin: Could not find the Qt platform plugin "linux" in "/home/ctos/temp/qt5.14.2/plugins/platforms"



  • hi,guys. how to add plugin "linux",i got no ideas.
    Qt 5.14.2 opensource compiled for arm.
    Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.



  • @stewart10
    Hi & welcome.

    Set environment variable from shell export QT_DEBUG_PLUGINS=1 and run your program, or do so from within Qt Creator under Runtime Environment. Look at end of resulting diagnostic output to see where it fell over, and resolve or paste here.


  • Lifetime Qt Champion

    Hi and welcome to the forums
    If that comes from upgrading/installing Qt in a
    Ubuntu version 18+ or derived distribution then try

    apt-get install libxcb-xinerama0



  • @JonB run Qt with export QT_DEBUG_PLUGINS=1:
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ctos/temp/qt5.14.2/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /home/ctos/temp/qt5.14.2/plugins/platforms/libqlinuxfb.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "linuxfb"
    ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 331264
    }

    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqminimal.so"
    Found metadata in lib /home/ctos/temp/qt5.14.2/plugins/platforms/libqminimal.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 331264
    }

    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /home/ctos/temp/qt5.14.2/plugins/platforms/libqoffscreen.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 331264
    }

    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqvnc.so"
    Found metadata in lib /home/ctos/temp/qt5.14.2/plugins/platforms/libqvnc.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "vnc"
    ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 331264
    }

    Got keys from plugin meta data ("vnc")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqxcb.so"
    Found metadata in lib /home/ctos/temp/qt5.14.2/plugins/platforms/libqxcb.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "xcb"
    ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331264
    }

    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ctos/temp/qt5.14.2/plugins" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ctos/temp" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/baselib.tar.gz"
    QElfParser: '/home/ctos/temp/baselib.tar.gz' is not an ELF object
    "'/home/ctos/temp/baselib.tar.gz' is not an ELF object"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2-lib.tar.gz"
    QElfParser: '/home/ctos/temp/qt5.14.2-lib.tar.gz' is not an ELF object
    "'/home/ctos/temp/qt5.14.2-lib.tar.gz' is not an ELF object"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/test-compiler.tar.gz"
    QElfParser: '/home/ctos/temp/test-compiler.tar.gz' is not an ELF object
    "'/home/ctos/temp/test-compiler.tar.gz' is not an ELF object"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/test-qt.tar.gz"
    QElfParser: '/home/ctos/temp/test-qt.tar.gz' is not an ELF object
    "'/home/ctos/temp/test-qt.tar.gz' is not an ELF object"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/TestQtCoreModule"
    "Failed to extract plugin meta data from '/home/ctos/temp/TestQtCoreModule'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/TestQtGuiModule"
    "Failed to extract plugin meta data from '/home/ctos/temp/TestQtGuiModule'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/TestQtPlainC"
    "Failed to extract plugin meta data from '/home/ctos/temp/TestQtPlainC'"
    not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ctos/temp/qt5.14.2/plugins/platforms/platforms" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ctos/temp/qt5.14.2/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqlinuxfb.so"
    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqminimal.so"
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqoffscreen.so"
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqvnc.so"
    Got keys from plugin meta data ("vnc")
    QFactoryLoader::QFactoryLoader() looking at "/home/ctos/temp/qt5.14.2/plugins/platforms/libqxcb.so"
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/ctos/temp/platforms" ...
    qt.qpa.plugin: Could not find the Qt platform plugin "linux" in "/home/ctos/temp/qt5.14.2/plugins/platforms"
    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 (from /home/ctos/temp/qt5.14.2/plugins/platforms), minimal (from /home/ctos/temp/qt5.14.2/plugins/p latforms), offscreen (from /home/ctos/temp/qt5.14.2/plugins/platforms), vnc (from /home/ctos/temp/qt5.14.2/plugins/platforms), xcb (from /h ome/ctos/temp/qt5.14.2/plugins/platforms), linuxfb, minimal, offscreen, vnc, xcb.

    core dump



  • This post is deleted!


  • @mrjj embeded linux.libxcb1.14


Log in to reply