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. Run application on the other computer

Run application on the other computer

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 6 Posters 2.2k 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.
  • N Offline
    N Offline
    nikita1985
    wrote on last edited by
    #1

    Hello all,
    I have a question. Write a simple Qt application dealing with plots and graphics at home. Built an executable file, brought it to another desktop. Tried to run the application but could not because system requires QtCore library. I am a beginner in Qt, just started to learn it. Is it normal? I expected that all is included during linking of the object files. How can I run executable file linked on one computer on another one?
    Any information is very much appreciated.

    FlotisableF Venkatesh VV jsulmJ 3 Replies Last reply
    0
    • N nikita1985

      Hello all,
      I have a question. Write a simple Qt application dealing with plots and graphics at home. Built an executable file, brought it to another desktop. Tried to run the application but could not because system requires QtCore library. I am a beginner in Qt, just started to learn it. Is it normal? I expected that all is included during linking of the object files. How can I run executable file linked on one computer on another one?
      Any information is very much appreciated.

      FlotisableF Offline
      FlotisableF Offline
      Flotisable
      wrote on last edited by
      #2

      @nikita1985
      take a look at Deployment of Qt Application

      1 Reply Last reply
      3
      • N nikita1985

        Hello all,
        I have a question. Write a simple Qt application dealing with plots and graphics at home. Built an executable file, brought it to another desktop. Tried to run the application but could not because system requires QtCore library. I am a beginner in Qt, just started to learn it. Is it normal? I expected that all is included during linking of the object files. How can I run executable file linked on one computer on another one?
        Any information is very much appreciated.

        Venkatesh VV Offline
        Venkatesh VV Offline
        Venkatesh V
        wrote on last edited by
        #3

        @nikita1985

        Hi
        If you are running application on windows box, along with executable, copy the required dll's in a same folder. to check what are all the dll's requires just click on executable it will shows popup window with required library name. without library you cant run it on other computer.

        1 Reply Last reply
        3
        • N nikita1985

          Hello all,
          I have a question. Write a simple Qt application dealing with plots and graphics at home. Built an executable file, brought it to another desktop. Tried to run the application but could not because system requires QtCore library. I am a beginner in Qt, just started to learn it. Is it normal? I expected that all is included during linking of the object files. How can I run executable file linked on one computer on another one?
          Any information is very much appreciated.

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

          @nikita1985 Follow the link @Flotisable provided.
          Your expectation is wrong: usually applications are linked dynamically against shared libraries. That means that shared libraries are not included into the executable files and needs to be there when starting the executable. You can avoid most Qt dependencies when using a static Qt build - static libraries are put into the executable during linking. But it is not an easy task to build Qt, you should just use shared libraries (which is done in most cases) and deploy your app to execute it on other machines.

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

          V JoeCFDJ 2 Replies Last reply
          2
          • jsulmJ jsulm

            @nikita1985 Follow the link @Flotisable provided.
            Your expectation is wrong: usually applications are linked dynamically against shared libraries. That means that shared libraries are not included into the executable files and needs to be there when starting the executable. You can avoid most Qt dependencies when using a static Qt build - static libraries are put into the executable during linking. But it is not an easy task to build Qt, you should just use shared libraries (which is done in most cases) and deploy your app to execute it on other machines.

            V Offline
            V Offline
            Vijaykarthikeyan
            wrote on last edited by
            #5

            @jsulm you are right. For dll's, one should include all the dependencies along with the executables.

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @nikita1985 Follow the link @Flotisable provided.
              Your expectation is wrong: usually applications are linked dynamically against shared libraries. That means that shared libraries are not included into the executable files and needs to be there when starting the executable. You can avoid most Qt dependencies when using a static Qt build - static libraries are put into the executable during linking. But it is not an easy task to build Qt, you should just use shared libraries (which is done in most cases) and deploy your app to execute it on other machines.

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by
              #6

              @jsulm I guess plugins are needed as well.

              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