Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. executable no longer executes
Forum Updated to NodeBB v4.3 + New Features

executable no longer executes

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 5 Posters 385 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    micha_eleric
    wrote on last edited by
    #1

    i made an executable last year, tested it, emailed it, reinstalled os, had issues next change to program, so went back to previous version. it no longer executes the executable that was executable before reinstalling os. it now gives

    error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory

    when started in konsole.

    libQt5SerialPort.so.5 is is in two locations

    dont know why an executable would need any lib files

    C Ronel_qtmasterR 2 Replies Last reply
    0
    • M micha_eleric

      i made an executable last year, tested it, emailed it, reinstalled os, had issues next change to program, so went back to previous version. it no longer executes the executable that was executable before reinstalling os. it now gives

      error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory

      when started in konsole.

      libQt5SerialPort.so.5 is is in two locations

      dont know why an executable would need any lib files

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @micha_eleric said in executable no longer executes:

      it now gives

      error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory
      when started in konsole.

      So the library is missing in all the places that the operating system will look for libraries. See ld.so.

      libQt5SerialPort.so.5 is is in two locations

      Neither of these is in a location .... See above.

      dont know why an executable would need any lib files

      This is because the executable was built using dynamic linking to Qt (the default and by far the easiest way).

      M 1 Reply Last reply
      1
      • C ChrisW67

        @micha_eleric said in executable no longer executes:

        it now gives

        error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory
        when started in konsole.

        So the library is missing in all the places that the operating system will look for libraries. See ld.so.

        libQt5SerialPort.so.5 is is in two locations

        Neither of these is in a location .... See above.

        dont know why an executable would need any lib files

        This is because the executable was built using dynamic linking to Qt (the default and by far the easiest way).

        M Offline
        M Offline
        micha_eleric
        wrote on last edited by
        #3

        @ChrisW67 said in executable no longer executes:

        @micha_eleric said in executable no longer executes:

        dont know why an executable would need any lib files

        This is because the executable was built using dynamic linking to Qt (the default and by far the easiest way).

        which means if executable is to be used on another computer, then all libraries have to be sent in same folder?

        C jsulmJ 2 Replies Last reply
        0
        • M micha_eleric

          @ChrisW67 said in executable no longer executes:

          @micha_eleric said in executable no longer executes:

          dont know why an executable would need any lib files

          This is because the executable was built using dynamic linking to Qt (the default and by far the easiest way).

          which means if executable is to be used on another computer, then all libraries have to be sent in same folder?

          C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          @micha_eleric If you dynamically link to any library then that library (or a compatible version) needs to be present on the target machine. Whether you need to ship it (e.g. a Qt library) or can rely on it already being there (e.g. a Windows C++ runtime) depends on the library.

          See Deploying Qt Applications

          1 Reply Last reply
          1
          • M micha_eleric

            i made an executable last year, tested it, emailed it, reinstalled os, had issues next change to program, so went back to previous version. it no longer executes the executable that was executable before reinstalling os. it now gives

            error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory

            when started in konsole.

            libQt5SerialPort.so.5 is is in two locations

            dont know why an executable would need any lib files

            Ronel_qtmasterR Offline
            Ronel_qtmasterR Offline
            Ronel_qtmaster
            wrote on last edited by
            #5

            @micha_eleric just put that library in the folder of your executable or add the path to the library folder in the system using export LD_LIBRARY_PATH = /path_to_lib

            1 Reply Last reply
            0
            • M micha_eleric

              @ChrisW67 said in executable no longer executes:

              @micha_eleric said in executable no longer executes:

              dont know why an executable would need any lib files

              This is because the executable was built using dynamic linking to Qt (the default and by far the easiest way).

              which means if executable is to be used on another computer, then all libraries have to be sent in same folder?

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

              @micha_eleric See also https://doc.qt.io/qt-6/windows-deployment.html

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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SimonSchroeder
                wrote on last edited by
                #7

                To make things portable on Linux, use an AppImage. We use a combination of linuxdeploy and linuxdeployqt to create the AppImage. Only downside: The Linux machine you are compiling on needs to be an older Linux version. linuxdeploy will deny operation on newer Linux versions. You might want to use a virtual machine (or Docker container) for that.

                1 Reply Last reply
                1
                • M micha_eleric has marked this topic as solved on

                • Login

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