我构建了静态Qt 5.9.6,并用这个Qt版本构建了我的应用程序。但是我在 qml 中收到错误:
QtQml 2.3: QML module does not contain
informationn about components
contained in plugins
Qt.labs.platform 1.0: QML module not
found
QtQuick.Controls 2.2: is not installed
QtQuick.Controls.Styles 1.3: not found
例如,这里有QtQuick.Controls 1.4,或者Quick 2.9也在这里。
这是我的构建脚本:
./configure -static -prefix /usr/lib/qt5.9.6-amd64/qt5 -opensource -confirm-license -nomake tests -nomake examples -no-openssl -qt-doubleconversion -qt-libjpeg -qt-libpng -qt-pcre -qt-xcb -qt-harfbuzz -qt-zlib -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview
我遇到了同样的错误,当我进一步检查它时,我发现应该在配置中使用以下标志禁用 directX
-no-feature-d3d12