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. Does QT actually call VCVARSALL.BAT?

Does QT actually call VCVARSALL.BAT?

Scheduled Pinned Locked Moved General and Desktop
17 Posts 9 Posters 14.4k Views
  • 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.
  • T Offline
    T Offline
    tobias.hunger
    wrote on 11 Oct 2013, 18:09 last edited by
    #5

    Check the build environment in projects mode/Kit-name/Build. Does it contain everything you need? It should have everything from vcvarswhatever.bat.

    If it does not, then please file a bug report and add whatever is missing as a work around.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AnatolyS
      wrote on 25 Jan 2014, 20:07 last edited by
      #6

      I observe the same problem. My configuration is the latest Qt 5.2.0 + Qt Creator 3.0.0, Visual Studio 2012 Express, Windows SDK For Windows 8.1, Windows 8.1 64bit.

      I installed everything on clean machine in the following order:

      1. Windows SDK (http://msdn.microsoft.com/en-US/windows/desktop/bg162891)
      2. Visual Studio 2012 Express (http://www.microsoft.com/en-us/download/details.aspx?id=34673)
      3. Qt has been installed with the Qt Online Installer for Windows (http://download.qt-project.org/official_releases/online_installers/1.5/qt-windows-opensource-1.5.0-x86-online.exe)

      As the result I got
      !http://files.rsdn.ru/12237/qtversions.PNG(Qt Versions)!
      !http://files.rsdn.ru/12237/qtcompilers.PNG(Compilers)!
      !http://files.rsdn.ru/12237/qtkits.PNG(Qt Kits)!

      But when add the Qt 5.2.0 MSVC2012 32 bit kit to my project, building environment contains nothing related to Visual Studio 2012 compiler (INCLUDE, PATH, LIB and so on)
      !http://files.rsdn.ru/12237/qtproject.PNG(Project)!

      What's wrong?

      Thank in advance.

      BR,
      AnatolyS

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JKSH
        Moderators
        wrote on 21 Feb 2014, 14:52 last edited by
        #7

        Very strange. I don't know what's going on, but this user seems to have found a way around the issue: http://qt-project.org/forums/viewreply/163521/

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

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AnatolyS
          wrote on 21 Feb 2014, 19:51 last edited by
          #8

          Dear JKSH!

          Yes , this is workaround but this is not solution. Imagine that I can have both 2010 and 2012 studio (actually it is so). In that case I have to restart the qt creator switching between 2010 and 2012.

          Remark that this applies to express versions. On my work machine (windows 7 pro + visual studio 2010 pro + qt 5.2.1) there is no such problem.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JKSH
            Moderators
            wrote on 22 Feb 2014, 02:16 last edited by
            #9

            If you're willing, please post a bug report at https://bugreports.qt-project.org/ and attach your screenshots.

            This might help the Qt Creator team find a proper solution.

            I don't think the problem is with Express -- I use MSVC 2012 and MSVC 2013 Express with Qt Creator, with no issues.

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

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AnatolyS
              wrote on 22 Feb 2014, 09:26 last edited by
              #10

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

              Thank you for your time JKSH!

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AnatolyS
                wrote on 23 Feb 2014, 09:28 last edited by
                #11

                [quote author="JKSH" date="1393035362"]
                I don't think the problem is with Express -- I use MSVC 2012 and MSVC 2013 Express with Qt Creator, with no issues.[/quote]

                I found one moment that may became cause of the problem. This is profile name. On my work machine 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

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  JKSH
                  Moderators
                  wrote on 26 Feb 2014, 01:13 last edited by
                  #12

                  Great; thank you for your report! I hope it can help fix this issue.

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

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    raymond
                    wrote on 13 Mar 2014, 14:10 last edited by
                    #13

                    Hi :) Found this post while searching for "'cl' is not recognized as an internal or external command". I got this message in Qt Creator building a project with Qt 4.8.5 and MSVC 2010. Strange thing since it worked earlier today.

                    I found the reason and solution for me: an application I had installed in the mean time (between working and non working compiling in Creator) had wiped out my System PATH variable. Luckily I was able to recover it using this post on SuperUser: http://superuser.com/a/265575

                    Might not be relevant for the original posters problem, but others may end up here like me searching for the same problem. :)

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AnatolyS
                      wrote on 29 Mar 2014, 07:53 last edited by
                      #14

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

                      You should redirect TMP to path without non-latin non-space characters. For example TMP=c:\tmp works fine.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        ronjouch
                        wrote on 6 Jun 2016, 15:31 last edited by
                        #15

                        Hey. This topic ranks high in Google searches for similar problem, so I'm adding that users of Qt 5.7.0 / MSVC2015 might hit what looks like a QTCreator bug, where QTCreator incorrectly runs VC's initialization script. See QTCREATORBUG-16397 - MSVC2015 builds fail due to calling architecture-specific vcvars with architecture parameter.

                        1 Reply Last reply
                        1
                        • D Offline
                          D Offline
                          DY Kim
                          wrote on 8 Nov 2017, 00:32 last edited by
                          #16

                          I have experienced same thing. All environment variables related with VC was not set automatically when QtCreator launched. I solved the issue by changing Windows account name. If the account name has some special characters(like "&"), it seems the environment values are not parsed properly during invoking vcvar.

                          jsulmJ 1 Reply Last reply 8 Nov 2017, 05:49
                          0
                          • D DY Kim
                            8 Nov 2017, 00:32

                            I have experienced same thing. All environment variables related with VC was not set automatically when QtCreator launched. I solved the issue by changing Windows account name. If the account name has some special characters(like "&"), it seems the environment values are not parsed properly during invoking vcvar.

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 8 Nov 2017, 05:49 last edited by
                            #17

                            @DY-Kim I would avoid using such user names as user names are part of paths like c:\users\USER_NAME
                            If a user name contains characters which have special meaning for the CMD/shell then you can expect troubles like what you described.

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

                            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