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. Problems to run application on Client Computer (Windows Only)
Forum Updated to NodeBB v4.3 + New Features

Problems to run application on Client Computer (Windows Only)

Scheduled Pinned Locked Moved General and Desktop
22 Posts 3 Posters 9.1k 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.
  • JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #3

    [quote author="dcbasso" date="1352376237"]now I compile to Windows (using Windows 7 32bits) and make a installer where I put all .dll files on "C:\Windows\System32"[/quote]NEVER EVER put anything in C:\Windows! That folder is only for official Microsoft files, that are needed by Windows to run properly. Put your Qt DLLs in the same folder as your application.

    [quote](example: QtWebKitd4.dll, QtSvgd4.dll, QtSqld4.dll, QtCored4.dll and others)...

    First of all, I think that all this .dll files increases the installer file, my application has only 26,7mb and this .dlls has 311mb, it's possible to resolve that problem?[/quote]You listed the Debug version of the DLLs. Debug builds are always bigger. If you make a Release build, and use QtWebKit4.dll, QtSvg4.dll, QtSql4.dll, QtCore4.dll, your package will be much smaller.

    [quote]Second after a install on the client computer I try to start the application and I got error, and my splashscreen don't show the image that is on resources! Seconds after splashscreen appears my applications crashs!!! On linux or on the computer where I compile the application the .exe works very well!

    ...

    Dependency Walker:
    Just 2 warnings anothing important I think![/quote]Error messages are very useful for debugging. What do your error messages say?

    If Dependency Walker gives you warnings, it probably means that you have missing DLLs. Read the warnings, pay attention to the files they list, and try to fix them.

    Also:

    • What version of Qt are you using?
    • What compiler are you using?
    • What version is your compiler?

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #4

      OK nice tip about the the debug .dll files, but at its right moment I'm making a test version of my application, when this app go to "production", to market I change the .dll and the compilation configuration.

      The Dependency Walker shows something about microsoft java, and it's not an ERROR appears only warnings and this two warning it's not to show that some .dll file is missing...

      Also:

      • What version of Qt are you using? - 4.7.4
      • What compiler are you using? - MinGW 4.4
      • QtCreator? - 2.4.1 (all features I'm using come by default on this QtCreator).
      1 Reply Last reply
      0
      • D Offline
        D Offline
        dcbasso
        wrote on last edited by
        #5

        Anyone?

        I thinking that can be something to non-static linking... I'm not sure!
        http://qt-project.org/doc/qt-4.8/deployment-windows.html
        @
        cd C:\path\to\Qt
        @

        This path is the app projeto or real Qt? I can find a way to execute the comando "configure -static"

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #6

          Ok. I will post here the happy-pill to build Qt-es for Windows:

          Download proper version of Qt Library

          Configure and build it with keys -static -release...

          Build your project with this Qt tool chain on the Windows machine

          Check it on other machines

          ???

          PROFIT!!1

          It works cos I am using it.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dcbasso
            wrote on last edited by
            #7

            2. Configure and build it with keys -static -release…

            Where I configure that? Can you explain in details?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dcbasso
              wrote on last edited by
              #8

              *Only the Dependenci MSJAVA.DLL is missing...
              But I'm can't understand why!

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tucnak
                wrote on last edited by
                #9

                [quote author="dcbasso" date="1352482192"]2. Configure and build it with keys -static -release…

                Where I configure that? Can you explain in details?[/quote]

                http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Windows

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dcbasso
                  wrote on last edited by
                  #10

                  Thanks, I was reading this:
                  http://qt-project.org/doc/qt-4.8/deployment-windows.html

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tucnak
                    wrote on last edited by
                    #11

                    [quote author="dcbasso" date="1352483254"]Thanks, I was reading this:
                    http://qt-project.org/doc/qt-4.8/deployment-windows.html[/quote]

                    No, no. The link I gave you should be better for your problem.

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dcbasso
                      wrote on last edited by
                      #12

                      Sure, I'm reading!
                      Right now I'm trying to find a fix to MSJAVA.DLL!
                      I'm dont know why this is necessary, but... is...

                      [quote author="tucnak" date="1352483350"][quote author="dcbasso" date="1352483254"]Thanks, I was reading this:
                      http://qt-project.org/doc/qt-4.8/deployment-windows.html[/quote]

                      No, no. The link I gave you should be better for your problem.[/quote]

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dcbasso
                        wrote on last edited by
                        #13

                        Well, Now I got this another erro:

                        @
                        g++: LFLAGS: No such file or directory
                        g++: =: No such file or directory
                        mingw32-make.exe[1]: *** [debug\InoveBEVSAT.exe] Error 1
                        mingw32-make.exe: *** [debug] Error 2
                        16:10:01: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
                        Error while building project InoveBEV (target: Desktop)
                        When executing build step 'Make'
                        @

                        I need to define something on *.pro file?

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dcbasso
                          wrote on last edited by
                          #14

                          How to execute this commands:

                          @

                          configure -static -release -no-exceptions
                          mingw32-make sub-src
                          @

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            tucnak
                            wrote on last edited by
                            #15

                            [quote author="dcbasso" date="1352489218"]How to execute this commands:

                            @

                            configure -static -release -no-exceptions
                            mingw32-make sub-src
                            @[/quote]

                            You should to run MinGW Command Promt. After that change currend directory (cd) to the dir which contains your qt libs. After that - execute commands.

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              dcbasso
                              wrote on last edited by
                              #16

                              "run MinGW"! Thanks... I will try!

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                tucnak
                                wrote on last edited by
                                #17

                                [quote author="dcbasso" date="1352489443"]"run MinGW"! Thanks... I will try![/quote]

                                You are welcome.

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  dcbasso
                                  wrote on last edited by
                                  #18

                                  on MinGW Promt:

                                  @
                                  cd C:\QtSDK\Desktop\Qt\4.8.1\mingw
                                  @

                                  @
                                  cd C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin
                                  @

                                  @
                                  cd C:\QtSDK\Desktop\Qt\4.8.1\mingw\lib
                                  @

                                  And i try run commands, and the "sh: configure: command not found".
                                  I go to the right folder?!+

                                  1 Reply Last reply
                                  0
                                  • T Offline
                                    T Offline
                                    tucnak
                                    wrote on last edited by
                                    #19

                                    [quote author="dcbasso" date="1352490427"]on MinGW Promt:

                                    @
                                    cd C:\QtSDK\Desktop\Qt\4.8.1\mingw
                                    @

                                    @
                                    cd C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin
                                    @

                                    @
                                    cd C:\QtSDK\Desktop\Qt\4.8.1\mingw\lib
                                    @

                                    And i try run commands, and the "sh: configure: command not found".
                                    I go to the right folder?!+[/quote]

                                    No, no. Do not use Qt SDK. Download Qt 4.8.2 libraries and work with it.

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      dcbasso
                                      wrote on last edited by
                                      #20

                                      Well I have this option installed here... wait.

                                      1 Reply Last reply
                                      0
                                      • D Offline
                                        D Offline
                                        dcbasso
                                        wrote on last edited by
                                        #21

                                        Another question:

                                        @
                                        mingw32-make sub-src
                                        @

                                        Whats "sub-src" means? I need change for something else?!

                                        1 Reply Last reply
                                        0
                                        • D Offline
                                          D Offline
                                          dcbasso
                                          wrote on last edited by
                                          #22

                                          Whats “sub-src” means? I need change for something else?!

                                          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