QMake 和 .pro 文件

发布于 2024-10-17 11:17:33 字数 275 浏览 2 评论 0原文

我已经下载了一个软件包并正在尝试构建/安装它。该项目的 wiki 页面有一个看起来像这样的命令

qmake VAR=/path/to/something/ project.pro

,它表示该命令应该告诉 qmake 生成一个 make 文件。相反,我得到了

qmake: Nothing to be done for `project.pro'.

为什么 qmake 没有像预期那样生成 make 文件?

I've downloaded a package and am trying to build/install it. The project's wiki page has a command that looks like

qmake VAR=/path/to/something/ project.pro

It says that this command should tell qmake to generate a make file. Instead, I'm getting

qmake: Nothing to be done for `project.pro'.

Why is qmake not generating the make file like it's supposed to?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

掌心的温暖 2024-10-24 11:17:33

如果不知道有问题的项目或项目 (.pro) 文件的内容,则很难诊断。一种可能性是 qmake 已经运行,或者它要生成的文件包含在您的下载中。在这种情况下,该项目确实无计可施。

作为旁注,我可以建议下载“Qt Creator”并打开其中的项目文件吗? Qt Creator 倾向于使 Qt 开发和项目构建变得更加容易。

Without knowing the project in questions or the contents of the project (.pro) file, it is difficult to diagnose. One possibility is that qmake was already run, or that the files it is to generate are included with your download. In these circumstances, there really is nothing to be done for said project.

As a side note, may I recommend downloading "Qt Creator" and opening the project file in there? Qt Creator tends to make Qt development and project building a lot easier.

夏尔 2024-10-24 11:17:33

我刚刚回答了我自己的问题...显然有不止一个qmake。在我的系统上,我们使用qmake:分布式并行make,由Grid Engine调度。我发现/etc/alternatives/qmake这是QT qmake...

I just answered my own question... apparently there is more than one qmake. On my system, we're using a qmake: distributed parallel make, scheduling by Grid Engine. I found /etc/alternatives/qmake which is the QT qmake...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文