Replies: 3 comments 9 replies
-
This is something I'd be happy to work on as I need this functionality. I've tried a few times since late 2021. I've most recently tried using EWDK 22621 that ships with vsbuildtools 17.1.5 and vcpkg tag 2023.06.20. I can get an instance of the EWDK that correctly builds msbuild projects for 10.0.22621.0 and toolset v143. I understand that vcpkg makes use of vs_where.exe but the EWDK does not leave behind any remnants of the installer. I've tried using
It seems like vcpkg (tag 2022.06.15) doesn't use VS170COMNTOOLS environment variable. I've tried setting VS160COMNTOOLS=%VS170COMNTOOLS% based on other feedback here (#22068 (comment)). This gets a little further but still ultimately fails...
where the output from the config logs
CmakeError.log seems to just provide the similar output as above
It seems like at this point there is something required to get CMake to find the EWDK buildtools instance, if anyone can help with CMake, I'd appreciate it. |
Beta Was this translation helpful? Give feedback.
-
According to https://discourse.cmake.org/t/cmake-configure-project-with-ewdk-toolchain/8417 simply using ninja as the CMake generator should work, yet |
Beta Was this translation helpful? Give feedback.
-
If this helps the latest |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Microsoft provides special driver building tools (portable WDK + MSVC build tools), called EWDK (https://learn.microsoft.com/en-us/Windows-hardware/drivers/download-the-wdk - here Enterprise WDK)
The problem is, that VCPKG cannot see it and unable to use it, forcing me to install separate set of build tools on a build machine specially for VCPKG.
Environment
To Reproduce
Steps to reproduce the behavior:
Get a clear VM, download EWDK, start EWDK shell, download VCPKG, try to install any package via VCPKG.
Get an error that "No visual studio instance was found"
Expected behavior
I expect VCPKG to find and use EWDK for building packages, or, at least, a way to manually tell VCPKG where to find EWDK
Failure logs
Error: in triplet x64-windows-static-md: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance
Additional context
I think it's should be possible to trick VCPKG somehow that EWDK is actually a MSVC installed, by creating some symlinks in C:\program files, but I'm too lazy to do it.
Beta Was this translation helpful? Give feedback.
All reactions