Problems to run application on Client Computer (Windows Only)
-
[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?
-
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).
-
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"
-
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.
-
2. Configure and build it with keys -static -release…
Where I configure that? Can you explain in details?
-
*Only the Dependenci MSJAVA.DLL is missing...
But I'm can't understand why! -
[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
-
Thanks, I was reading this:
http://qt-project.org/doc/qt-4.8/deployment-windows.html -
[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.
-
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]
-
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?
-
How to execute this commands:
@
configure -static -release -no-exceptions
mingw32-make sub-src
@ -
[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.
-
"run MinGW"! Thanks... I will try!
-
[quote author="dcbasso" date="1352489443"]"run MinGW"! Thanks... I will try![/quote]
You are welcome.
-
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 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.
-
Well I have this option installed here... wait.
-
Another question:
@
mingw32-make sub-src
@Whats "sub-src" means? I need change for something else?!
-
Whats “sub-src” means? I need change for something else?!