Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. g++.exe failure through Qt
Forum Updated to NodeBB v4.3 + New Features

g++.exe failure through Qt

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
15 Posts 6 Posters 4.9k Views 4 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.
  • H Offline
    H Offline
    Hubbard
    wrote on last edited by Hubbard
    #3

    Hello and thank you, I don't have a commecial antivirus program and I have Windows Defender disabled.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hubbard
      wrote on last edited by
      #4

      Also, I don't have a "Qt.exe" in the Qt directory?

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

        Hi,

        Why are you expecting a Qt.exe file in your Qt installation ?

        The application should be in the debug folder of the build tree (aka shadow build) from your project settings.

        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
        • H Hubbard

          I have Qt Creator 4.2.1 for use in developing C++ programs and GUIs. I like it but on my computer (as opposed to the Pi) I cannot build anything through it as I keep getting the error

          "g++.exe - Application Error"

          with the dialog

          "The application was unable to start correctly (0xc0000142)"

          and the IDE's command line itself reports the (probably the same) error

          [debug/Qt.exe] Error -1073741502

          I have been frantically googling and trying to fix the problem but nothing seems to be out there, before returning the usual solutions, I have MinGW, visual C++, etc AND other IDEs (such as CodeLite and Eclipse) all work.

          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #6

          @Hubbard First thing I noticed is your error is about g++.exe, yet you don't list g++ as a compiler. From your list, mingw/vc++/etc I'm seeing you are on windows where there is no g++ (not entirely true, but you didn't list cygwin/g++).

          It sounds like you have something misconfigured in your Qt Creator and it is trying to use g++ instead of mingw or some other windows compatible compiler.

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          1 Reply Last reply
          0
          • H Hubbard

            I have Qt Creator 4.2.1 for use in developing C++ programs and GUIs. I like it but on my computer (as opposed to the Pi) I cannot build anything through it as I keep getting the error

            "g++.exe - Application Error"

            with the dialog

            "The application was unable to start correctly (0xc0000142)"

            and the IDE's command line itself reports the (probably the same) error

            [debug/Qt.exe] Error -1073741502

            I have been frantically googling and trying to fix the problem but nothing seems to be out there, before returning the usual solutions, I have MinGW, visual C++, etc AND other IDEs (such as CodeLite and Eclipse) all work.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #7

            @Hubbard So, you installed Qt for MinGW? Did you installed MinGW provided with Qt? You should use the one provided with Qt - it is the easiest way on Windows to start to develop Qt applications.

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

            H 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Hubbard So, you installed Qt for MinGW? Did you installed MinGW provided with Qt? You should use the one provided with Qt - it is the easiest way on Windows to start to develop Qt applications.

              H Offline
              H Offline
              Hubbard
              wrote on last edited by
              #8

              @jsulm I did yeah, Qt did indeed come with MinGW with g++.exe in it, this is whats 'failing'
              @ambershark g++.exe is part of the MinGW (and others) package
              @SGaist There is no executable files in the build folder for my projects, is that a problem?

              jsulmJ 1 Reply Last reply
              0
              • H Hubbard

                @jsulm I did yeah, Qt did indeed come with MinGW with g++.exe in it, this is whats 'failing'
                @ambershark g++.exe is part of the MinGW (and others) package
                @SGaist There is no executable files in the build folder for my projects, is that a problem?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @Hubbard Try to call g++ in a terminal (use absolute path). Does it work?
                There is no executable because the compiler could not be executed to create it.

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

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

                  @jsulm @ambershark

                  I have three different MinGW version 4.91, 4.92 and 5.30 installed as they came with Qt versions 5.4 up to 5.8. All of the respective folders contain a g++.exe. I had never cygwin installed on this machine.

                  @Hubbard Yes, that is your problem.
                  My guess is that you have probably called your project Qt and therefore an executable called "Qt.exe" would be generated. This should reside in <something>/debug/Qt.exe in your case. If it does not exist, you need to find out why. It could be th virus scanner.

                  Since you are using Qt creator, you can check on the left pane on Projects and sould see something with Build&Run on your main screen. Depending on your actual Qt creator version you should see and be able to check the "Build settings" and the "Run settings".
                  In "Run settings" there you can find the actual name of the executable including the complete path. Check the location again.

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

                  A 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Hubbard Try to call g++ in a terminal (use absolute path). Does it work?
                    There is no executable because the compiler could not be executed to create it.

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

                    @jsulm said in g++.exe failure through Qt:

                    @Hubbard Try to call g++ in a terminal (use absolute path). Does it work?
                    There is no executable because the compiler could not be executed to create it.

                    I did not read this careful enough. That is certainly also an option.

                    @hubbard
                    A good idea is to check the complete setup of Qt creator and the kits as well.
                    Go to "Tools"->"Options"->"Build&Run". The different tabs need to be checked for warning signs (yellow Triangle).

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

                    1 Reply Last reply
                    0
                    • K koahnig

                      @jsulm @ambershark

                      I have three different MinGW version 4.91, 4.92 and 5.30 installed as they came with Qt versions 5.4 up to 5.8. All of the respective folders contain a g++.exe. I had never cygwin installed on this machine.

                      @Hubbard Yes, that is your problem.
                      My guess is that you have probably called your project Qt and therefore an executable called "Qt.exe" would be generated. This should reside in <something>/debug/Qt.exe in your case. If it does not exist, you need to find out why. It could be th virus scanner.

                      Since you are using Qt creator, you can check on the left pane on Projects and sould see something with Build&Run on your main screen. Depending on your actual Qt creator version you should see and be able to check the "Build settings" and the "Run settings".
                      In "Run settings" there you can find the actual name of the executable including the complete path. Check the location again.

                      A Offline
                      A Offline
                      ambershark
                      wrote on last edited by
                      #12

                      @koahnig said in g++.exe failure through Qt:

                      I have three different MinGW version 4.91, 4.92 and 5.30 installed as they came with Qt versions 5.4 up to 5.8. All of the respective folders contain a g++.exe. I had never cygwin installed on this machine.

                      I didn't realize that Qt did that. The normal mingw installs do not have a g++.exe, it is mingw32-g++.exe, etc. Learn something new every day! :)

                      In my defense I really don't use windows much, cause it's yucky! :P

                      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                      K 1 Reply Last reply
                      0
                      • A ambershark

                        @koahnig said in g++.exe failure through Qt:

                        I have three different MinGW version 4.91, 4.92 and 5.30 installed as they came with Qt versions 5.4 up to 5.8. All of the respective folders contain a g++.exe. I had never cygwin installed on this machine.

                        I didn't realize that Qt did that. The normal mingw installs do not have a g++.exe, it is mingw32-g++.exe, etc. Learn something new every day! :)

                        In my defense I really don't use windows much, cause it's yucky! :P

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

                        @ambershark
                        no defense required. I had to check too. Just realized that there are apparently also the 64bit versions of compiler installed through Qt.
                        You should try windows. It has the nicer crashes :P

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

                        A 1 Reply Last reply
                        0
                        • K koahnig

                          @ambershark
                          no defense required. I had to check too. Just realized that there are apparently also the 64bit versions of compiler installed through Qt.
                          You should try windows. It has the nicer crashes :P

                          A Offline
                          A Offline
                          ambershark
                          wrote on last edited by
                          #14

                          @koahnig Lol! I use windows to play video games. ;)

                          I write my apps cross platform so inevitably I'm at least building and testing on windows, but I spend so little time there that I don't have the immediate answers pop in my head like they do from posix OSes. :)

                          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                          1 Reply Last reply
                          0
                          • H Offline
                            H Offline
                            H3ndrik-Jan
                            wrote on last edited by
                            #15

                            I know that this topic is quiet old, but I just want to share my findings anyways. I had the same problems as the topic starter (G++.exe application error and fault code at build) when building a project using opencv (which I compiled myself). After a long time I accidently removed a certain path from my path variable and it worked. (the path I removed was the path to winavr in my case, also containing a g++ executable allthough with another name)

                            1 Reply Last reply
                            1

                            • Login

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