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. Error in building -every- project with the Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Error in building -every- project with the Qt Creator

Scheduled Pinned Locked Moved Installation and Deployment
22 Posts 5 Posters 11.6k 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.
  • E Offline
    E Offline
    ElectroRonen
    wrote on last edited by
    #13

    Any help..?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #14

      Is it possible that there are remainings of your old MinGW installation left in the environment variables (especially PATH) or the registry?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ElectroRonen
        wrote on last edited by
        #15

        Lukas - I have remove the Old MinGW from the PATH and physically from the Hard-Drive.
        I've re-installed Qt and verified that Qt is using the MinGW inside the Qt directory (which it does).

        However, it appears to be worse - now when I run a Qt example in the Qt Creator startup screen, the compilation yields 100 errors and 97 warnings... The same errors it gave me when it was using the old MinGW (see a couple of posts above).

        What's going on here..?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #16

          Try adding -U__STRICT_ANSI__ to your compiler flags.

          1 Reply Last reply
          0
          • E Offline
            E Offline
            ElectroRonen
            wrote on last edited by
            #17

            Lukas, sorry for the stupidity, but how exactly do I do that? I'm compiling from the IDE and I haven't seen such option in the Options dialog. Can you please tell me how to do that?

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xcoder
              wrote on last edited by
              #18

              Try installing Qt on other windows 7, and check if it works, because it worked fine for me. And I'm using windows 7 professional x86.

              There might be some kind of problems with your system.

              You know windows reinstall is the mighty solution for everything :D

              Only a biker knows why a dog sticks his head out of a car window.

              1 Reply Last reply
              0
              • E Offline
                E Offline
                ElectroRonen
                wrote on last edited by
                #19

                xcoder - I don't have another Windows 7 machine, and I can't (and won't, for that matter) re-install my current operating system.

                Trust me, I know that re-installing Windows is like a magic troubleshooting solution. However, I'm not going to get into the mess of re-installing Windows and all the programs I have (and backup all of my digital music library) just to get a piece of software to work. A software that is, as far as I can tell, doesn't work because a peculiar reason.

                Sorry, but that solution is irrelevant. As much as I would like to stay away from any Microsoft crap like MFC or WinAPI, I can't waste time trying to figure out why am I getting a hundred errors for no reason.

                I would appreciate any other solutions, if there are any.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lgeyer
                  wrote on last edited by
                  #20

                  I still bet that your MinGW installation is broken due to a corrupted environment.

                  Open a command promt, unset all environment variables (especially PATH, INCLUDE, LIB, QTDIR, QMAKESPEC) and then execute qtvars2.bat from the Qt SDK directory to get a fresh Qt environment.

                  As for STRICT_ANSI just add @ #undef STRICT_ANSI @ at the top of your source file (normally this is not needed and if it works afterwards it is most likely that something is still broken).

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    ElectroRonen
                    wrote on last edited by
                    #21

                    Lukas - I don't have the qtvars2.bat file in my Qt SDK directory. I only have qtenv.

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      lgeyer
                      wrote on last edited by
                      #22

                      [quote author="ElectroRonen" date="1311686387"]Lukas - I don't have the qtvars2.bat file in my Qt SDK directory. I only have qtenv.[/quote]

                      Should do the same.

                      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