Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26985

Qt Online Installer creates unusable .desktop file for Qt Creator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 6.0.2
    • Installer
    • None
    • Linux/X11

    Description

      There are two problems appeared at once. Tell me if I should split the issue. Both contribute to the fact that recent update of Qt Creator via installer broke the installation.

      First, the installer created a new .desktop file, which uses relative paths assuming that qtcreator should exist in PATH. I don't understand how that is a reasonable assumption. Installer should hard-wire paths (and maybe even rpath for binaries). And of course my PATH environment wasn't modified to contain "/opt/Qt/Tools/...etc..." directory.

      So, instead of using the desktop file at /opt/Qt/Tools/QtCreator/share/applications/org.qt-project.qtcreator.desktop, I looked at my local share dir (somehow I remembered I saw there a Qt Creator's icon some timebefore, which is strange to have such a duplicate; but — whatever works, right?). Unlike the file in /opt, the desktop file in ~/.local/share/applications/ contained an absolute path in Exec line:

      Exec="/opt/Qt/Tools/QtCreator/bin/qtcreator" %F
      

      But when I tried to launch it manually (in terminal), I got this error:

      ❯ ls -lh /opt/Qt/Tools/QtCreator/bin/qtcreator
      -rwxr-xr-x 1 ratijas ratijas 110K Jan 18 13:32 /opt/Qt/Tools/QtCreator/bin/qtcreator
      ❯ /opt/Qt/Tools/QtCreator/bin/qtcreator
      Cannot mix incompatible Qt library (6.2.3) with this library (6.2.2)
      [1]    2106570 abort (core dumped)  /opt/Qt/Tools/QtCreator/bin/qtcreator
      ❯ ldd /opt/Qt/Tools/QtCreator/bin/qtcreator
              linux-vdso.so.1 (0x00007ffed0ff7000)
              libExtensionSystem.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/libExtensionSystem.so.6 (0x00007f6af2354000)
              libUtils.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/libUtils.so.6 (0x00007f6af1fb6000)
              libAggregation.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/libAggregation.so.6 (0x00007f6af1fae000)
              libQt6Concurrent.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Concurrent.so.6 (0x00007f6af1fa7000)
              libQt6Core5Compat.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core5Compat.so.6 (0x00007f6af1f48000)
              libQt6Widgets.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6 (0x00007f6af183d000)
              libQt6Gui.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6 (0x00007f6af0f06000)
              libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f6af0e80000)
              libQt6Network.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Network.so.6 (0x00007f6af0ce3000)
              libQt6Core.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6 (0x00007f6af06b5000)
              libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f6af049f000)
              libm.so.6 => /usr/lib/libm.so.6 (0x00007f6af0359000)
              libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f6af033e000)
              libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f6af031d000)
              libc.so.6 => /usr/lib/libc.so.6 (0x00007f6af0151000)
              libQt6Test.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Test.so.6 (0x00007f6af00f6000)
              libQt6Qml.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Qml.so.6 (0x00007f6aefbd0000)
              libQt6Xml.so.6 => /opt/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Xml.so.6 (0x00007f6aefba9000)
              libicui18n.so.56 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicui18n.so.56 (0x00007f6aef710000)
              libicuuc.so.56 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicuuc.so.56 (0x00007f6aef358000)
              libicudata.so.56 => /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libicudata.so.56 (0x00007f6aed975000)
              libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f6aed96c000)
              libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 (0x00007f6aed923000)
              libEGL.so.1 => /usr/lib/libEGL.so.1 (0x00007f6aed911000)
              libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f6aed8c2000)
              libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f6aed780000)
              libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f6aed644000)
              libQt6DBus.so.6 => /usr/lib/libQt6DBus.so.6 (0x00007f6aed582000)
              libz.so.1 => /usr/lib/libz.so.1 (0x00007f6aed568000)
              libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f6aed49d000)
              libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f6aed498000)
              libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007f6aed3e0000)
              libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007f6aed3ad000)
              libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f6aed356000)
              librt.so.1 => /usr/lib/librt.so.1 (0x00007f6aed34b000)
              /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f6af23b5000)
              libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f6aed31b000)
              libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f6aed2f1000)
              libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f6aed278000)
              libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007f6aed223000)
              libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f6aed210000)
              libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f6aed1d9000)
              libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f6aed0fc000)
              libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x00007f6aed0ee000)
              libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f6aed005000)
              libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f6aecfd4000)
              libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007f6aecfce000)
              libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f6aecfbe000)
              libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007f6aecfb7000)
              libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f6aecf9d000)
              libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f6aecf96000)
              libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f6aecf8e000)
              libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f6aeceb2000)
              libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f6aece8d000)
              libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x00007f6aece6a000)
              liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f6aece3f000)
              libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f6aecd90000)
              liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f6aecd6d000)
              libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f6aecd61000)
              libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f6aecc25000)
              libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f6aecbfe000)
      

      What was that about backward and forward binary compatibility between minor releases, by the way?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes