简体   繁体   English

如何运行qmake安装圣堂武士?

[英]How do I run qmake to install templar?

This is a borderline question but it's a bit programmy so I thought I'd try here instead of Super User. 这是一个边缘性问题,但这有点编程性,所以我想我会在这里尝试而不是“超级用户”。 I am trying to install templar , so I downloaded the source and attempted to run qmake to install it. 我正在尝试安装templar ,因此我下载了源代码并尝试运行qmake进行安装。 When I do, I get this message: 当我这样做时,会收到以下消息:

Project ERROR: Unknown module(s) in Qt: xmlpatterns 项目错误:Qt:xmlpatterns中的未知模块

I don't have particular interest in learning about the internals of Qt, other than what is needed to compile templar. 除了编译圣堂武士所需要的东西之外,我对学习Qt的内部没有特别的兴趣。 Is this message telling me that the module can't be found, or that Qt doesn't know what to do with it? 此消息是否告诉我找不到模块,或者Qt不知道如何处理该模块?

And how do I remedy this error? 我该如何纠正该错误?

I had the same error while building an other project using Ubuntu. 使用Ubuntu构建另一个项目时,我遇到了相同的错误。

This worked for me: 这对我有用:

sudo apt-get install libqt5xmlpatterns5-dev

Your Qt distribution wasn't build with the xmlpatterns module. 您的Qt发行版不是使用xmlpatterns模块构建的。 You need to download a new distribution from the website. 您需要从网站下载新发行版 In the worst case you will have to compile it yourself but it isn't quite hard. 在最坏的情况下,您将不得不自己编译它,但这并不难。

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

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