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

QtCreator for MacOS, debug/release application shadow build path



  • Hi,

    I am using the MacPorts version of Qt5, 5.14.2.
    Here I have an annoying problem when debugging and/or starting the built application from QtCreator, version 4.12.1.

    I am using shadow build, and path is normally set to
    build-APPNAME-Desktop_Qt_5_14_2_from_MacPorts_x86_64-Debug by the config.
    Application output says:
    15:50:00: Failed to start program. Path or permissions wrong?
    ...
    15:50:00: The process failed to start. Either the invoked program ".../source-code/build-APPNAME-Desktop_Qt_5_14_2_from_MacPorts_x86_64-Debug/debug/APPNAME.app/Contents/MacOS/APPNAME" is missing, or you may have insufficient permissions to invoke the program.

    The solution is to change the shadow build path to
    build-APPNAME-Desktop_Qt_5_14_2_from_MacPorts_x86_64-Debug/debug in the config settings. The same for release.

    After build, the application is placed in build-APPNAME-Desktop_Qt_5_14_2_from_MacPorts_x86_64-Debug/debug/debug and release/release.
    Then it is possible to debug and/or start the application from QtCreator.

    I would assume this is not the intended way to do things.
    Is this fixed in the latest QtCreator (not in MacPorts yet)?

    BN


Log in to reply