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. [SOLVED] Qt 5.2.1 for Windows 64-bit VS 2012. Can't compile a project
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt 5.2.1 for Windows 64-bit VS 2012. Can't compile a project

Scheduled Pinned Locked Moved Installation and Deployment
20 Posts 7 Posters 16.4k 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.
  • JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #9

    Thank you for sharing your solution!

    I'm still puzzled though -- Qt Creator should have called VCVARSALL automatically. If you go to Tools -> Options -> Build & Run -> Compilers and click on your MSVC compiler(s), do you see VCVARSALL in "Initialization"?

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fuzzy Barsik
      wrote on last edited by
      #10

      Yes, I do (see screenshot in "my comment above":http://qt-project.org/forums/viewreply/162482/)...

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #11

        [quote author="Fuzzy Barsik" date="1392907503"]Yes, I do (see screenshot in "my comment above":http://qt-project.org/forums/viewreply/162482/)...[/quote]Ah yes, you already posted it before. Sorry, I forgot about it.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • AnatolySA Offline
          AnatolySA Offline
          AnatolyS
          wrote on last edited by
          #12

          Fuzzy Barsik, unfortunately you posted workaround, not solution, because qt creator in normal condition must call vcvarsall.cmd itself.

          The same problem described here http://qt-project.org/forums/viewthread/32276/#163680

          I reported bug https://bugreports.qt-project.org/browse/QTCREATORBUG-11539

          1 Reply Last reply
          0
          • AnatolySA Offline
            AnatolySA Offline
            AnatolyS
            wrote on last edited by
            #13

            [quote author="Fuzzy Barsik" date="1392641564"][/quote]

            I found one moment that may became cause of the problem. This is profile name. On my work machine where qt creator works as expected I have latin profile name (APPDATA=C:\Users\Stranger\AppData\Roaming), but on home machine there is cyrillic profile name (APPDATA=C:\Users\Толик\AppData\Roaming)

            What about your profile name?

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Fuzzy Barsik
              wrote on last edited by
              #14

              Hi AnatolyS,
              My Windows profile name is in cyrillic.

              1 Reply Last reply
              0
              • AnatolySA Offline
                AnatolySA Offline
                AnatolyS
                wrote on last edited by
                #15

                [quote author="Fuzzy Barsik" date="1393149575"]Hi AnatolyS,
                My Windows profile name is in cyrillic.[/quote]

                It seems this is only difference that I can observe beetween problem and work environments.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  asergiu
                  wrote on last edited by
                  #16

                  In fact the CL not in path problem has been solved in my case by installing the Windows 7 SDK (I only selected a part of the components - excluded .NET cause I don't need it)

                  I mention that I already had the Visual Studio 2010 installed at the point when the error appeared. Together with the Windows SDK came a new compiler that solved the problem - and as a bonus I have now also the Windows Debugging Tools

                  1 Reply Last reply
                  0
                  • AnatolySA Offline
                    AnatolySA Offline
                    AnatolyS
                    wrote on last edited by
                    #17

                    [quote author="asergiu" date="1394798550"]In fact the CL not in path problem has been solved in my case by installing the Windows 7 SDK (I only selected a part of the components - excluded .NET cause I don't need it)
                    [/quote]

                    If you have several toolchains, it does not help. Qt Creator must call appropriate vcvarsall.bat itself according to current project kit. That's the problem.

                    1 Reply Last reply
                    0
                    • JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #18

                      I'm not sure if this helps or not:

                      I uninstalled some old versions of SQL Server, and that broke my MSVC installation -- Qt Creator can auto-detect MSVC, but gave me “‘cl’ is not recognized as an internal or external command, operable program or batch file”.

                      It was fixed when I ran the MSVC installer to repair it.

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply
                      0
                      • AnatolySA Offline
                        AnatolySA Offline
                        AnatolyS
                        wrote on last edited by
                        #19

                        Daniel Teske has found workaround: https://bugreports.qt-project.org/browse/QTCREATORBUG-11539

                        You should redirect TMP to path without non-latin characters. That works fine.

                        D 1 Reply Last reply
                        0
                        • AnatolySA AnatolyS

                          Daniel Teske has found workaround: https://bugreports.qt-project.org/browse/QTCREATORBUG-11539

                          You should redirect TMP to path without non-latin characters. That works fine.

                          D Offline
                          D Offline
                          danieldil
                          wrote on last edited by
                          #20

                          @AnatolyS I tried that, nothing changed.

                          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