QtCreator 返回错误"Cannot change to working directory"
QtCreator returns error "Cannot change to working directory"
我正试图运行一个简单的HelloWorld程序与Qt Creator代码:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
运行时出现错误
Cannot change to working directory '/home/myusername/build-myproject-Desktop-Debug': file or directory not found
许多教程在互联网上告诉我禁用"运行在终端",但我需要这个为我的项目。我的工作目录是/home/myusername/build-myproject- desktop - debug
帮忙吗?
您使用的是哪个操作系统?
我在Linux上,有同样的问题。我的解决方案是使用xterm,并将Qtcreator中的默认终端设置为xterm(在菜单中:工具,然后是选项,然后是环境,然后是终端,那里有"/usr/bin/xterm -e")
您可以安装终结者终端(sudo apt-get install Terminator)并将其用作Qt Creator终端:
工具->选项->环境->系统->终端- - ->"/usr/bin/终结者- x"
相关文章:
- "error: no matching function for call to"构造函数错误
- 调用专用模板时出错"no matching function for call to [...]"
- C++ Singleton - Prevent ::instance() to variable
- 我的项目不会像"undefined reference to `grpc::g_core_codegen_interface'"那样使用未定义的引用错误进行编译
- Visual Studio Code "undefined reference to `WinMain@16'"
- 使用 GCC 卸载的 OpenMP 卸载失败,并出现"Ptx assembly aborted due to errors"
- 如何解决"invalid conversion from 'char' to 'const char*'"
- 使用 MATLAB 编码器生成C++代码:编译错误"undefined reference to `rgb2gray_tbb_real64'"
- 尝试链接我的着色器时,我收到错误代码"error c5145 must write to gl_position"
- Python str to C++ to Python str
- 为什么创建友元类的实例会导致"undefined reference to"错误?
- System.InvalidCastException - SQL to C++ - safe_cast<float>
- 使用 cmake 的 Linux 终端上的"Conversion to non-scalar type is requested"错误
- "no matching function for call to 'Vector::Vector'"错误
- vector<vector<double>> to mxArray using memcpy
- Tensorflow c++ api undefined reference to 'tflite::D efaultErrorReporter()'
- 当覆盖存在时调用基本虚拟"binded to object"函数
- QtCreator 返回错误"Cannot change to working directory"
- CMake Copy File to Current Working Directory Linux
- reinterpret_cast - double to char[] to double not working -