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

為什么 Qt 使用自己的 make 工具 qmake?

Why does Qt use its own make tool, qmake?(為什么 Qt 使用自己的 make 工具 qmake?)
本文介紹了為什么 Qt 使用自己的 make 工具 qmake?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我剛開始使用 Qt 并注意到它使用自己的 make 工具, qmake.

I just started using Qt and noticed that it uses its own make tool, qmake.

  • 為什么 Qt 使用自己的 make 工具?
  • 是否有什么特殊原因阻止它使用標準的 make 工具?
  • qmake 是否調用 GCC C++ 編譯器?
  • Why does Qt use its own make tool?
  • Is there something special that prevents it from using a standard make tool?
  • Does qmake call the GCC C++ compiler?

推薦答案

Qt 使用 qmake 透明地支持 Qt 的各種插件,包括moc,元對象編譯器"(提供信號和槽),uic,theui 編譯器"(從 .ui 設計器文件創建頭文件)、rcc,資源編譯器"(編譯資源).

Qt uses qmake to transparently support Qt's various addons, including "moc, the meta-object compiler" (which provides signals & slots), "uic, the ui compiler" (which creates header files from .ui designer files), "rcc, the resource compiler" (which compiles resources).

沒有什么可以阻止您使用您想要的任何構建系統.然而,還有很多工作要做.例如,您需要對包含具有信號或槽的類的每個頭文件運行moc".一般不推薦使用,尤其是剛開始使用 Qt 的人.

There's nothing to stop you using any build system you want. however, it's a lot more work. For example, you need to run "moc" over every header file that contains a class that has signals or slots. In general it's not recommended, especially for someone who's just starting to use Qt.

QMake 不直接調用 g++/gcc.相反,qmake 在您當前的平臺上創建本機 make 文件.在linux下它創建標準的GNU make文件,在windows下它可以生成visual studio make文件,在Mac OS X下它可以生成XCode工程文件.然后調用您的本機構建系統(GNU make、MS NMake、xcodebuild 或其他),它將調用您的本機編譯器(g++/gcc 或其他).

QMake does not call g++/gcc directly. Instead, qmake creates native make files on your current platform. Under linux it creates standard GNU make files, under windows it can generate visual studio make files, under Mac OS X it can generate XCode project files. You then invoke your native build system (either GNU make, or MS NMake, or xcodebuild or whatever), which will call your native compiler (g++/gcc or whatever).

這篇關于為什么 Qt 使用自己的 make 工具 qmake?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 ()?環形?)
主站蜘蛛池模板: 搞黄视频免费看 | 亚洲黄色在线免费观看 | 久久成人国产精品 | 日韩久久久久久 | 国产精品国产成人国产三级 | 永久av | 日本粉嫩一区二区三区视频 | 国产成人在线一区二区 | 中文字幕欧美在线观看 | 精品99爱视频在线观看 | 麻豆一区二区三区精品视频 | 国产精品久久久久久久久免费桃花 | 亚洲美女视频 | 亚洲一区二区电影网 | 9191在线播放 | 人人精品 | 精品视频一区二区三区在线观看 | 国产精品日韩高清伦字幕搜索 | 日韩av一区二区在线观看 | 黑人性hd| 精品一区二区三区在线观看 | 尤物视频在线免费观看 | 国产视频一视频二 | 中文在线a在线 | 中文字幕一区二区三区精彩视频 | 一级视频在线免费观看 | 欧美国产日韩精品 | 欧美一区二区三区在线观看 | 久久综合久色欧美综合狠狠 | 97综合在线 | 久久www免费视频 | 国产免费a视频 | 一本一道久久a久久精品蜜桃 | 97精品国产97久久久久久免费 | .国产精品成人自产拍在线观看6 | 久草成人网 | 涩涩操| 色999视频 | 亚洲欧美另类在线 | 嫩草视频网 | 成人久久久久 |