Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    2
    3
    1066
    Loading More Posts
    • 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
      marksibly last edited by

      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 Reply Quote 0
      • C
        ChrisW67 last edited by

        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 Reply Quote 0
        • M
          marksibly last edited by

          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 Reply Quote 0
          • First post
            Last post