[英]Qt5.7 build and -no-feature- option not existing
我想通過禁用此地址http://doc.qt.io/qt-5.7/configure-options.html上的文檔不需要的一些功能來簡化Qt
就像聲明的那樣
-feature-和-no-feature-選項分別包括和排除特定功能,這些功能在文件qtbase / src / corelib / global / qfeatures.txt中列出。
盡管在嘗試使用它時,似乎無法識別該選項
未知選項-無功能可訪問性
我嘗試了其他功能,但似乎未在Qt5.7中實現
同樣,configure -h也沒有提及此選項。
是否在最新版本的Qt上刪除了此文檔,並且文檔未更新,或者此選項名稱已更改。 Qt5.7仍然有禁用功能的方法嗎?
它不是配置中列出的唯一選項,但實際上沒有。 特別是對於可訪問性,您應該配置:
-no-accessibility
但請注意,有些Qt模塊取決於可訪問性,如果在配置中刪除它,則不會構建。 例如QtQuick.Controls
和QtQuick.Dialogs
。 可能還有更多...
以下是一些我通過刪除不需要的功能來簡化構建的選項。 僅排除您實際需要的東西:
-no-compile-examples -no-icu -opengl desktop -skip qtscript -nomake examples -nomake tests -skip qtwebengine -skip qtvirtualkeyboard -skip qtcharts -skip qtwebchannel -skip qtpurchasing -skip qtwayland -skip qtwebview -no-qml-debug
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.