使用静态链接的QtQuick库静态构建Qt应用程序(Qt5)

时间:2016-02-19 16:37:39

标签: qt5 static-linking

如何使用静态链接编译可执行文件,该链接也在QtQuick / QtQuick2中静态链接,这样您就不需要单独的qmldir文件了?

背景:

  1. 奇怪(和我使用过的任何其他编译器不同)我发现you need a statically compiled version of Qt in order to generate a statically linked executable
  2. 当我的应用只显示为一个小空白窗口时,我搜索并发现了although the application is statically linked, you still need to have the relevant QtQuick / QtQuick.2 folders containing the qmldir files
  3. 我想要的是一个单独的自包含可执行文件。

    我只在Windows上试过这个,但我一直在问这个问题,以防不同平台有不同的解决方案。目前我对Windows桌面,Mac OS X桌面和iOS感兴趣,但了解所有支持平台的情况会很有用。

0 个答案:

没有答案
相关问题