久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何將 Qt 編譯為靜態

How to compile Qt as static(如何將 Qt 編譯為靜態)
本文介紹了如何將 Qt 編譯為靜態的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我目前正在用 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:

  1. 禁用調試:-release
  2. 禁用不需要的模塊,尤其是 QtWebKit:-no-webkit -no-script -no-scripttools -no-qt3support -nomake demos -nomake tools -nomake examples
  3. 禁用 LTCG 支持,這會產生巨大的靜態庫的副作用:no-ltcg

這些應該有助于將構建大小保持在最低限度.

These should help keep the build size to a minimum.

這篇關于如何將 Qt 編譯為靜態的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數據?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫 for() 循環: for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環?)
Reusing thread in loop c++(在循環 C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環形?)
主站蜘蛛池模板: 日韩一区二区免费视频 | 国产精品国产亚洲精品看不卡15 | 久久不卡 | 天天艹日日干 | 日韩在线综合网 | 99视频在线看 | 国产黄色大片在线免费观看 | 午夜精品久久久久久久久久久久 | 久久久免费| 天天操操操操操 | 九九国产在线观看 | 精品久久影院 | 亚洲在线免费 | 久久高清 | 91色啪| 久久综合狠狠综合久久综合88 | 久久黄网| 成人免费在线 | 精品视频一区二区三区在线观看 | 亚洲精品99 | 99久久久久久99国产精品免 | 无人区国产成人久久三区 | 日本一区二区三区在线观看 | 国产精品久久久久久久久久99 | 欧美日韩在线观看视频 | 欧美精品v国产精品v日韩精品 | 黑人巨大精品欧美一区二区一视频 | 中国美女撒尿txxxxx视频 | 午夜精品久久久久久久久久久久久 | 亚洲精品一区在线 | 国产精品成人一区二区三区 | 国产美女精品 | 日韩欧美国产精品一区 | 亚洲一区国产精品 | 国产精品视频在线播放 | 视频国产一区 | 极品久久| 三级黄视频在线观看 | 国产精品视频一二三 | 欧美一级片中文字幕 | 91精品国产91久久久久久吃药 |