开发者

Qt Build w/ DLLs Included

开发者 https://www.devze.com 2023-01-21 22:30 出处:网络
In Qt when I build a project it creates the executable but it doesn\'t include the necessary DLLs. Is their some option开发者_运维技巧 I can turn on to do this for me?I\'ll assume you are referring to

In Qt when I build a project it creates the executable but it doesn't include the necessary DLLs. Is their some option开发者_运维技巧 I can turn on to do this for me?


I'll assume you are referring to deploying your application. If you build with static linking to Qt, you won't have to distribute Qt DLLs but you will have a large executable. You may have to compile the Qt library yourself to get static libraries.

Dynamic linking will require you to copy the appropriate Qt DLLs with your application. Some build environments may have an option to help with this. If you mention what your development tool chain and platform is in the question, somebody may be able to help with specifics.

Qt has some documentation related to deployment here.

0

精彩评论

暂无评论...
验证码 换一张
取 消