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

Qt Creator Build Environment Windows 10 SDK

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 903 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.
  • chrizbeeC Offline
    chrizbeeC Offline
    chrizbee
    wrote on 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?

    aha_1980A 1 Reply Last reply
    0
    • chrizbeeC Offline
      chrizbeeC Offline
      chrizbee
      wrote on 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
      • chrizbeeC chrizbee

        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?

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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.

        chrizbeeC 1 Reply Last reply
        1
        • aha_1980A aha_1980

          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

          chrizbeeC Offline
          chrizbeeC Offline
          chrizbee
          wrote on 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
          • chrizbeeC Offline
            chrizbeeC Offline
            chrizbee
            wrote on 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...

            aha_1980A 1 Reply Last reply
            0
            • chrizbeeC chrizbee

              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...

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 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
              • chrizbeeC Offline
                chrizbeeC Offline
                chrizbee
                wrote on 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