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 permissions wrong?
Forum Updated to NodeBB v4.3 + New Features

Failed to start program. Path or permissions wrong?

Scheduled Pinned Locked Moved General and Desktop
45 Posts 8 Posters 23.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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #4

    Check console output when doing a full rebuild - maybe linker has problems in writing the output file?

    (Z(:^

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clouca
      wrote on last edited by
      #5

      Thanks for your fast answer.. Where can i find console ?

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #6

        Hit Alt-4 in Qt Creator, or click on "Compile Output" button at the bottom of Qt Creator's window.

        (Z(:^

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clouca
          wrote on last edited by
          #7

          Yes i get an error there..
          make[1]: Entering directory ....Desktop_Qt_5_0_2_GCC_64bit-Debug' make[1]: Nothing to be done for first'.
          make[1]: Leaving directory `...Desktop_Qt_5_0_2_GCC_64bit-Debug'

          i hided the full path for obvious reasons.. :)

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #8

            That looks like shadow building in works.

            "Nothing to be done for 'first'" is standard make message. It's not an error as such - usually it means that the project is already built and there is no need to compile again.

            (Z(:^

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clouca
              wrote on last edited by
              #9

              heh that's the problem, the project did not create and executable... in the folder there are only 3 files Makefile Makefile.debug and Makefile.release..

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #10

                Delete those makefiles.

                But we're running in circles here, I'm afraid. I'm sure I've run into a similar problem before, but I don't remember what was the solution. We're probably missing something obvious.

                (Z(:^

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  clouca
                  wrote on last edited by
                  #11

                  Yes i know that we are making circles. I will try now removing these make files.. please remember :)

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    clouca
                    wrote on last edited by
                    #12

                    i made a backup of whole project and remove shadow build and works. but i don't think that is a solution.
                    it is a semisolution i think..;)

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clouca
                      wrote on last edited by
                      #13

                      it was not a solution finally. the project always executes the old executable file. the problem is that Qt builds successfull but the executable file is not created...

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

                        Hi,
                        in this case, are you sure your project is setup correctly ? Could you share the pro file ?

                        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
                        • K Offline
                          K Offline
                          koahnig
                          wrote on last edited by
                          #15

                          This may be similar problems as I had lately. However, I am on Windows 7 with creator 2.6.
                          I have a rather large project based on subdirs with some libs shared by a couple of applications.
                          I noted that changing the source with some debug statements and in the debugger there was no influence on what I had changed. As I found out later Qt creator compiled and linked always the release version only for this particular application. I did the whole bucket of things rebuild, clean and build (as separate steps) also at least some partly "Run qmake" until I found out what happened. In my case it was cured by "Run qmake" for the whole subdirs project. Suddenly the debug build was created.
                          It sounds a bit weird, but I assume Qt creator somehow looses track when switching between release and debug modes. IMO not really a logical behaviour, but I do not know what is actually happening in qt creator.

                          Especially if you have a complex project, try "Run qmake".

                          Vote the answer(s) that helped you to solve your issue(s)

                          1 Reply Last reply
                          0
                          • C Offline
                            C Offline
                            clouca
                            wrote on last edited by
                            #16

                            Yes it's very weird.. I am thinking to switch it in windows for better luck. I run linux on virtual machine, does this make any difference ?

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              koahnig
                              wrote on last edited by
                              #17

                              [quote author="clouca" date="1367858735"]Yes it's very weird.. I am thinking to switch it in windows for better luck. I run linux on virtual machine, does this make any difference ?[/quote]
                              Do not know. I have not used Qt creator lately on a virtual machine.

                              [quote author="SGaist" date="1367847901"]Hi,
                              in this case, are you sure your project is setup correctly ? Could you share the pro file ?[/quote]
                              at clouca: that is an option. Maybe someone sees an issue.

                              Do you have a complex project?

                              Vote the answer(s) that helped you to solve your issue(s)

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                clouca
                                wrote on last edited by
                                #18

                                Yes it is a project with 5 subfolders..

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

                                  Since it's a subfolder project, how do you setup your DESTDIR variables ?

                                  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
                                  • C Offline
                                    C Offline
                                    clouca
                                    wrote on last edited by
                                    #20

                                    Thanks all of you for your answers. SGaist I will check tomorrow and tell you.
                                    Thanks

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

                                      Hi
                                      I had this problem in old versions of QtCreator. As far as I remember it's a bug, but is was supposed to be solved in latest version, I believe. Do a google search, you will find similar threads some wich are alreay solved.

                                      1 Reply Last reply
                                      0
                                      • C Offline
                                        C Offline
                                        clouca
                                        wrote on last edited by
                                        #22

                                        john_god john_god i didn't found something simillar
                                        my project was created in qt 4.7 32(bit) and i am now running Qt 5.0 (64bit) if that can help..
                                        thanks

                                        1 Reply Last reply
                                        0
                                        • K Offline
                                          K Offline
                                          koahnig
                                          wrote on last edited by
                                          #23

                                          [quote author="clouca" date="1367907957"]john_god john_god i didn't found something simillar
                                          my project was created in qt 4.7 32(bit) and i am now running Qt 5.0 (64bit) if that can help..
                                          thanks[/quote]
                                          Those are the versions of Qt lib. Qt creator has currently version 2.7. A Qt creator installed with Qt 4.7 is fairly old.
                                          How did you install Qt 5? Which exact Qt5 version are you using? Did you replace also the Qt creator at that time?

                                          Vote the answer(s) that helped you to solve your issue(s)

                                          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