PEA*_*EAR 4 c++ linux qt qt-creator
我正在尝试使用Qt Creator Code运行一个简单的HelloWorld程序:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
运行时发生错误
Cannot change to working directory '/home/myusername/build-myproject-Desktop-Debug': file or directory not found
Run Code Online (Sandbox Code Playgroud)
互联网上的许多教程告诉我禁用"在终端中运行",但我需要这个用于我的项目.我的工作目录是/ home/myusername/build-myproject-Desktop-Debug
有帮助吗?
小智 8
你在运行哪个操作系统?
我在Linux上遇到了同样的问题.我的解决方案是使用xterm并将Qtcreator中的默认终端设置为xterm(在菜单中:Tools,然后选项,然后是Environment,然后是Terminal,那里有"/ usr/bin/xterm -e")