导入现有的 QT C++在 Eclipse 中具有自己的 Makefile 的项目
我想在 Eclipse 中导入一个带有自己的 Makefile 的 C++ GUI 项目。 在命令提示符下,一切正常。但是当我导入项目时,它给出了一个错误
make all
make: *** No rule to make target `all'. Stop.
如果您能告诉我哪里出错了,我会很高兴。
谢谢 基兰
I would like to import an C++ GUI Project with its own Makefile in Eclipse.
In the command prompt, everything works fine. But when I import the project, it gives an error
make all
make: *** No rule to make target `all'. Stop.
Would be glad, if you give me an idea where I am going wrong.
Thanks
Kiran
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您的 Makefile 具有“all”目标。
典型的所有目标规则可能如下所示:
如果您还没有清洁规则,您可能还想包含一个清洁规则。
Make sure that your Makefile has an "all" target.
A typical all target rule could look like
You'll probably also want to include a rule for clean if you don't already have one.
你是如何导入项目的?我已经将 Eclipse 与现有 makefile 项目一起使用了几次,方法是创建一个新的空 makefile 项目并覆盖该项目的位置以引用 Makefile 所在的位置。它警告该目录已存在,但工作正常。
How did you import the project? I have used Eclipse with existing makefile projects a couple of times by creating a new empty makefile project and overriding the location of the project to refer to where the Makefile is present. It warns that the directory already exists, but it works fine.