April 5, 2013

RaubTieR RaubTieR
Lab Rat
42 posts

[SOLVED] Different Qt5Core.dll’s 5.0.0.0, oh god why!

 

UPD: got this working, we added “platforms” directory to a package, it contains qminimal.dll and qwindows.dll. Automation question is still actual, never the less.

We have a deployment issue: application package doesn’t work on other PC. The package is made from all the libraries that were required to run app in separate folder from explorer.exe interface. The libs were taken from Qt5 installation folder (I:\Qt\Qt5.0.0\5.0.0\msvc2010\bin in that case).

We figured out, however that the only difference is Qt5Core DLL libraries. In other words, My package works on friends PC when he replaces my Qt5Core.dll with the one from his Qt installation. Those 2 dlls have different CRC, and here comparison picture you can see that dlls somehow store the path they were installed in. Since our paths are different, application refuses to work at all. NO ERRORS! It just swallows all the clicks and no process gets launched. This is really annoying behavior.

How does one deploy Qt5 applications now? How can I make sure my app will work on other, yet same platform PC (both win7 Ultimate sp1 ×64)? Any deployment automation out there?

7 replies

April 5, 2013

SGaist SGaist
Mad Scientist
10430 posts

Hi,

The deployment [qt-project.org] documentation explains what libraries you need to put besides your application.

As for automation on windows, it depends on the build system/package creator you use

 Signature 

Need programers to hire ? www.edeltech.ch

April 6, 2013

RaubTieR RaubTieR
Lab Rat
42 posts

Thank you for a useful link.
I always have imagined deployment automation tool like some kind of setup-maker (crossplatform app, like QtCreator but Deployer). It would allow user to pull in resource files (images, data, etc.) and offer a good help automatically analizing dependencies and taking Qt dlls from its installation path.
Maybe something is already around? I don’t mean any console magic, for sure it has to have an intuitive window interface like QtCreator does…

April 6, 2013

SGaist SGaist
Mad Scientist
10430 posts

You’re welcome !

I almost forgot, for the cross-platform setup-maker there’s Qt Installer Framework [doc-snapshot.qt-project.org] in the making

 Signature 

Need programers to hire ? www.edeltech.ch

May 14, 2013

A.E72 A.E72
Lab Rat
12 posts

hello!
i didn’t get how we could fix it ? thankx in advance.

May 15, 2013

SGaist SGaist
Mad Scientist
10430 posts

Hi,

What couldn’t you fix ?

 Signature 

Need programers to hire ? www.edeltech.ch

May 15, 2013

A.E72 A.E72
Lab Rat
12 posts

hello!
My problem is that i create an installer in a sparate machine and i ship with it the ddl (i develop the app on my machine). when i try to use it, i didn’t work. But when i remove Qt5core.dll and relpace it with mine it works. Second problem on a friend computer he don’t qt5.0.2 and solution doesn’t work.
I’m using bitrock to creat the installer, I hope that my problem is clear. Thank you in advance.

May 15, 2013

A.E72 A.E72
Lab Rat
12 posts

Hi again!
i did resolve the problem by include platforms folder(C:\Qt\Qt5.0.2\5.0.2\mingw47_32\plugins\platforms) and it works!! and you could just copy qminimal.dll and qwindows.dll the others are for debug.

 
  ‹‹ [Solved] "QTableWidgetItem: No such file or directory" in Qt 5      Qt 5.0 and ’failed to load platform plugin "cocoa"’ ››

You must log in to post a reply. Not a member yet? Register here!