Qt Creator Build Environment Windows 10 SDK
-
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:
Laptop:
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?
-
Just to let you know:
My problem was not related to Qt but to the scriptvcvarsall.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 setINCLUDE
,LIB
andLIBPATH
at the end ofvcvarsall.bat
. -
@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
-
Just to let you know:
My problem was not related to Qt but to the scriptvcvarsall.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 setINCLUDE
,LIB
andLIBPATH
at the end ofvcvarsall.bat
.