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

Installing latest Qt creator on Ubuntu 16.04



  • I have installed Qt creator through online installer on updated Ubuntu 16.04.
    Unfortunately Qt creator does not start and response with:

    Unbenannt.PNG

    Probably there is already an incompatibility with the different drivers.

    Anyone aware how to circumvent the issue?

    Certainly an older Qt creator version will help. Which is the latest version supporting Ubuntu 16.04?

    Actually I have to compile for Ubuntu 16.04 and hope to use Qt libs version Qt 5.15.2. The application does not require gui output. Simple console and file output is enough. The main thing requried are the Tcp socket stuff and regular expressions I would assume at the moment.

    Do I have a chance there?


  • Lifetime Qt Champion

    Hi,

    Start Qt Creator with the QT_DEBUG_PLUGINS environment variable set to 1 to see why the plugins does not load.

    You are likely missing a system library that is now used by Qt rather than in tree provided.



  • Here is the output

    inposition@inposition-VirtualBox:~/Qt/Tools/QtCreator/bin$ ./qtcreator
    QFactoryLoader::QFactoryLoader() checking directory path "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so"
    Found metadata in lib /home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "archreq": 0,
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /home/inposition/Qt/Tools/QtCreator/lib/Qt/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 "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so"
    Found metadata in lib /home/inposition/Qt/Tools/QtCreator/lib/Qt/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 "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "archreq": 0,
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 331520
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /home/inposition/Qt/Tools/QtCreator/lib/Qt/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 "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so"
    Found metadata in lib /home/inposition/Qt/Tools/QtCreator/lib/Qt/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 "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so"
    Found metadata in lib /home/inposition/Qt/Tools/QtCreator/lib/Qt/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/inposition/Qt/Tools/QtCreator/bin/platforms" ...
    Cannot load library /home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)
    QLibraryPrivate::loadPlugin failed on "/home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)"
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
    
    Aborted (core dumped)
    
    

    Still no clue how to continue



  • @koahnig said in Installing latest Qt creator on Ubuntu 16.04:

    Cannot load library /home/inposition/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)

    It is telling you you need to install libxcb-xinerama.so.0. This has been asked many times in this forum, I would search this forum for xinerama if you want instructions on what to apt-get as there might be other libraries mentioned as needed in the posts (here's one: https://forum.qt.io/topic/116299/qt-creator-ubuntu-20-04/19) .



  • @JonB
    Great!!
    Thanks a lot.
    Just copied and pasted the apt-get command.

    Screenshot from 2021-07-13 20-34-46.png

    This pops up, but Qt creator is starting.



  • Qt creator seems to work. Therefore I am not worrying about the statistic plugin message.