PEAR PEAR - 1 month ago 17
Linux Question

QtCreator returns error "Cannot change to working directory"

I'm trying to running a simple HelloWorld program with Qt Creator

#include <iostream>

using namespace std;

int main()
cout << "Hello World!" << endl;
return 0;

When running occurs the error

Cannot change to working directory '/home/myusername/build-myproject-Desktop-Debug': file or directory not found

Many tutorials in the internet tell me to disable "Run in terminal", but I need this for my project.
My working directory is /home/myusername/build-myproject-Desktop-Debug

Any help?

Answer Source

Which OS are you running?

I'm on Linux and had the same problem. My solution was to use xterm and set the default Terminal in Qtcreator to xterm (In the menu: Tools, then Options, then Environment, then Terminal, there "/usr/bin/xterm -e")