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
    /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    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
    linux-vdso.so.1 (0x00007fffc9fcf000)
    libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f56542fb000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f5653ee4000)
    libGL.so.1 => /usr/X11R6/lib64/libGL.so.1 (0x00007f564f104000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f564eee8000)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f564ebe1000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f564e8ea000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f564e6d4000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f564e32f000)
    libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f564e11d000)
    libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f564defd000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f564dcf9000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5654878000)
    libEGL.so.1 => /usr/lib64/libEGL.so.1 (0x00007f564d188000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f564cf71000)
    libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f564cd67000)
    libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007f564cb3d000)
    libicui18n.so.49 => /usr/lib64/libicui18n.so.49 (0x00007f564c737000)
    libicuuc.so.49 => /usr/lib64/libicuuc.so.49 (0x00007f564c3ba000)
    libicudata.so.49 => /usr/lib64/libicudata.so.49 (0x00007f564b09a000)
    libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f564ae4c000)
    libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f564ab55000)
    libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007f564a953000)
    libGLcore.so.1 => /usr/X11R6/lib64/libGLcore.so.1 (0x00007f56498e1000)
    libnvidia-tls.so.1 => /usr/lib64/tls/libnvidia-tls.so.1 (0x00007f565496e000)
    libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f56496dd000)
    libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007f56494db000)
    libxcb-dri2.so.0 => /usr/lib64/libxcb-dri2.so.0 (0x00007f56492d5000)
    libxcb-xfixes.so.0 => /usr/lib64/libxcb-xfixes.so.0 (0x00007f56490ce000)
    libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007f5648ec2000)
    libgbm.so.1 => /usr/lib64/libgbm.so.1 (0x00007f5648cbd000)
    libffi.so.4 => /usr/lib64/libffi.so.4 (0x00007f5648ab5000)
    libpcre.so.1 => /usr/lib64/libpcre.so.1 (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
    /usr/lib/qt5/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/ron/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.