Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator 4.7.2 update problems
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 4.7.2 update problems

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
25 Posts 5 Posters 11.3k 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.
  • M MartinD
    5 Nov 2018, 22:09

    Hi,
    using maintenance tool, I upgraded Qt Creator from 4.0.1 (I'm not 100 % sure) to 4.7.2. Now, I have two problems:

    1. My autoconfigured kit Desktop Qt 5.7.0 MSVC2013 32bit is not properly configured. due to error: Compilers produce code for different ABIs x86-windows-msvc2013-pe-32bit, x86-windows-msvc2015-pe-32bit. For this kit, the C compiler auto selected is Microsoft Visual C++ Compier 14.0 (x86), C++ compiler is Microsoft Visual C++ Compier 12.0 (x86). Before Qt Creator upgrade, the kit was configured properly.

    2. When I run my app (CTRL + R), I get error:

    22:54:32: Starting D:\MyProject\debug\MyProject...
    22:54:32: Failed to start program. Path or permissions wrong?
    22:54:32: D:/MyProject/debug/MyProjectexited with code -1
    22:54:32: The process failed to start. Either the invoked program "D:/MyProject/debug/MyProject" is missing, or you may have insufficient permissions to invoke the program.
    

    I guess the problem is missing ".exe" in the path (MyProject.exe exists). I don't want to delete pro.user file as my project has quite complex configuration.

    Before Qt Creator upgrade, I had no problem launching apps.

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 6 Nov 2018, 06:51 last edited by
    #2

    @MartinD said in Qt Creator 4.7.2 update problems:

    C compiler auto selected is Microsoft Visual C++ Compier 14.0 (x86), C++ compiler is Microsoft Visual C++ Compier 12.0 (x86)

    Select the proper compiler for both (12.0 I guess).

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 6 Nov 2018, 07:18 last edited by
      #3

      @MartinD said in Qt Creator 4.7.2 update problems:

      I don't want to delete pro.user file as my project has quite complex configuration.

      Unfortunately, sometimes that's the only way to fix things.

      But how about copying your project into a second folder, delete the .pro.user there and doing a clean rebuild?

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MartinD
        wrote on 6 Nov 2018, 15:24 last edited by MartinD 11 Jun 2018, 16:41
        #4

        I configured my Qt 5.7.0 manually and selected correct compilers.

        I deleted old pro.user file and manually reconfigured my project again.

        EDIT: Nope, still this error:

        16:55:48: Starting D:\MyProject\debug\MyApp...
        16:55:48: Failed to start program. Path or permissions wrong?
        16:55:48: D:/MyProject/debug/MyAppexited with code -1
        16:55:48: The process failed to start. Either the invoked program "D:/MyProject/debug/MyApp" is missing, or you may have insufficient permissions to invoke the program.
        

        D:/MyProject/debug/MyApp.exe exists. MyProject is subdirs project. I can run other subprojects of my project from QtCreator, but this particular one I can't. MyApp links to some dlls (but also other projects from my subdirs project do), maybe this is the issue.

        Still, I can't see .exe in the path D:/MyProject/debug/MyApp .

        Any advise?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MartinD
          wrote on 6 Nov 2018, 16:14 last edited by
          #5

          I disabled protection in My Kaspersky antivirus which I use - didn't help.

          J 1 Reply Last reply 7 Nov 2018, 06:21
          0
          • M MartinD
            6 Nov 2018, 16:14

            I disabled protection in My Kaspersky antivirus which I use - didn't help.

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 7 Nov 2018, 06:21 last edited by
            #6

            @MartinD After reconfiguring did you rebuild your app (delete the whole build directory)?
            Did you try to start the app manually?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MartinD
              wrote on 7 Nov 2018, 07:30 last edited by
              #7

              Yes, I deleted the build directory, the project was rebuilt.

              Manually, the app runs (when ll neccessary dlls are manually copied to the folder).

              J 1 Reply Last reply 7 Nov 2018, 07:50
              0
              • M MartinD
                7 Nov 2018, 07:30

                Yes, I deleted the build directory, the project was rebuilt.

                Manually, the app runs (when ll neccessary dlls are manually copied to the folder).

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 7 Nov 2018, 07:50 last edited by
                #8

                @MartinD You should check the "Run Settings" of your project

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MartinD
                  wrote on 7 Nov 2018, 09:40 last edited by
                  #9

                  Run settings are default. Executable is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp" and Working dir is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp". Run in terminal unhecked, Add build library search path to PATH checked.

                  All three executable subprojects in my subdirs project have this configuration. Two subprojects can run, this one can't.

                  I haven't changed anything in run confiuration after Qt Creato upgrade.

                  J 1 Reply Last reply 7 Nov 2018, 10:03
                  0
                  • M MartinD
                    7 Nov 2018, 09:40

                    Run settings are default. Executable is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp" and Working dir is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp". Run in terminal unhecked, Add build library search path to PATH checked.

                    All three executable subprojects in my subdirs project have this configuration. Two subprojects can run, this one can't.

                    I haven't changed anything in run confiuration after Qt Creato upgrade.

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 7 Nov 2018, 10:03 last edited by jsulm 11 Jul 2018, 10:04
                    #10

                    @MartinD Executable and working directory can't be same!
                    If "D:/MyProject/debug/MyApp.exe" is executable then working dir should be "D:/MyProject/debug".

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MartinD
                      wrote on 7 Nov 2018, 10:10 last edited by MartinD 11 Jul 2018, 10:20
                      #11

                      It is not the same:
                      Executable is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp"
                      Working dir is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp"

                      I also tried to minimize my problematic executable project by compiling only empty main function. The executable now links only to some system dlls. Still the same issue.

                      J 1 Reply Last reply 8 Nov 2018, 06:30
                      0
                      • M Offline
                        M Offline
                        MartinD
                        wrote on 7 Nov 2018, 10:45 last edited by
                        #12

                        My colleague copied me old version of Qt Creator he has installed (4.0.3). This version can launch the project. There is obviously some issue in new Qt Creator.

                        A 1 Reply Last reply 7 Nov 2018, 11:13
                        0
                        • M MartinD
                          7 Nov 2018, 10:45

                          My colleague copied me old version of Qt Creator he has installed (4.0.3). This version can launch the project. There is obviously some issue in new Qt Creator.

                          A Offline
                          A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on 7 Nov 2018, 11:13 last edited by
                          #13

                          Hi @MartinD,

                          All three executable subprojects in my subdirs project have this configuration. Two subprojects can run, this one can't

                          I guess the problem is missing ".exe" in the path (MyProject.exe exists).

                          Combining these two statements, do the other two subprojects (that can be launced) have the .exe suffix?

                          Qt has to stay free or it will die.

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            MartinD
                            wrote on 7 Nov 2018, 12:44 last edited by MartinD 11 Jul 2018, 12:48
                            #14

                            No, they also don't have .exe suffix in new Qt Creator.

                            In old Qt Creator application output when launching starts with:

                            Starting D:\Projects\build-MyProject-Desktop_Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp.exe...

                            Whereas in new Qt Creator, as I have already written, there is no .exe suffix. Is this the issue? However, I still don't understand how it is possible that two projects can run and one not.

                            A 1 Reply Last reply 7 Nov 2018, 18:05
                            0
                            • M MartinD
                              7 Nov 2018, 12:44

                              No, they also don't have .exe suffix in new Qt Creator.

                              In old Qt Creator application output when launching starts with:

                              Starting D:\Projects\build-MyProject-Desktop_Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp.exe...

                              Whereas in new Qt Creator, as I have already written, there is no .exe suffix. Is this the issue? However, I still don't understand how it is possible that two projects can run and one not.

                              A Offline
                              A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on 7 Nov 2018, 18:05 last edited by
                              #15

                              @MartinD said in Qt Creator 4.7.2 update problems:

                              However, I still don't understand how it is possible that two projects can run and one not.

                              It could still be that the program crashes because it cannot load a dependent library. Have you checked if you can start the app outside Creator?

                              Qt has to stay free or it will die.

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                MartinD
                                wrote on 7 Nov 2018, 18:09 last edited by
                                #16

                                Yes, the app can run outside Qt Creator. Also, Qt Creator 4.0.3 can launch this app. Only new Qt Creator 4.7.2 can't launch it.

                                A 1 Reply Last reply 7 Nov 2018, 18:18
                                0
                                • M MartinD
                                  7 Nov 2018, 18:09

                                  Yes, the app can run outside Qt Creator. Also, Qt Creator 4.0.3 can launch this app. Only new Qt Creator 4.7.2 can't launch it.

                                  A Offline
                                  A Offline
                                  aha_1980
                                  Lifetime Qt Champion
                                  wrote on 7 Nov 2018, 18:18 last edited by
                                  #17

                                  @MartinD Please check the Run Environment (Project > Build & Run > Run > Run Settings > Run Environment - especially PATH. I'm pretty sure it's related to something there.

                                  Qt has to stay free or it will die.

                                  M 1 Reply Last reply 8 Nov 2018, 09:24
                                  0
                                  • M MartinD
                                    7 Nov 2018, 10:10

                                    It is not the same:
                                    Executable is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp"
                                    Working dir is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp"

                                    I also tried to minimize my problematic executable project by compiling only empty main function. The executable now links only to some system dlls. Still the same issue.

                                    J Offline
                                    J Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 8 Nov 2018, 06:30 last edited by jsulm 11 Aug 2018, 06:31
                                    #18

                                    @MartinD said in Qt Creator 4.7.2 update problems:

                                    Executable is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp"
                                    Working dir is "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp"

                                    Try to change the working directory to "D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug"

                                    And compare these settings with QtCreator 4.0.3

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      MartinD
                                      wrote on 8 Nov 2018, 08:54 last edited by MartinD 11 Aug 2018, 09:00
                                      #19

                                      Already tried setting working directory to that.

                                      The difference is, that in Qt Creator 4.0.3 the Executable has .exe suffix, there is D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp.exe

                                      J 1 Reply Last reply 8 Nov 2018, 09:11
                                      0
                                      • M MartinD
                                        8 Nov 2018, 08:54

                                        Already tried setting working directory to that.

                                        The difference is, that in Qt Creator 4.0.3 the Executable has .exe suffix, there is D:\Projects\build-MyProject-Qt_5_7_0_MSVC2013_32bit-Debug\MyApp\debug\MyApp.exe

                                        J Offline
                                        J Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on 8 Nov 2018, 09:11 last edited by
                                        #20

                                        @MartinD Well, in my QtCreator there is no .exe suffix as well and the app starts from QtCreator. Must be something else. As @aha_1980 said it is most probably something in Run settings - you can compare those too between both QtCreator versions.

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • A aha_1980
                                          7 Nov 2018, 18:18

                                          @MartinD Please check the Run Environment (Project > Build & Run > Run > Run Settings > Run Environment - especially PATH. I'm pretty sure it's related to something there.

                                          M Offline
                                          M Offline
                                          MartinD
                                          wrote on 8 Nov 2018, 09:24 last edited by MartinD 11 Aug 2018, 09:25
                                          #21

                                          @aha_1980 Thanks for that point. I found that old Qt Creator adds multiple x64 paths to PATH (my app is 32 bit), e.g.:

                                          C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools\x64
                                          C:\Program Files (x86)\Windows Kits\8.1\bin\x64
                                          C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\

                                          Whereas new Qt Creator has:
                                          C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools
                                          C:\Program Files (x86)\Windows Kits\8.1\bin\x86
                                          C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\

                                          Otherwise, the PATH is same. Changing the PATH in new Qt Creator to what old Qt Creator uses has no effect.

                                          M 1 Reply Last reply 8 Nov 2018, 09:40
                                          0

                                          11/25

                                          7 Nov 2018, 10:10

                                          • Login

                                          • Login or register to search.
                                          11 out of 25
                                          • First post
                                            11/25
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved