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. Error while parsing example projects
Forum Updated to NodeBB v4.3 + New Features

Error while parsing example projects

Scheduled Pinned Locked Moved Solved General and Desktop
17 Posts 5 Posters 10.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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #7

    Hi
    It seems it tried to compile for arm ??
    alt text

    When you open project and it ask for compiler, try to select only the mingw
    alt text

    The $[QT_INSTALL_EXAMPLES] as used here is for doing
    make install
    and as far as i know should not have influence on the g++ not found error.

    aha_1980A 1 Reply Last reply
    4
    • mrjjM mrjj

      Hi
      It seems it tried to compile for arm ??
      alt text

      When you open project and it ask for compiler, try to select only the mingw
      alt text

      The $[QT_INSTALL_EXAMPLES] as used here is for doing
      make install
      and as far as i know should not have influence on the g++ not found error.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #8

      @beginner123 As @mrjj says (and what I already told yesterday) it seems you have selected something related to WinRT (on ARM). Can you show us the compiler setup screen when you open the project the first time? (make sure to delete all .user and Makefile and other build results in the project).

      Qt has to stay free or it will die.

      1 Reply Last reply
      4
      • B Offline
        B Offline
        beginner123
        wrote on last edited by
        #9

        My apologies for the error related to "arm". It was because that I uninstalled and re-installed Qt (with all components added, including "arm"). I thought if I included all those components, it might solve the problem. But it did not.

        For clarity and simplicity, I uninstalled Qt and re-installed Qt again with just MinGW and Qt Creator included. That is, no "arm" nor "MSVC" components.

        Here is a snapshot when I opened the example project the first time.

        0_1512153277886_Qt - Error message 5.jpg

        If anyone can advise me on what I need to do to configure this example project, I would greatly appreciate it.

        Thanks again for your time and willingness to help me out!!!

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

          Hi
          Super.
          So even after only having mingw and the mingw Qt installed, it still says it cannot find
          C:\Qt\Tools\mingw530_32\bin\g++.exe ?

          alt text

          Can you manually check your listed path and verify that the .exe is actually in the path listed?

          1 Reply Last reply
          1
          • B beginner123

            My apologies for the error related to "arm". It was because that I uninstalled and re-installed Qt (with all components added, including "arm"). I thought if I included all those components, it might solve the problem. But it did not.

            For clarity and simplicity, I uninstalled Qt and re-installed Qt again with just MinGW and Qt Creator included. That is, no "arm" nor "MSVC" components.

            Here is a snapshot when I opened the example project the first time.

            0_1512153277886_Qt - Error message 5.jpg

            If anyone can advise me on what I need to do to configure this example project, I would greatly appreciate it.

            Thanks again for your time and willingness to help me out!!!

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by aha_1980
            #11

            @beginner123 I'm sorry, but this is a really weird problem. The only thing I can still imagine is that something (antivirus) blocks the access to the compiler.

            If this is not the case, then you can file a bug at bugreports.qt.io

            I've always used the MinGW installer and never saw problems like yours.

            Edit: got one more idea: do you have write access rights in the examples + the parent folder?

            Qt has to stay free or it will die.

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

              Yeah Im also puzzled as a default project works but
              the samples wont.

              1 Reply Last reply
              1
              • JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #13

                Since the problem is weird & intractable, would the experts here suggest asking the OP if he fancied uninstalling & reinstalling things Qt & Compiler, depending on how much effort that is?

                EDIT: Sorry, missed that, already tried.

                mrjjM 1 Reply Last reply
                1
                • JonBJ JonB

                  Since the problem is weird & intractable, would the experts here suggest asking the OP if he fancied uninstalling & reinstalling things Qt & Compiler, depending on how much effort that is?

                  EDIT: Sorry, missed that, already tried.

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

                  @JNBarchan
                  He actually already have tried that and got same result.
                  There seems to be nothing wrong with the kits and a default
                  project works whereas any sample loaded complains.

                  1 Reply Last reply
                  2
                  • B Offline
                    B Offline
                    beginner123
                    wrote on last edited by
                    #15

                    Dear ALL,

                    I got it!!!

                    I think I have found what I did wrong.

                    Here is a snapshot of what I should have done.

                    0_1512156266513_Qt - Error message 6.jpg

                    I should have added MinGW in this example project (circled in red).

                    After I added the MinGW kit to this example project, it allowed me to build and run this project.

                    Here is a snapshot of the results.

                    0_1512156406241_Qt - Error message 9.jpg

                    The example Widget GUI popped up properly and functioned as it should be. HOORAY!!!

                    The only thing left is the "No winrtrunner.exe found." I will try to figure that out later.

                    I am SO HAPPY!!!

                    Thank you ALL SO MUCH!!!!

                    The power of an open forum at Qt here is another factor that has swayed me from Visual Studio to Qt.

                    Thanks a lot, guys!!!

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

                      Super!
                      Good work not given up.
                      You can just ignore "No winrtrunner.exe found."
                      I also get that.
                      alt text

                      1 Reply Last reply
                      1
                      • B beginner123

                        Dear ALL,

                        I got it!!!

                        I think I have found what I did wrong.

                        Here is a snapshot of what I should have done.

                        0_1512156266513_Qt - Error message 6.jpg

                        I should have added MinGW in this example project (circled in red).

                        After I added the MinGW kit to this example project, it allowed me to build and run this project.

                        Here is a snapshot of the results.

                        0_1512156406241_Qt - Error message 9.jpg

                        The example Widget GUI popped up properly and functioned as it should be. HOORAY!!!

                        The only thing left is the "No winrtrunner.exe found." I will try to figure that out later.

                        I am SO HAPPY!!!

                        Thank you ALL SO MUCH!!!!

                        The power of an open forum at Qt here is another factor that has swayed me from Visual Studio to Qt.

                        Thanks a lot, guys!!!

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #17

                        @beginner123 Glad you figured it out. Have fun! :)

                        Qt has to stay free or it will die.

                        1 Reply Last reply
                        2

                        • Login

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