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. [SOLVED] Error: Failed to start program. Path or permissions wrong?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Error: Failed to start program. Path or permissions wrong?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 4.1k 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.
  • Q Offline
    Q Offline
    qwetee
    wrote on last edited by
    #1

    Getting the following error:

    Starting /opt/Qt5.0.2/5.0.2/gcc/bin/serialbutton...
    Failed to start program. Path or permissions wrong?
    /opt/Qt5.0.2/5.0.2/gcc/bin/serialbutton exited with code -1

    The compiler output shows:
    16:01:34: Running steps for project serialbutton...
    16:01:34: Configuration unchanged, skipping qmake step.
    16:01:34: Starting: "/usr/bin/make"
    make: Nothing to be done for `first'.
    16:01:34: The process "/usr/bin/make" exited normally.
    16:01:34: Elapsed time: 00:00.

    I've tried the solutions suggested in the earlier discussions.
    Still, haven't been able to get rid of this error.

    Please help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you sure that your application should go in "/opt/Qt5.0.2/5.0.2/gcc/bin/" ?

      That doesn't look like a normal destination folder when building an application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qwetee
        wrote on last edited by
        #3

        In the RUN configuration, the path of the Executable file is fixed to “/opt/Qt5.0.2/5.0.2/gcc/bin/” (I am not able to change it).

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What does it show in the build panel under Build Directory ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qwetee
            wrote on last edited by
            #5

            It shows:
            Build Directory: /opt/Qt5.0.2/5.0.2/gcc/bin

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qwetee
              wrote on last edited by
              #6

              I copied the project to a different path as you suggested and now it's working fine.
              However, why it couldn't compile in the previous path is mysterious.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                I would guess no write rights

                Anyway, you should not use such path for project building. Have your code somewhere in your home directory and use the shadow build option from QtCreator, this way you'll be safe.

                Sine it's all working now, please update the thread's title to solved so other forum users may know a solution has been found :)

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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