Important: Please read the Qt Code of Conduct -

Qt doesnt start after updating

  • hi

    i have ubuntu 12.04 in my computer and i had installed qt4 and qtcreator 2.4.1 from ubuntu software center. but today i upgrade it to qt5 and qtcreator 2.7.0-beta in software center but the qtcreator dosnt open when i clicking in its icon

    why this happened and how i can fix it?

  • I assume that Qt4 and Qt5 are installed in different locations so the two shouldn't interfere with each other.

    If you open a terminal window and try to start qtcreator is there any error messages reported?

    What is returned from 'echo $PATH'; any references to the QT5 installation path?

  • when i write : qtcreator in trminal , the result is :

    Failed to load platform plugin "xcb". Available platforms are:

    Aborted (core dumped)

    and for anoher command :

    mohammad@mohammad:~$ echo $PATH
    mohammad@mohammad:~$ echo $PATH qtcreator
    /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games qtcreator

    also i have searched xcb in synaptic and donload and install all xcb that were found

  • I don't have qtcreator but I do have Qt 5.0.1 installed. I compiled it from the source.

    I remember some problems with xcb when I first tried compiling the first 5 version of Qt. I did have to install an additional package or two to satisfy the Qt configuration script. I don't remember which package specifically and since I don't have Ubuntu it probably doesn't matter - you will have to google it. The xcb is part of X11 by the way.

    As a root user if you enter the command 'ldd' followed by the name of the executable you want to look at it will return the required libraries and where they are located. This is what is returned from 'assistant' on my computer (I have Qt5.0.1 installed in /usr/lib/qt5):

    @linux-tsia:/home/ron # ldd /usr/lib/qt5/bin/assistant (0x00007fffc9fcf000) => /usr/lib64/ (0x00007f56542fb000) => /lib64/ (0x00007f5653ee4000) => /usr/X11R6/lib64/ (0x00007f564f104000) => /lib64/ (0x00007f564eee8000) => /usr/lib64/ (0x00007f564ebe1000) => /lib64/ (0x00007f564e8ea000) => /lib64/ (0x00007f564e6d4000) => /lib64/ (0x00007f564e32f000) => /usr/lib64/ (0x00007f564e11d000) => /usr/lib64/ (0x00007f564defd000) => /lib64/ (0x00007f564dcf9000)
    /lib64/ (0x00007f5654878000) => /usr/lib64/ (0x00007f564d188000) => /lib64/ (0x00007f564cf71000) => /usr/lib64/ (0x00007f564cd67000) => /usr/lib64/ (0x00007f564cb3d000) => /usr/lib64/ (0x00007f564c737000) => /usr/lib64/ (0x00007f564c3ba000) => /usr/lib64/ (0x00007f564b09a000) => /usr/lib64/ (0x00007f564ae4c000) => /usr/lib64/ (0x00007f564ab55000) => /usr/lib64/ (0x00007f564a953000) => /usr/X11R6/lib64/ (0x00007f56498e1000) => /usr/lib64/tls/ (0x00007f565496e000) => /usr/lib64/ (0x00007f56496dd000) => /usr/lib64/ (0x00007f56494db000) => /usr/lib64/ (0x00007f56492d5000) => /usr/lib64/ (0x00007f56490ce000) => /usr/lib64/ (0x00007f5648ec2000) => /usr/lib64/ (0x00007f5648cbd000) => /usr/lib64/ (0x00007f5648ab5000) => /usr/lib64/ (0x00007f564885b000)@

    There are a few references to xcb. Edit: I deleted a few of the lines returned from 'ldd' to save space.

    The path is probably fine if you are only running through the qtcreator IDE. For a terminal window you should define QTDIR and change your path so that it starts with that location:

    @ron@linux-tsia:~> echo $PATH

Log in to reply