简体   繁体   English

Qt创建者中的通用c ++项目 - 没有制定目标的规则

[英]Generic c++ project in Qt creator - No rule to make target

I am trying to import a generic project into Qt creator by following this tutorial . 我正在尝试按照本教程将通用项目导入Qt创建者。 The project has its Makefile which builds multiple separate executables. 该项目的Makefile可以构建多个独立的可执行文件。

Running make all in the root directory of the project builds everything correctly. 在项目的根目录中运行make all可以正确构建所有内容。

The project has been imported into Qt creator and the sources show no errors regarding includes. 该项目已导入Qt创建者,来源显示没有关于包含的错误。 When I press build, i get the error No rule to make target all'. 当我按下构建时,我得到错误No rule to make target全部'。 Stop.` As if the Makefile is non existent. 停止。好像Makefile不存在一样。

Where is Qt creator looking for the Makefile? Qt创建者在哪里寻找Makefile?

In my case the problem was with the custom build directory in the Build Settings. 在我的情况下,问题出在Build Settings中的自定义构建目录。 Qt creator was searching for the Makefile in the build directory. Qt创建者正在构建目录中搜索Makefile。

When using Qt creatror for Qt projects, I've usually set the build directory to something custom but this isn't sensible here :) 当Qt creatror用于Qt项目时,我通常将构建目录设置为自定义但这在这里是不明智的:)

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

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