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