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

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

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.4k 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.
  • P Offline
    P Offline
    Paawan
    wrote on last edited by
    #1

    Hi All,

    I am getting this message when I try to run my application. Please help.

    I got the code from a book. Added "QT += core gui widgets" to the pro file.

    Included some header files. Then ran qmake and when it builds fine.

    But wen I try to run I get the above message.

    Regards

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Have you used search before posting?
      Does any of those help?
      http://qt-project.org/forums/viewthread/14785
      http://qt-project.org/forums/viewthread/27482

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Paawan
        wrote on last edited by
        #3

        I tried the second one but could not follow what it was saying.

        How do I change the run configuration? Please advice.

        F:\UNISA SRC\src\modelview\build-multiview-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug\debug

        I find a file with no name but type "Application" in this folder.

        Regards

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can change current run configuration (if you have more than one) in the lower left corner of the creator, just above the green "play" buttons (or just ctrl+t to cycle through). To setup new or remove configurations go to the "Projects" tab as described "here":http://qt-project.org/doc/qtcreator-3.0/creator-run-settings.html

          Anyway, before you do start fiddling with these options just try this:

          • close creator
          • remove directories: F:\UNISA SRC\src\modelview\build-multiview-Desktop_Qt_5_0_2_MSVC2012_64bit-[Release/Debug]
          • remove <whatever>.pro.user file (not the <whatever>.pro file!)
          • reopen the project in creator and recreate configuration when prompted
          1 Reply Last reply
          0
          • P Offline
            P Offline
            Paawan
            wrote on last edited by
            #5

            Tried everything still no luck.

            The run settings seems to be fine.

            Working directory

            F:\UNISA SRC\src\modelview\build-multiview-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug\debug

            1 Reply Last reply
            0
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Is there an executable in that directory after build? If not there might be something wrong in your .pro file. Can you show it?

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Paawan
                wrote on last edited by
                #7

                HI Chris,

                Thanks for the help.

                I did the dumb way. Made a new project and copied the code and its working now.

                Thank you once again.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sedonk
                  wrote on last edited by
                  #8

                  Don't use "setup" or "install" in executable names under Windows.

                  example: MyApp_Setup.exe needs admin permission.

                  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