首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >qml在使用静态构建时显示错误。

qml在使用静态构建时显示错误。
EN

Stack Overflow用户
提问于 2019-07-10 22:27:52
回答 1查看 477关注 0票数 0

我构建了静态QT5.9.6,并使用这个Qt版本构建了我的应用程序。但我在qml中发现了错误:

代码语言:javascript
复制
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,或者Quick2.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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-11 01:40:40

我也有同样的错误,当我进一步检查它时,我发现应该使用配置中的以下标志禁用directX

代码语言:javascript
复制
-no-feature-d3d12
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56979422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档