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. [Solved] Qt application not start on another computer.
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt application not start on another computer.

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 3.6k 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.
  • K Offline
    K Offline
    Kantong
    wrote on last edited by
    #1

    With qt4 I add a.addLibraryPath(QCoreApplication::applicationDirPath ()+"/plugins").
    If compiling with qt 5 application dont start.
    I think that the problem is plugins directory.

    1 Reply Last reply
    0
    • podsvirovP Offline
      podsvirovP Offline
      podsvirov
      wrote on last edited by
      #2

      Hi! You have given very little information.
      On what platform you work and what compiler are you using?
      How you deploy your application on another computer?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kantong
        wrote on last edited by
        #3

        I use qt rc2 and qt creator with visual studio 2010 in windows 8.
        I put excutable and shared dll and plugin dir.
        Add path plugins as qt4.

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

          You need to copy the platform plugin, too (windows.dll, to plugins/platforms).

          (Z(:^

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kantong
            wrote on last edited by
            #5

            Done. Dont start.
            Qt is great and there is good documentation, but things easy seem complicated.
            Excuse for my english.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Kantong
              wrote on last edited by
              #6

              Phatic months for an application and I cannot give to friends!

              1 Reply Last reply
              0
              • podsvirovP Offline
                podsvirovP Offline
                podsvirov
                wrote on last edited by
                #7

                On the other machine must be installed Microsoft Visual C++ 2010 Redistributable Package, which can be downloaded "here":http://www.microsoft.com/en-us/download/details.aspx?id=5555.

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  Kantong
                  wrote on last edited by
                  #8

                  I know this. I believe that the problem is plugins dir.
                  In fact, if you rename in my computer this folder, application not start.
                  I put in folder application shared dll and copy in it intere plugins folder, add
                  istruction a.addLibraryPath. I try to delete other path library.
                  In qt 4 version this work, in qt 5 lib not work.
                  There is a solution, probabily, as add plugins folder in same directory in client computer, but I belive is not elegant solution.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    Kantong
                    wrote on last edited by
                    #9

                    Solved! Don't need add anything to code application, example addLibraryPath,
                    I have put in folder release follow files:
                    D3DCompiler_43.dll
                    icu*.dll
                    libEGL.dll
                    libGLESv2.dll
                    and other which application ask.
                    The plugins folders must out as same level:
                    not plugins/imageformats
                    but imageformats

                    Add also platforms
                    Thanks

                    1 Reply Last reply
                    0
                    • podsvirovP Offline
                      podsvirovP Offline
                      podsvirov
                      wrote on last edited by
                      #10

                      This is good news! Now be a good boy, and add [Solved] to the beginning of a stream header.
                      When I create the installer on Windows, use the "Dependency Walker":http://www.dependencywalker.com/ .
                      This is a GUI application that shows the dependencies needed to run the application (this does not apply to plug-ins).

                      1 Reply Last reply
                      0

                      • Login

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