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. Deploying an Application on Windows
QtWS25 Last Chance

Deploying an Application on Windows

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

    Howdy people,

    I've made an application using Qt Creator and it runs flawlessly on my Arch Linux desktop computer. Now I want to give it to my friends, but the problem is that most of them use Windows. Therefore I'm required to compile the application for Windows systems, and while that's not a problem, I can't seem to find the right DLL-files.

    When I had compiled my application I followed this YouTube tutorial to find the right DLL-files:
    http://www.youtube.com/watch?v=X1BsPQue5-k

    I copied all DLL-files that Dependency Walker told me were missing to the same folder as my .exe file is in. Despite that, the application crashes on connect (it's an IRC client and it crashes when you have connected) and I have no idea why.

    I think it's related to what Dependency Walker tells me about IEFRAME.dll, but I'm not sure how to solve it:
    http://delafilen.nu/u/1331814661_DW.png

    QtCore4.dll, QtGui4.dll, QtNetwork4.dll, libgcc_s_dw2-1.dll and mingwm10.dll were all copied from this folder:
    C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin

    What have I done wrong?

    • Martin
    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      If your app runs and then crashes afterwards on connect, then it may not be a deployment issue.

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

        It runs perfectly fine if I run it from Qt Creator, on both Windows and Linux, though...

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          Then maybe you are including the wrong versions of DLLs with your app?

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

            Is there any fool-proof way of finding which version I should include? Can I see the paths to the files Qt Creator uses? I have tried with several different DLLs with the same name, without getting anywhere.

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              I am not that adept in that area myself, hopefully someone more experienced will be able to help you. Does the OS provide you with any information upon the crash that you might want to share?

              1 Reply Last reply
              0
              • K Offline
                K Offline
                Kottalizer
                wrote on last edited by
                #7

                There might be a way of catching that, but I don't know how to do that in Windows. Any help on that would be appreciated too.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Scylla
                  wrote on last edited by
                  #8

                  You can use "dependency walker":http://www.dependencywalker.com/ to get the dependencies of your app. It cannot resolve plugins!

                  1 Reply Last reply
                  0
                  • ? This user is from outside of this forum
                    ? This user is from outside of this forum
                    Guest
                    wrote on last edited by
                    #9

                    [quote author="Scylla" date="1331828262"]You can use "dependency walker":http://www.dependencywalker.com/ to get the dependencies of your app. It cannot resolve plugins![/quote]

                    In his first post he already mentioned that he used dependency walker.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Scylla
                      wrote on last edited by
                      #10

                      Sorry, I missed this. We had a similar problem this week. The problem was that there where some different Qt libs in the system folder installed.
                      Another problem can be, that if you start you app from Qt Creator, the working path is set explicit. If you start your app anywhere else, the path is different.

                      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