Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. DESTDIR and "Failed to start program" error...
QtWS25 Last Chance

DESTDIR and "Failed to start program" error...

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    marksibly
    wrote on last edited by
    #1

    Hi,

    Just reinstalling everything after a HD crash and am trying to get Qt 5 Creator going.

    However I've found something a bit weird - when I try to build/run the app, I get this error:

    Failed to start program. Path or permissions wrong?

    Yet the program has been correctly created and I can run it from the desktop.

    My .pro file has this in it...

    TARGET = Ted
    DESTDIR = ../../bin

    ...and it appears that removing the DESTDIR fixes the 'start error', but of course the app ends up in the wrong dir.

    Any idea what's up? I'm on Windows 7 x64.

    Bye,
    Mark

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Options:
      All the dependencies for the program are not being found when it is in the bin directory and run in the environment provided by Creator.
      The path to the binary in the Creator Project Run settings is wrong: i.e. not pointing into the bin directory

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marksibly
        wrote on last edited by
        #3

        Argh, have tried all sorts of things with no luck. Pretty sure it's a qtcreator bug, as it sort of goes away if you change the target name, then comes back later...not sure how to describe it exactly though.

        But I've managed to dig up an old qtcreator-2.4.1 which has no problems with the project, so I'll use that for now.

        Thanks anyway.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved