Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt error launch application
Forum Updated to NodeBB v4.3 + New Features

Qt error launch application

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Giacomogr
    wrote on last edited by
    #1

    Goodmorning, i’m having problems with qt creator: when i compile the application, both in debug and in release mode, i have no problem; but when i run with the debugger or even without, it gives me this error:

    /home/giacomo/build-writernote-Desktop_Qt_5_15_2_GCC_64bit-Debug/build/writernote: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /home/giacomo/build-writernote-Desktop_Qt_5_15_2_GCC_64bit-Debug/build/writernote)
    

    and the application doesn’t start.
    The problem is when i go to inspect with ldd the dynamic libraries of the executable and i get:

        linux-vdso.so.1 (0x00007ffc4b76a000)
        libQt5Pdfium.so.5 => /lib/x86_64-linux-gnu/libQt5Pdfium.so.5 (0x00007f9661cb3000)
        libzip.so.5 => /lib/x86_64-linux-gnu/libzip.so.5 (0x00007f9661c98000)
        libQt5PrintSupport.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5PrintSupport.so.5 (0x00007f9661a26000)
        libQt5Widgets.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5 (0x00007f96611c4000)
        libQt5Multimedia.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Multimedia.so.5 (0x00007f9660eb0000)
        libQt5Gui.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Gui.so.5 (0x00007f966057f000)
        libQt5Network.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Network.so.5 (0x00007f96601cf000)
        libQt5Core.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5 (0x00007f965f9d9000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f965f7f8000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f965f6a9000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f965f68e000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f965f49c000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f965f477000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f965f45b000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f965f448000)
        libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f965f172000)
        libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f965f0ea000)
        libpulse-mainloop-glib.so.0 => /lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x00007f965f0e2000)
        libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f965f08d000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f965ef64000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f965ef5e000)
        libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f965ef11000)
        libicui18n.so.56 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libicui18n.so.56 (0x00007f965ea76000)
        libicuuc.so.56 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libicuuc.so.56 (0x00007f965e6be000)
        libicudata.so.56 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libicudata.so.56 (0x00007f965ccdb000)
        libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f965ccd6000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f966232d000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f965cc1e000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f965cbe8000)
        libpulsecommon-13.99.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so (0x00007f965cb66000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f965cb15000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f965caa2000)
        libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f965c9c5000)
        libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f965c992000)
        libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f965c98b000)
        libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f965c97c000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f965c83f000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f965c815000)
        libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f965c764000)
        libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f965c758000)
        libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f965c6db000)
        libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f965c4d5000)
        libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x00007f965c4c0000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f965c4b5000)
        libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f965c4ac000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f965c490000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f965c48a000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f965c482000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f965c459000)
        liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f965c436000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f965c318000)
        libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f965c2fb000)
        libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f965c2bd000)
        libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007f965c2b0000)
        libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f965c282000)
        libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f965c1d7000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f965c1bb000)
    

    So the executable is compiled directly with qt libraries.
    If I run it from terminal it works perfectly, without giving me any kind of problem.
    Also, if I try any other project from qt creator with the same version of qt it doesn’t give me any error and it runs perfectly, and links the same libraries of the first project.
    I also reinstalled all qt, including qt creator, and I’m always having the same problem.
    The code of the program is available on https://github.com/giacomogroppi/writernote-qt
    I’m using ubuntu 20.04 lts and on windows the problem doesn’t persist, always using the same version of qt with MINGW and Qt 5.15.2

    Any ideas on how to fix this?

    jsulmJ 1 Reply Last reply
    0
    • G Giacomogr

      Goodmorning, i’m having problems with qt creator: when i compile the application, both in debug and in release mode, i have no problem; but when i run with the debugger or even without, it gives me this error:

      /home/giacomo/build-writernote-Desktop_Qt_5_15_2_GCC_64bit-Debug/build/writernote: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /home/giacomo/build-writernote-Desktop_Qt_5_15_2_GCC_64bit-Debug/build/writernote)
      

      and the application doesn’t start.
      The problem is when i go to inspect with ldd the dynamic libraries of the executable and i get:

          linux-vdso.so.1 (0x00007ffc4b76a000)
          libQt5Pdfium.so.5 => /lib/x86_64-linux-gnu/libQt5Pdfium.so.5 (0x00007f9661cb3000)
          libzip.so.5 => /lib/x86_64-linux-gnu/libzip.so.5 (0x00007f9661c98000)
          libQt5PrintSupport.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5PrintSupport.so.5 (0x00007f9661a26000)
          libQt5Widgets.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Widgets.so.5 (0x00007f96611c4000)
          libQt5Multimedia.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Multimedia.so.5 (0x00007f9660eb0000)
          libQt5Gui.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Gui.so.5 (0x00007f966057f000)
          libQt5Network.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Network.so.5 (0x00007f96601cf000)
          libQt5Core.so.5 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libQt5Core.so.5 (0x00007f965f9d9000)
          libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f965f7f8000)
          libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f965f6a9000)
          libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f965f68e000)
          libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f965f49c000)
          libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f965f477000)
          libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f965f45b000)
          libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f965f448000)
          libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f965f172000)
          libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f965f0ea000)
          libpulse-mainloop-glib.so.0 => /lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x00007f965f0e2000)
          libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f965f08d000)
          libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f965ef64000)
          libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f965ef5e000)
          libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f965ef11000)
          libicui18n.so.56 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libicui18n.so.56 (0x00007f965ea76000)
          libicuuc.so.56 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libicuuc.so.56 (0x00007f965e6be000)
          libicudata.so.56 => /home/giacomo/Qt/5.15.2/gcc_64/lib/libicudata.so.56 (0x00007f965ccdb000)
          libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f965ccd6000)
          /lib64/ld-linux-x86-64.so.2 (0x00007f966232d000)
          libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f965cc1e000)
          libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f965cbe8000)
          libpulsecommon-13.99.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so (0x00007f965cb66000)
          libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f965cb15000)
          libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f965caa2000)
          libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f965c9c5000)
          libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f965c992000)
          libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f965c98b000)
          libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f965c97c000)
          libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f965c83f000)
          libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f965c815000)
          libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f965c764000)
          libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f965c758000)
          libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f965c6db000)
          libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f965c4d5000)
          libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x00007f965c4c0000)
          librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f965c4b5000)
          libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f965c4ac000)
          libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f965c490000)
          libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f965c48a000)
          libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f965c482000)
          liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f965c459000)
          liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f965c436000)
          libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f965c318000)
          libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f965c2fb000)
          libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f965c2bd000)
          libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007f965c2b0000)
          libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f965c282000)
          libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f965c1d7000)
          libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f965c1bb000)
      

      So the executable is compiled directly with qt libraries.
      If I run it from terminal it works perfectly, without giving me any kind of problem.
      Also, if I try any other project from qt creator with the same version of qt it doesn’t give me any error and it runs perfectly, and links the same libraries of the first project.
      I also reinstalled all qt, including qt creator, and I’m always having the same problem.
      The code of the program is available on https://github.com/giacomogroppi/writernote-qt
      I’m using ubuntu 20.04 lts and on windows the problem doesn’t persist, always using the same version of qt with MINGW and Qt 5.15.2

      Any ideas on how to fix this?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Giacomogr said in Qt error launch application:

      libQt5Pdfium.so.5 => /lib/x86_64-linux-gnu/libQt5Pdfium.so.5 (0x00007f9661cb3000)

      Is libQt5Pdfium.so.5 built using Qt from /home/giacomo/Qt/5.15.2?
      Did you change anything in Run settings in QtCreator?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Giacomogr
        wrote on last edited by
        #3

        @jsulm Hi, thanks for the reply.
        libQt5Pdfium.so.5 was not compiled using this version of qt, as it was compiled from the command line with apt's qt libraries.
        No, I haven't changed any of the qt creator configuration settings

        jsulmJ 1 Reply Last reply
        0
        • G Giacomogr

          @jsulm Hi, thanks for the reply.
          libQt5Pdfium.so.5 was not compiled using this version of qt, as it was compiled from the command line with apt's qt libraries.
          No, I haven't changed any of the qt creator configuration settings

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Giacomogr said in Qt error launch application:

          libQt5Pdfium.so.5 was not compiled using this version of qt, as it was compiled from the command line with apt's qt libraries

          Then I doubt it will work properly as you're mixing two different Qt versions.
          From the error message you posted you also can see that in fact /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 is being loaded.
          You should build Qt5Pdfium with your Qt.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          G 1 Reply Last reply
          2
          • jsulmJ jsulm

            @Giacomogr said in Qt error launch application:

            libQt5Pdfium.so.5 was not compiled using this version of qt, as it was compiled from the command line with apt's qt libraries

            Then I doubt it will work properly as you're mixing two different Qt versions.
            From the error message you posted you also can see that in fact /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 is being loaded.
            You should build Qt5Pdfium with your Qt.

            G Offline
            G Offline
            Giacomogr
            wrote on last edited by
            #5

            @jsulm OK thanks.
            I have a question, why running the program from the terminal does not give me this error?

            jsulmJ 1 Reply Last reply
            0
            • G Giacomogr

              @jsulm OK thanks.
              I have a question, why running the program from the terminal does not give me this error?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Giacomogr said in Qt error launch application:

              I have a question, why running the program from the terminal does not give me this error?

              Different environment I guess, but can't say what exactly causes this. You can compare what "env" prints out in terminal to the Run configuration in QtCreator.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved