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. Failed to start program. Path or permission wrong?
Forum Updated to NodeBB v4.3 + New Features

Failed to start program. Path or permission wrong?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.9k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    john_god
    wrote on last edited by
    #1

    I installed latest Qt5 libraries, for linux 32bits, using the provided QtCreator 2.6.1. When creating new projects, it works fine, but fails with this error for my existint project

    @Starting /home/joao/Qt4examples/mathgraphica-build-Desktop_Qt_5_0_0_gcc-Debug/mathgraphica...
    Failed to start program. Path or permissions wrong?
    /home/joao/Qt4examples/mathgraphica-build-Desktop_Qt_5_0_0_gcc-Debug/mathgraphica exited with code -1 @

    Only a Makefile is created inside of directory mathgraphica-build-Desktop_Qt_5_0_0_gcc-Debug. I tried deleting the .pro.user file, tried starting QtCreator as root, I get the same error. Qt version and kit look like they are configured ok.
    My Qt version 4.8.1 works ok, but I just can't get Qt5 to work. I search in this forum for this error and every thing I tried has failed.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      First: Please do not run creator as root, it is most likely not save to do that (root should not run anything that loads plugins IMHO;) and it should never be necessary anyway.

      Does your project build ok? Usually this happens when the build stopped at some point and never created the results it was supposed to generate. Is the file you want to run anywhere (maybe in the source location)? Some projects ship with faulty build systems and need shadow building to be disabled.

      1 Reply Last reply
      1
      • J Offline
        J Offline
        john_god
        wrote on last edited by
        #3

        Hi Tobias, thanks for your reply

        bq. First: Please do not run creator as root, it is most likely not save to do that (root should not run anything that loads plugins IMHO;) and it should never be necessary anyway.

        Ok, I won't :) , I saw that when googling and tought I give it a try.

        bq. Does your project build ok?

        Not really, I'm using shadow build, the diretory that is created only has one file called "Makefile", so no executable file is created. Right now I'm testing it in another PC with with Qt5 and Qt4.8.4 libraries. Both are configured in QtCreator shipped with Qt5. With Qt4.8.4 toolchain everything runs ok, the error only hapens with Qt5 toolkit. Qt5 also works ok with new projects created with QtCreator wizard.

        So I'm thinkin if the error is related with migrating the project from Qt4 to Qt5, but if that was the case, I should get a more explicit error than "Failed to start program. Path or permissions wrong?"

        bq. Some projects ship with faulty build systems and need shadow building to be disabled.

        Well the project doenst have a buid system only the pro .file, and I am using shadow buid.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          If this is related to the migration, then you should get better errors when building your code.

          Once you try to run it and it is not there since it was not build then all creator can do at that point in time is to tell you that there is nothing there for it to run.

          Try rebuilding your code:-)

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Thanatos
            wrote on last edited by
            #5

            I have the same issue. This message "Failed to start program. Path or permissions wrong?" shows up because qtcreator can't find Qt5Widgetsd.dll... but why? because i have it in /qtbase/libs/

            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