我构建了静态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
答案 0 :(得分:1)
我有相同的错误,当我进一步检查它时,我发现应该使用config中的以下标志来禁用directX
-no-feature-d3d12