简体   繁体   English

Project ERROR:QT中的未知模块:qml quick

[英]Project ERROR: Unknown module(s) in QT: qml quick

I've got problems trying to cross-compile an app for windows on Linux Mint x64 following this. 在此之后我尝试在Linux Mint x64上为Windows交叉编译应用程序时遇到了问题。 (I also got Qt5.4.2 installed.) (我也安装了Qt5.4.2。)

Building Qt 5 on Linux, for Windows 在Linux上为Windows构建Qt 5

The error shows up when running [mxe root]/usr/bin/i686-w64-mingw32.static-qmake-qt5 . 运行[mxe root] /usr/bin/i686-w64-mingw32.static-qmake-qt5时出现错误。 Of course I changed [mxe root] to fit the mxe directory. 当然我改变了[mxe root]以适应mxe目录。

Any ideas? 有任何想法吗?

My question is pretty similar to this one. 我的问题非常类似于这个问题。 Project ERROR: Unknown module(s) in QT: webkitwidgets 项目错误:QT中的未知模块:webkitwidgets

It'd be nice not to mark it as duplicate, as was done with that question, because, like @Petr already mentioned in the comments there, the two questions are not related. 如同在那个问题中所做的那样,将它标记为重复是很好的,因为就像在那里的评论中已经提到的@Petr一样,这两个问题没有关联。

I've been having the same issue, following the same tuto 我一直有同样的问题,跟随同样的tuto

I solve it by building qt5 instead of qtbase 我通过构建qt5而不是qtbase来解决它

mxefolder$ make qt5

instead of 代替

mxefolder$ make qtbase

it contains more modules 它包含更多模块

If you build the Qt from the sources and no Qt5Qml.dll file in bin\\ then install the "qtdeclarative" module. 如果您从源构建Qt并且bin \\中没有Qt5Qml.dll文件,则安装“qtdeclarative”模块。 Enter to the (your_qt_src_dir)/qtdeclarative and do following (change names to your environment names) 输入(your_qt_src_dir)/ qtdeclarative并执行以下操作(将名称更改为您的环境名称)

$ C:\\Qt\\Qt5.7.0n\\bin\\qmake.exe -r qtdeclarative.pro $ C:\\ Qt \\ Qt5.7.0n \\ bin \\ qmake.exe -r qtdeclarative.pro

$ C:\\mingw32-make.exe $ C:\\ mingw32-make.exe

$ C:\\mingw32-make.exe install $ C:\\ mingw32-make.exe安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM