-
Notifications
You must be signed in to change notification settings - Fork 16
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
Problems building test app #191
Comments
I'm not sure if that works for you, but as my experience, the Swift 6.0.2 needs Win11 SDK (ex. 10.0.26100). BTW, if you want to build the windows-samples app, you will not need to build the swift-winrt by self. You will get it from nuget by the PowerShell script. |
Hello @rayman-zhao . What does
|
I'm seeing that the midlrt and cppwinrt invocations are using different Windows SDK's. What do you see as the :usage
echo Syntax:
echo %~nx0 [arch] [platform_type] [winsdk_version] [-vcvars_ver=vc_version] [-vcvars_spectre_libs=spectre_mode]
echo where :
echo [arch]: x86 ^| amd64 ^| x86_amd64 ^| x86_arm ^| x86_arm64 ^| amd64_x86 ^| amd64_arm ^| amd64_arm64
echo [platform_type]: {empty} ^| store ^| uwp
echo [winsdk_version] : full Windows 10 SDK number (e.g. 10.0.10240.0) or "8.1" to use the Windows 8.1 SDK. |
Hello @tristanlabelle , the winget shows SDK from 17736 to 26100, total 7 items on my computer. But the Visual Studio installer only shows 6 items start from 18362, not 17736.
|
Hi @tristanlabelle, thanks for looking into it. I can confirm that the 17736 SDK shows up in a
I think my original problem was simply a typo in the installation instructions;
should be
It appears that the 10.0.17736 Microsoft.WindowsSDK winget package installs an SDK with version 10.0.17763:
Those package ids and version numbers certainly are confusing! After uninstalling all Windows SDKs and reinstalling the 17736 one, the build now runs to completion successfully! I created a pull request for the Readme. Thanks again for this wonderful project! |
Thanks guys. I remember now that Microsoft misnamed that version of the WinGet package. I'm updating the readme in #196 . |
Hello,
first of all, a huge thanks for the wonderful work! Swift/WinRT this is the enabler for using Swift to write modern Windows apps.
I find myself having troubles building Swift/WinRT (or rather, the test app), though. The swiftwinrt.exe is built successfully, but the test app build seems to fail.
Environment
I'm using Swift 6.0.2 (installed as per these instructions) on a Windows 11 VM running on an M1 MBP.
Prerequisites for Swift/WinRT
The 10.0.17763.0 Windows SDK referenced in the swift-winrt instructions seems to no longer be available
so I installed a newer one
updated the
CMakePresets.json
accordinglyBuilding Swift/WinRT
Setup:
Build:
Any help would be greatly appreciated. Thanks again for bringing us all this Swift goodness on Windows!
The text was updated successfully, but these errors were encountered: