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. Issue starting brand new projects

Issue starting brand new projects

Scheduled Pinned Locked Moved Unsolved General and Desktop
26 Posts 4 Posters 9.9k Views 3 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.
  • mrjjM mrjj

    @koahnig
    Ok so it's not path confusion.

    Does it creates the exe?

    K Offline
    K Offline
    koahnig
    wrote on last edited by
    #5

    @mrjj
    Sorry, answered too fast.
    Yes, exes are always created. Had checked this before.

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

    mrjjM kshegunovK 2 Replies Last reply
    0
    • K koahnig

      @mrjj
      Sorry, answered too fast.
      Yes, exes are always created. Had checked this before.

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @koahnig
      Ok so it's not a permission issue.

      Do you have mutiple version of Qt installed?

      Can it have shifted path so it see other version on start?

      Have you checked the kit. the debugger it points to etc?

      Must be a (some sort of) config problem since it didn't happen at the win 10 upgrade.

      1 Reply Last reply
      0
      • K koahnig

        @mrjj
        Sorry, answered too fast.
        Yes, exes are always created. Had checked this before.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #7

        @koahnig
        My suspicion would be that the build and run configurations don't match, so creator is not able to start the exe. Could you check whether the run config matches the build paths?

        Read and abide by the Qt Code of Conduct

        K 1 Reply Last reply
        2
        • kshegunovK kshegunov

          @koahnig
          My suspicion would be that the build and run configurations don't match, so creator is not able to start the exe. Could you check whether the run config matches the build paths?

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #8

          @kshegunov
          Yes, it does does.
          I have changed sessions. The first session has quite a number of projects (around 15, did not check). The new session had only 3 projects. Did the same thing creating the different projects (GUI, core and also a test project) with two different Qt versions as also used with the larger session. In the smaller session all works.

          However, loading the test project created in the previous, large session I have the same issue again. Also when loading after deleting the *.pro.user.

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

          K 1 Reply Last reply
          0
          • K koahnig

            @kshegunov
            Yes, it does does.
            I have changed sessions. The first session has quite a number of projects (around 15, did not check). The new session had only 3 projects. Did the same thing creating the different projects (GUI, core and also a test project) with two different Qt versions as also used with the larger session. In the smaller session all works.

            However, loading the test project created in the previous, large session I have the same issue again. Also when loading after deleting the *.pro.user.

            K Offline
            K Offline
            koahnig
            wrote on last edited by
            #9

            @mrjj @kshegunov
            It gets more ridiculous.

            Reopened the large session (has 20 entries BTW). Opened another test project and now all works again.

            However, a bit more testing showed that it might have been the naming of the project. I used always "Setup" in the name. Before i had often removed my failures. This time I made sure that the project name was new "SetupHelping", it failed again.
            When creating another project with the name "S_E_T_U_P_Helping" it works.

            That is really ridiculous.

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

            kshegunovK 1 Reply Last reply
            1
            • K koahnig

              @mrjj @kshegunov
              It gets more ridiculous.

              Reopened the large session (has 20 entries BTW). Opened another test project and now all works again.

              However, a bit more testing showed that it might have been the naming of the project. I used always "Setup" in the name. Before i had often removed my failures. This time I made sure that the project name was new "SetupHelping", it failed again.
              When creating another project with the name "S_E_T_U_P_Helping" it works.

              That is really ridiculous.

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #10

              @koahnig
              That indeed sounds ridiculous. I tried on my machine and it works fine, but I wouldn't expect problems, as I'm developing on Linux (Qt Creator 3.6.1 if you're wondering).

              Any updates on Qt/Qt Creator when you changed the windows version?
              What about Win10 security policies and/or antivirus software, those could be interfering with the debugger?
              I think MS introduced some changes with the security in Win10, and I believe it also reflects the debugging APIs, so perhaps it's worth taking a look into that? One thing you could also try is to start a console debugging session with gdb and see if it starts okay. If it doesn't I'd search for some debugger/OS incompatibility.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              1
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #11

                @koahnig said:
                SetupHelping

                Wow. That I never would have guess in a million years.
                I can reproduce it.
                If I make brand new project and name it SetupHelping
                it cannot run.
                and
                "Failed to start program. Path or permissions wrong?"

                Win 10, Qt 5.6. mingw

                kshegunovK 1 Reply Last reply
                0
                • mrjjM mrjj

                  @koahnig said:
                  SetupHelping

                  Wow. That I never would have guess in a million years.
                  I can reproduce it.
                  If I make brand new project and name it SetupHelping
                  it cannot run.
                  and
                  "Failed to start program. Path or permissions wrong?"

                  Win 10, Qt 5.6. mingw

                  kshegunovK Offline
                  kshegunovK Offline
                  kshegunov
                  Moderators
                  wrote on last edited by
                  #12

                  @mrjj

                  That I never would have guess in a million years.

                  Neither would have I.

                  I can reproduce it ... Win 10, Qt 5.6. mingw

                  What about the creator version? Can you perhaps start the application directly (not through creator/debugger)? Can you "run" it in creator without debugger? Can you start a console debugging session?

                  Read and abide by the Qt Code of Conduct

                  mrjjM 1 Reply Last reply
                  0
                  • kshegunovK kshegunov

                    @mrjj

                    That I never would have guess in a million years.

                    Neither would have I.

                    I can reproduce it ... Win 10, Qt 5.6. mingw

                    What about the creator version? Can you perhaps start the application directly (not through creator/debugger)? Can you "run" it in creator without debugger? Can you start a console debugging session?

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    @kshegunov said:
                    It cannot run from creator at all.
                    I can start it in in deploy folder.

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

                      @mrjj @kshegunov
                      I am using a self-compiled Qt creator 3.1.2 (rather old and compiled with MinGW 4.8.2 32 bit). Qt version 5.4.1 and 5.3.1 precompiled.

                      I thought already that the issue has something to do with my AV-scanner bitdefender.

                      @mrjj Which are you using?

                      Possibly it could be the windows defender stuff too.

                      It is the TARGET name you have to change. Simply changed in .pro to "TARGET = S_e_t_u_p_Helping" or "TARGET = Set_upHelping" and it works.

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

                      1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @kshegunov said:
                        It cannot run from creator at all.
                        I can start it in in deploy folder.

                        kshegunovK Offline
                        kshegunovK Offline
                        kshegunov
                        Moderators
                        wrote on last edited by
                        #15

                        @mrjj
                        That is very, very strange ...

                        @koahnig
                        To be honest I'm running out of ideas ... perhaps putting the target name into a variable (I quoted it to be sure) ...?

                        MY_TARGET_NAME = "SetupHelping"
                        TARGET = $(MY_TARGET_NAME)
                        

                        Read and abide by the Qt Code of Conduct

                        K 1 Reply Last reply
                        0
                        • kshegunovK kshegunov

                          @mrjj
                          That is very, very strange ...

                          @koahnig
                          To be honest I'm running out of ideas ... perhaps putting the target name into a variable (I quoted it to be sure) ...?

                          MY_TARGET_NAME = "SetupHelping"
                          TARGET = $(MY_TARGET_NAME)
                          
                          K Offline
                          K Offline
                          koahnig
                          wrote on last edited by
                          #16

                          @kshegunov
                          You are the only one on Linux. So, possibly limited to Windows or even Win10.

                          @kshegunov said:

                          MY_TARGET_NAME = "SetupHelping"
                          TARGET = $(MY_TARGET_NAME)
                          

                          This does not do the trick.

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

                          kshegunovK 1 Reply Last reply
                          0
                          • K koahnig

                            @kshegunov
                            You are the only one on Linux. So, possibly limited to Windows or even Win10.

                            @kshegunov said:

                            MY_TARGET_NAME = "SetupHelping"
                            TARGET = $(MY_TARGET_NAME)
                            

                            This does not do the trick.

                            kshegunovK Offline
                            kshegunovK Offline
                            kshegunov
                            Moderators
                            wrote on last edited by
                            #17

                            @koahnig

                            You are the only one on Linux. So, possibly limited to Windows or even Win10.

                            I'd even say probable. I don't experience any strange behavior by changing the target to the problematic one.

                            This does not do the trick.

                            Well, my "shot in dark" approach has met its demise ... sadly I have nothing further to suggest. :|

                            Read and abide by the Qt Code of Conduct

                            mrjjM 1 Reply Last reply
                            0
                            • kshegunovK kshegunov

                              @koahnig

                              You are the only one on Linux. So, possibly limited to Windows or even Win10.

                              I'd even say probable. I don't experience any strange behavior by changing the target to the problematic one.

                              This does not do the trick.

                              Well, my "shot in dark" approach has met its demise ... sadly I have nothing further to suggest. :|

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #18

                              it doesn't even like
                              e:\build-mysetup-Desktop_Qt_5_6_0_MinGW_32bit-Debug\debug\mysetup.exe

                              I mean mysetup. ?!

                              occult name. i say..

                              Maybe others with win 10 can try.

                              1 Reply Last reply
                              0
                              • hskoglundH Offline
                                hskoglundH Offline
                                hskoglund
                                wrote on last edited by
                                #19

                                Hi, I remember Windows can be very sensitive to .exe filenames containing the words "setup" or "update", see discussion here

                                K 1 Reply Last reply
                                1
                                • hskoglundH hskoglund

                                  Hi, I remember Windows can be very sensitive to .exe filenames containing the words "setup" or "update", see discussion here

                                  K Offline
                                  K Offline
                                  koahnig
                                  wrote on last edited by
                                  #20

                                  @hskoglund
                                  I was also my guess that it is a windows/AV scanner issue. However @mrjj could start the exe in the deploy folder. See further above.

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

                                  mrjjM 1 Reply Last reply
                                  0
                                  • K koahnig

                                    @hskoglund
                                    I was also my guess that it is a windows/AV scanner issue. However @mrjj could start the exe in the deploy folder. See further above.

                                    mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #21

                                    Hi
                                    Just for test.
                                    On windows 7, you can name it anything setup.
                                    Still runs.

                                    So its a win 10 feature. :)
                                    Tonight I will reset my UAC and see if it actually try to warn.

                                    1 Reply Last reply
                                    1
                                    • hskoglundH Offline
                                      hskoglundH Offline
                                      hskoglund
                                      wrote on last edited by
                                      #22

                                      Hi, just tested with an empty widgets app, named TestSetup :-)

                                      Compile/building it with a Microsoft compiler, for example MSVC2013 or MSVC2015 (32-bit or 64-bit same result) will give you an .exe which you can start both from Qt Creator and from File Explorer, without anyone complaining, in any version of Windows.

                                      However compile/build with a MinGW compiler, for example 4.9.2 32-bit, will give you an .exe file that will fail to start from Qt Creator and give you a UAC prompt when started from File Explorer in Windows 7, Windows 8 and Windows 10 (but not in Windows XP).

                                      The reason is that the MinGW does not include a manifest XML file, the crucial part of the manifest is this part:

                                      <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
                                          <security>
                                            <requestedPrivileges>
                                              <requestedExecutionLevel level='asInvoker' uiAccess='false' />
                                            </requestedPrivileges>
                                          </security>
                                        </trustInfo>
                                      

                                      (i.e. if I blank out that text in the .exe file which was compiled with a MSVC compiler, it will then also give you a UAC prompt.)

                                      kshegunovK 1 Reply Last reply
                                      2
                                      • hskoglundH hskoglund

                                        Hi, just tested with an empty widgets app, named TestSetup :-)

                                        Compile/building it with a Microsoft compiler, for example MSVC2013 or MSVC2015 (32-bit or 64-bit same result) will give you an .exe which you can start both from Qt Creator and from File Explorer, without anyone complaining, in any version of Windows.

                                        However compile/build with a MinGW compiler, for example 4.9.2 32-bit, will give you an .exe file that will fail to start from Qt Creator and give you a UAC prompt when started from File Explorer in Windows 7, Windows 8 and Windows 10 (but not in Windows XP).

                                        The reason is that the MinGW does not include a manifest XML file, the crucial part of the manifest is this part:

                                        <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
                                            <security>
                                              <requestedPrivileges>
                                                <requestedExecutionLevel level='asInvoker' uiAccess='false' />
                                              </requestedPrivileges>
                                            </security>
                                          </trustInfo>
                                        

                                        (i.e. if I blank out that text in the .exe file which was compiled with a MSVC compiler, it will then also give you a UAC prompt.)

                                        kshegunovK Offline
                                        kshegunovK Offline
                                        kshegunov
                                        Moderators
                                        wrote on last edited by
                                        #23

                                        @hskoglund
                                        Doesn't this mean you're bound to use the M$ compiler (if there isn't a way to generate and embed the manifest with MinGW)? If so, this'd be terrible ...

                                        Read and abide by the Qt Code of Conduct

                                        mrjjM 1 Reply Last reply
                                        0
                                        • kshegunovK kshegunov

                                          @hskoglund
                                          Doesn't this mean you're bound to use the M$ compiler (if there isn't a way to generate and embed the manifest with MinGW)? If so, this'd be terrible ...

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #24

                                          @kshegunov

                                          But funny enough, it works on my win 7, Qt 5.5 and mingw :)
                                          Here at work.

                                          kshegunovK 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