Installed Lubuntu 20.04.02, installed Qt Creator 4.14.0 based on Qt 5.15.2. All settings are fine, compilers/assemblers/debuggers are configured. I am creating a project with terminal support. In system settings, x-terminal-emulator is installed with the -e parameter. Lubuntu itself has the qterminal terminal, the only one. I’m trying to put together a trivial project with the ability to enter data - the build is successful:
#include <iostream>
using namespace std;
int main()
{
int a = 0;
cout << "Enter value: " << endl;
cin >> a;
cout << "a = " << a << endl;
return 0;
}
I am trying to run a project - I get an error in the application output:
Cannot change to working directory «/home/user/Programming/build-test-Desktop_Qt_5_15_2_GCC_64bit-Debug»: file or directory not found
As I understand it, the problem is not new and I want to solve it without resorting to installing additional terminal emulators … I ask for help from the knowledgeable.
P.S. In other IDE’s, everything is compiled and run in an embedded terminal.
I launch Qt Creator through the terminal and get the output of messages to the terminal when I run my program:
user@vb:~$ qtcreator
Properties constructor called
TRANSLATIONS_DIR: Loading translation file "qterminal_ru_RU.qm" from dir /usr/share/qterminal/translations
load success: true
Icon theme "elementary" not found.
QDir::exists: Empty or null file name
QDir::exists: Empty or null file name
Canot open file "/home/user/.config/qterminal.org/qterminal_bookmarks.xml"
Trying to load translation file from dir "/usr/share/Lubuntu"
Trying to load translation file from dir "/usr/local/share"
Trying to load translation file from dir "/usr/share"
Trying to load translation file from dir "/var/lib/snapd/desktop"
Trying to load translation file from dir "/usr/share/qtermwidget5/translations"
default KB_LAYOUT_DIR: "/usr/share/qtermwidget5/kb-layouts"
loadAllColorSchemes
Shell program: "/opt/Qt/Tools/QtCreator/bin/../libexec/qtcreator/qtcreator_process_stub run /tmp/QtCreator.ZPtjNF/stub-socket Для закрытия данного окна нажмите <ВВОД>... /home/user/Programming/build-test-Desktop_Qt_5_15_2_GCC_64bit-Debug /tmp/QtCreator.kcxFmh 1130 /home/user/Programming/build-test-Desktop_Qt_5_15_2_GCC_64bit-Debug/test"
("/opt/Qt/Tools/QtCreator/bin/../libexec/qtcreator/qtcreator_process_stub", "run", "/tmp/QtCreator.ZPtjNF/stub-socket", "Для", "закрытия", "данного", "окна", "нажмите", "<ВВОД>...", "/home/user/Programming/build-test-Desktop_Qt_5_15_2_GCC_64bit-Debug", "/tmp/QtCreator.kcxFmh", "1130", "/home/user/Programming/build-test-Desktop_Qt_5_15_2_GCC_64bit-Debug/test")
Invalid run control state transition from "RunControlState::Starting" to "RunControlState::Stopped"
Properties destructor called
Yes, and as they pointed out on the forum, there is still an open bug in Qt for this issue, which affects terminals beyond just QTerminal. That said, the issue is on their end and you would need to deal with them to resolve it. Maybe comment on the bug or open a new one rather than using a forum, as you’re more likely to get to actual developers that way.