-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error C1083: Cannot open include file: 'windows.h': No such file or directory #139
Comments
The latest WDK requires Windows SDK 10.0.26100, you may try add |
But windows.h is not there in this version and the issue only happens when we install wdk, without wdk it works |
By default, Windows SDK 10.0.22621 is installed. If you install WDK also, directory 10.0.26100.0 is also created but only contains WDK not SDK. And wrappers always choose the maximum version. |
Yes, that's the issue. Any idea how to fix it? |
WDK and SDK version must match, so |
Ah! Makes sense now. But one more thing, even if I use the older wdk link which is there in the workflow file, I still get the same issue. But it works on Ubuntu image on github actions. I'm using a Debian container and get same missing Windows.h something weird is happening |
Hi @huangqinjin after merging your pull request, the issue persists.
this time it could select the correct SDK version as I specified in the command line. python3 vsdownload.py --accept-license \
--dest ${MSVC_HOME} \
--host-arch x64 \
--architecture x86 x64 \
--sdk-version 10.0.22621.0 \
--cache /tmp/msvc \
--with-wdk-installers /tmp/wdk/Installers; \
bash install.sh ${MSVC_HOME}; |
So instead of specifying the Updated command: python3 vsdownload.py --accept-license \
--dest ${MSVC_HOME} \
--host-arch x64 \
--architecture x86 x64 \
--msvc-version 17.11 \
--cache /tmp/msvc \
--with-wdk-installers /tmp/wdk/Installers; \
bash install.sh ${MSVC_HOME}; |
New issue, there is no |
Update: the issue is resolved, seems there was an issue with the downloaded files.
python3 ./vsdownload.py --accept-license \
--dest ${MSVC_HOME} \
--host-arch x64 \
--architecture x86 x64 \
--with-wdk-installers /tmp/wdk/Installers; All tests passed as well. |
When using the latest WDK, there are 2 (10.x) directories. The fixincludes or lowercase script does not create appropriate changes.
Failing action: https://github.com/hacksysteam/msvc-wine/actions/runs/10872722342/job/30168067508
Diff: hacksysteam@9978f9c?diff=split&w=0
The text was updated successfully, but these errors were encountered: