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. My Application doesnt run another pc
Forum Updated to NodeBB v4.3 + New Features

My Application doesnt run another pc

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 561 Views 2 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.
  • D Offline
    D Offline
    deleted286
    wrote on last edited by
    #1

    I have ubuntu 18.04 and i created an executable file of my application. I want to run it as standalone on another pc. This pc has the same operating system. But it doesnt work. Can anybody help me?

    Screenshot from 2021-03-03 15-26-53.png

    Here is my executable . Im just copy this executable file and try to run. Is there any other thing that should be done?

    JonBJ 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to deploy the application. At the very least, it needs Qt libraries to be present in the system.

      So you need a .deb package, or .AppImage, or install Qt manually on target system.

      More info: https://doc.qt.io/qt-5/linux-deployment.html

      (Z(:^

      D 1 Reply Last reply
      3
      • D deleted286

        I have ubuntu 18.04 and i created an executable file of my application. I want to run it as standalone on another pc. This pc has the same operating system. But it doesnt work. Can anybody help me?

        Screenshot from 2021-03-03 15-26-53.png

        Here is my executable . Im just copy this executable file and try to run. Is there any other thing that should be done?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @suslucoder said in My Application doesnt run another pc:

        But it doesnt work.

        What does this mean?

        This pc has the same operating system.

        Does it even have the same architecture? Does it have the same libraries in the same places? And so on....

        EDIT But perhaps most likely as @sierdzio has said. What have you done about deployment, installing Qt libraries on the other machine, etc.?

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Hi
          Well it needs its Qt SO files also.

          if you run ldd on your "exe" you can see what its missing

          It also needs a subfolder called platforms

          maybe something like https://flatpak.org/
          will be more easy.

          or maybe
          https://github.com/QuasarApp/CQtDeployer
          (i never tried it)

          or this one that might just work
          https://github.com/probonopd/linuxdeployqt

          Or did as I did
          Use the tool on windows
          https://doc.qt.io/qt-5/windows-deployment.html

          as then it creates teh folder structure i need and i can see the names of the SO files

          but you still need to manually copy them on linux.

          In any case. Yes there is more to do unless Qt is install on "the other system"

          update: eheh im waay to slow :)

          1 Reply Last reply
          0
          • sierdzioS sierdzio

            You need to deploy the application. At the very least, it needs Qt libraries to be present in the system.

            So you need a .deb package, or .AppImage, or install Qt manually on target system.

            More info: https://doc.qt.io/qt-5/linux-deployment.html

            D Offline
            D Offline
            deleted286
            wrote on last edited by
            #5

            @sierdzio I followed the ınstructions at that page, when i command

            ldd ./application
            

            ı saw the libraries, it is wrong?

            JonBJ 1 Reply Last reply
            0
            • D deleted286

              @sierdzio I followed the ınstructions at that page, when i command

              ldd ./application
              

              ı saw the libraries, it is wrong?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @suslucoder
              And just to verify, did the ldd output have any "not found"s written against any of them?

              Nonetheless you need to follow the instructions others are pointing you to.

              D 1 Reply Last reply
              0
              • JonBJ JonB

                @suslucoder
                And just to verify, did the ldd output have any "not found"s written against any of them?

                Nonetheless you need to follow the instructions others are pointing you to.

                D Offline
                D Offline
                deleted286
                wrote on last edited by
                #7

                @JonB said in My Application doesnt run another pc:

                And just to verify, did the ldd output have any "not found"s written against any of them?
                Nonetheless you need to follow the instructions others are pointing you to.

                No there isnt "not found"

                sierdzioS 1 Reply Last reply
                0
                • D deleted286

                  @JonB said in My Application doesnt run another pc:

                  And just to verify, did the ldd output have any "not found"s written against any of them?
                  Nonetheless you need to follow the instructions others are pointing you to.

                  No there isnt "not found"

                  sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  @suslucoder said in My Application doesnt run another pc:

                  @JonB said in My Application doesnt run another pc:

                  And just to verify, did the ldd output have any "not found"s written against any of them?
                  Nonetheless you need to follow the instructions others are pointing you to.

                  No there isnt "not found"

                  You need to run it on target PC, not on yours.

                  (Z(:^

                  1 Reply Last reply
                  2

                  • Login

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