Problems to run application on Client Computer (Windows Only)
-
wrote on 8 Nov 2012, 12:03 last edited by
Well guys, I make my application make a package install for debian, runs very well on Debian/Ubuntu SO, but now I compile to Windows (using Windows 7 32bits) and make a installer where I put all .dll files on "C:\Windows\System32" (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?
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!
The Problem: at this right moment I could not find a way to try debug the application to show errors and other stuff from clients computes.
What's can be? What information is needed to get some help?
Thanks all!!!
UPDATE
Additionally: I check Event Reporter of Windows
and have error code of the crash: 0x0000ee66Dependency Walker:
Just 2 warnings anothing important I think! -
wrote on 8 Nov 2012, 12:43 last edited by
Checking out this: http://qt-project.org/forums/viewthread/19806/
-
[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?
-
wrote on 8 Nov 2012, 15:49 last edited by
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).
-
wrote on 9 Nov 2012, 17:02 last edited by
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"
-
wrote on 9 Nov 2012, 17:26 last edited by
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.
-
wrote on 9 Nov 2012, 17:29 last edited by
2. Configure and build it with keys -static -release…
Where I configure that? Can you explain in details?
-
wrote on 9 Nov 2012, 17:41 last edited by
*Only the Dependenci MSJAVA.DLL is missing...
But I'm can't understand why! -
wrote on 9 Nov 2012, 17:45 last edited by
[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
-
wrote on 9 Nov 2012, 17:47 last edited by
Thanks, I was reading this:
http://qt-project.org/doc/qt-4.8/deployment-windows.html -
wrote on 9 Nov 2012, 17:49 last edited by
[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.
-
wrote on 9 Nov 2012, 17:53 last edited by
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]
-
wrote on 9 Nov 2012, 18:16 last edited by
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?
-
wrote on 9 Nov 2012, 19:26 last edited by
How to execute this commands:
@
configure -static -release -no-exceptions
mingw32-make sub-src
@ -
wrote on 9 Nov 2012, 19:29 last edited by
[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.
-
wrote on 9 Nov 2012, 19:30 last edited by
"run MinGW"! Thanks... I will try!
-
wrote on 9 Nov 2012, 19:31 last edited by
[quote author="dcbasso" date="1352489443"]"run MinGW"! Thanks... I will try![/quote]
You are welcome.
-
wrote on 9 Nov 2012, 19:47 last edited by
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?!+ -
wrote on 9 Nov 2012, 19:48 last edited by
[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.
-
wrote on 9 Nov 2012, 19:50 last edited by
Well I have this option installed here... wait.
5/22