我目前正在用 Qt 编写代码.如何静态编译代码?
I am currently writing code in Qt. How to compile the code statically?
从 Qt 文档中我了解到以下步骤
From Qt document I came to know the following step
1) Visual Studio 2008 -> commandPrompt -> QtDir -> configure -static -> nmake
1) Visual Studio 2008 -> commandPrompt -> QtDir -> configure -static -> nmake
但是,它占用了 17 GB,最后它在完成之前退出,指出空间不够".
But, it took 17 GB and at the end it exited before the completion stating that "the space is not enough".
是否有任何简单的方法可以将 Qt 应用程序编译为独立程序?
Is there any simple way to compile the Qt application as a stand alone program?
您已经使用了唯一可能的方法:将源代码编译为静态.
You have already used the only way possible: compiling the source as static.
一些对磁盘大小影响非常大的事情(这似乎是这里的问题),以及相应的配置参数:
Some things that have a very large impact on disk size (which seems to be the problem here), with corresponding configure arguments:
-release-no-webkit -no-script -no-scripttools -no-qt3support -nomake demos -nomake tools -nomake examplesno-ltcg这些应该有助于将构建大小保持在最低限度.
These should help keep the build size to a minimum.
这篇关于如何将 Qt 编译为静态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何在 C++ 中读取和操作 CSV 文件数据?How can I read and manipulate CSV file data in C++?(如何在 C++ 中读取和操作 CSV 文件数据?)
在 C++ 中,为什么我不能像这样编写 for() 循环:In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,为什么我不能像这样编写 for() 循环: for(
OpenMP 如何处理嵌套循环?How does OpenMP handle nested loops?(OpenMP 如何处理嵌套循环?)
在循环 C++ 中重用线程Reusing thread in loop c++(在循环 C++ 中重用线程)
需要精确的线程睡眠.最大 1ms 误差Precise thread sleep needed. Max 1ms error(需要精确的线程睡眠.最大 1ms 误差)
是否需要“do {...} while ()"?环形?Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?环形?)