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. Qt Creator Build Environment Windows 10 SDK
QtWS25 Last Chance

Qt Creator Build Environment Windows 10 SDK

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 897 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.
  • C Offline
    C Offline
    chrizbee
    wrote on 10 May 2021, 07:21 last edited by
    #1

    Hey there!
    I have the following problem regarding Qt Creator on Windows 10:

    I installed Qt MSVC 2019 64bit and Visual Studio 2019 Community on 2 machines (PC and Laptop). I can compile and run simple test projects on PC, but not on Laptop where I get include errors.

    So I checked my projects build environment for both machines (INCLUDE variable). PC:
    qtcreator_7VCfoPI2BV.png
    Laptop:
    20210510_090931_qtcreator.png

    I can now add those paths manually in project settings but I'd rather have them load automatically. Any ideas on how to get that running?

    A 1 Reply Last reply 10 May 2021, 13:28
    0
    • C Offline
      C Offline
      chrizbee
      wrote on 12 Jun 2021, 07:54 last edited by
      #6

      Just to let you know:
      My problem was not related to Qt but to the script vcvarsall.bat which is setting up the environment for MSVC. I had admin rights on my laptop but wasn't allowed to edit / query the windows registry. That's where the magic happens...
      The best way to fix this (if you can't get access to the registry) is to manually set INCLUDE, LIB and LIBPATH at the end of vcvarsall.bat.

      1 Reply Last reply
      0
      • C chrizbee
        10 May 2021, 07:21

        Hey there!
        I have the following problem regarding Qt Creator on Windows 10:

        I installed Qt MSVC 2019 64bit and Visual Studio 2019 Community on 2 machines (PC and Laptop). I can compile and run simple test projects on PC, but not on Laptop where I get include errors.

        So I checked my projects build environment for both machines (INCLUDE variable). PC:
        qtcreator_7VCfoPI2BV.png
        Laptop:
        20210510_090931_qtcreator.png

        I can now add those paths manually in project settings but I'd rather have them load automatically. Any ideas on how to get that running?

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 10 May 2021, 13:28 last edited by
        #2

        Dear @chrizbee,

        it might be a stupid question, but did you install the Windows Kit on your laptop? AFAIK you have to explictly check that during VS setup.

        Regards

        Qt has to stay free or it will die.

        C 1 Reply Last reply 10 May 2021, 14:17
        1
        • A aha_1980
          10 May 2021, 13:28

          Dear @chrizbee,

          it might be a stupid question, but did you install the Windows Kit on your laptop? AFAIK you have to explictly check that during VS setup.

          Regards

          C Offline
          C Offline
          chrizbee
          wrote on 10 May 2021, 14:17 last edited by
          #3

          @aha_1980 Would've been my first guess too :D
          But yes - I did. The include and lib folders are there and can be included to the project.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            chrizbee
            wrote on 11 May 2021, 05:59 last edited by
            #4

            There has to be some script / batch file that will check for those directories since I didn't find them in my environment. So either that or vcvarsall.bat...

            A 1 Reply Last reply 11 May 2021, 09:29
            0
            • C chrizbee
              11 May 2021, 05:59

              There has to be some script / batch file that will check for those directories since I didn't find them in my environment. So either that or vcvarsall.bat...

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 11 May 2021, 09:29 last edited by
              #5

              @chrizbee Sorry, I don't know how that detection really works.

              You might want to ask at the mailing list, maybe the developers have a hint for debugging that issue.

              Regards

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                chrizbee
                wrote on 12 Jun 2021, 07:54 last edited by
                #6

                Just to let you know:
                My problem was not related to Qt but to the script vcvarsall.bat which is setting up the environment for MSVC. I had admin rights on my laptop but wasn't allowed to edit / query the windows registry. That's where the magic happens...
                The best way to fix this (if you can't get access to the registry) is to manually set INCLUDE, LIB and LIBPATH at the end of vcvarsall.bat.

                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