compiled executable not found



  • Hi,

    I have two build configurations: debug and release. I disabled and reenabled shadow build and configured the build directories to be <project root>\debug and <project root>\release.
    Now the compiled executable moved from <project root>\debug\debug to <project root>\debug but Qt Creator still looks into the <project root>\debug\debug directory for executable. In the Projects -> Run settings I cannot change where the executable is located.

    • How to tell the Qt Creator, where the exe is located?
    • Do I need the shadow build for debug/release configurations only? I need to switch between debug and release.
    • How the Qt Creator remembers the project settings, for example the kit? If I would like to start just with my .pro file from scratch, where can I delete the project settings?

    Thanks for answers.


  • Moderators

    Hi,

    @Radim said:

    • How to tell the Qt Creator, where the exe is located?

    Click Projects (on the left) -> Run -> Run Configuration

    • Do I need the shadow build for debug/release configurations only? I need to switch between debug and release.

    I'm not sure what you mean.

    • How the Qt Creator remembers the project settings, for example the kit? If I would like to start just with my .pro file from scratch, where can I delete the project settings?

    Qt Creator generates a *.pro.user file in the same folder as your *.pro file. Delete the *.pro.user file to erase your settings.



  • @JKSH Thanks.

    Click Projects (on the left) -> Run -> Run Configuration

    I can not edit the executable here, it is not editable field.

    I'm not sure what you mean.

    I just want to know, if there is any disadvantage, if I disable the shadow build and switch between debug and release. For example if I need always to run qmake.

    Qt Creator generates a *.pro.user file in the same folder as your *.pro file. Delete the *.pro.user file to erase your settings.

    Interestingly if I deleted the .pro.user, the Qt Creator still reopened the project with the same Kit. So I assume it must remember the settings somewhere else.


  • Lifetime Qt Champion

    Hi,

    If you disable shadow build, you'll build in your sources. Better avoid that.

    When switching from debug to release, Qt Creator handles the run of qmake for you.

    Did you delete the .pro.user file while Qt Creator was still running ? If so, it was written again when quitting Qt Creator.


  • Moderators

    @Radim said:

    I can not edit the executable here, it is not editable field.

    Click "Add" -> "Custom Executable".


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.