C++ 测试项目中Makefile中的Qtcreator错误
我第一次尝试运行qtcreator 我使用以下基本代码创建了一个空Qt项目:C++ 测试项目中Makefile中的Qtcreator错误,c++,qt,makefile,qt-creator,C++,Qt,Makefile,Qt Creator,我第一次尝试运行qtcreator 我使用以下基本代码创建了一个空Qt项目: #include <QApplication> int main(int argc, char *argv[]) { QApplication app(argc, argv); return app.exec(); } 第106条是: ../%{JS:\ Util.asciify(build-test-Desktop-Debug)}/Makefile: ../test/test.pro
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
return app.exec();
}
第106条是:
../%{JS:\ Util.asciify(build-test-Desktop-Debug)}/Makefile: ../test/test.pro /usr/share/qt4/mkspecs/linux-g++-64/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \
Qtcreator已在我的测试项目旁边创建了一个名为:%%{JS:Util.ascifibuild test Desktop Debug}的目录
如何解决此错误?我将project/general/build目录更改为与项目路径相同的目录,它在我的qt Creator5.2、macOs 10.15.4中工作。这是由qmake限制引起的间接错误。创建新项目时,向导默认将生成目录设置为home/user/project/build,这是不受支持的。将生成目录设置为home/user/build可以解决QtCreator 5.2上的这个问题。您的生成文件是什么样子的?它是默认的生成文件:
../%{JS:\ Util.asciify(build-test-Desktop-Debug)}/Makefile: ../test/test.pro /usr/share/qt4/mkspecs/linux-g++-64/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \