dajaffe
dajaffe

Reputation: 855

Qt SUBDIRS project not finding executable to debug

I've decided to move all my projects (multiple DLLs and an executable) into a SUBDIRS project to make building easier. While this has let me build everything into a single folder, I can no longer debug from Qt Creator.

My folder structure is as follows:

Solution.pro
    \MyDLL1
    \MyDLL2
    \MyDLL3
    \MyDLL4
    \MyExecutable
    \OUT

I have all DLLs and my exe building into OUT (via DESTDIR in each project's .pro) - same level as the subdirs .pro. When attempting to debug, I get the following:

No executable specified.
Debugging has finished

I've tried modifying the project Run settings to directly point to \OUT\MyExecutable.exe, I've tried adding a DESTDIR to solution.pro pointing to OUT, but nothing so far as worked.

Is my setup completely wrong? Or am I missing one small piece to let Qt run the .exe to debug?

Edit: I tried filling out my Run settings again: here is my Run setup via the Projects options, and the resulting message. The exe never actually gets launched. I am, however, able to Run the project with this setup, just not debug. I have verified the exe is not being launched by putting a breakpoint at the start of int main() within main.cpp in the executable's project. enter image description here,

Debugging starts
Debugging has finished

Upvotes: 1

Views: 636

Answers (1)

dajaffe
dajaffe

Reputation: 855

It appears updating Qt (both the Creator and Compiler) has resolved this issue.

Upvotes: 1

Related Questions