Qt Creator Build Environment Windows 10 SDK
-
wrote on 10 May 2021, 07:21 last edited by
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?
-
wrote on 12 Jun 2021, 07:54 last edited by
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
-
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
-
wrote on 11 May 2021, 05:59 last edited by
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...
-
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
-
wrote on 12 Jun 2021, 07:54 last edited by
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
.