Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Linux: Since I change a setting I get this error when I try to build: "Cannot change to working directory"



  • Hey guys,

    I had a full working QT Creator but I change some settings and since that I cannot build my projects anymore.
    I don´t remember what I changed because I didnt realized that when I hover over some settings and scroll with my mouse that I change some selectables. So, I must have change something but I dont know what.

    Now I get this error:

    21:54:47: Starting /home/masatar/Projekte/DesktopApps/build-mMusicPlayer-Desktop_Qt_6_2_2_GCC_64bit-Debug/mMusicPlayer...
    21:54:47: The process failed to start. Either the invoked program "/home/masatar/Projekte/DesktopApps/build-mMusicPlayer-Desktop_Qt_6_2_2_GCC_64bit-Debug/mMusicPlayer" is missing, or you may have insufficient permissions to invoke the program.
    21:54:47: Cannot change to working directory "/home/masatar/Projekte/DesktopApps/build-mMusicPlayer-Desktop_Qt_6_2_2_GCC_64bit-Debug": Datei oder Verzeichnis nicht gefunden
    

    I already deleted the ~/.config/QtProject/ or the pro.user file in order to reconfig my project but nothing worked.
    It seems that I delete some setting because the error looks like its trying to invoke a folder instead of a binary.

    Here some background information:
    I use QT Widget and qmake
    OS: Kali GNU/Linux Rolling (2021.4)
    Qt Creator 6.0.1
    Based on Qt 6.2.2 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), 64 bit)
    Built on Dec 15 2021 08:27:24
    From revision ad505aad59



  • I found my mistake: If I uncheck the checkbox "Run in terminal" in the Run Settings of the Kit, then its working again.
    6cb0897b-9ef6-4015-9730-96998563233e-grafik.png


Log in to reply