简体   繁体   中英

Qt5 Deployment on Windows

I have been reviewing how to deploy my desktop application from Qt5 Creator to a set of .dll's and an .exe. The process as documented seems ridiculously complex: http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html .
Please can you help me understand it better.

Just copying the .dlls found using the Dependency Walker does not work -t tells me there is a missing entry point for Qt5Core.dll, and I have tried every single version of Qt5Core.dll on my hard drive. But I digress.

  1. It says you have to build QT statically. What does this actually do?
  2. Once I have built statically, how do I undo this and get back to my normal environment?
  3. Step 1 says . Where do I find out where these options are?
  4. Is there a tool I can just run which does this for me?

Many thanks.

(I'm using Windows 7 and Qt 5.1.)

Do I have to include all these Qt dlls with my application?

Statically linking is rare. You are probably using LGPL licensing, so you should dynamically link.

Towards the bottom of the page you mentioned in your link, it gives an example project's dll dependencies.

When looking at the release build of the Plug & Paint executable (plugandpaint.exe) with the depends tool, the tool lists the following immediate dependencies to non-system libraries:

And then it gives the chart of a bunch of dll's. Depending on the modules in your .pro file you will need different dll's and different runtime compiler dependencies.

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM