Closed damywise closed 8 months ago
ππ» Hello @damywise ,
thank you very much for reporting the issue!
I am receiving the same error, still could not understand what is going on exactly, but essentially it just means that there's something missing that was not provided to swiftwinrt
which included Point
type under Windows.Foundation
namespace. It looks to me illogical to comment the -input
line when swiftwinrt flags are constructed for CMake.
π @stevenbrix excuse me for pinging, could you please shed some light on how to overcome this error?
Or please tag responsible/relevant people if possible π€
Found the reference, indeed Point
struct should be available as part of Windows.Foundation
namespace in WindowsSDK 10.17763 build.
Found out that https://github.com/thebrowsercompany/windows-samples/issues/1 already mentions this error and the solution seems to be:
this issue is due to a missing windows sdk. you should have 10.0.20348.0 installed. i realize this isn't in the pre-requisites.
Checked, confirm, it indeed fixes the error in OP.
cc @damywise
-- Running swiftwinrt...
-- swifwinrt completed
-- Configuring done (12.2s)
-- Generating done (0.0s)
-- Build files have been written to:
The problem is that WinRT repository mentions requirement Windows SDK 10.17763.0
whilst windows-samples requires 10.0.20348.0
in the README. It is confusing for a person who has 0 experience in this toolset.
This is the root cause in my opinion why @damywise and I faced this issue and probably wasted days (at least I did). I did get familiar with how CMake works though π§π»βπ
After installing https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads I was able to execute the compiled demo app!
Though, debugging in VSCode does not work still, because LLDB extensions do not support arm64. I am using Parallels Desktop to run Windows 11, thus CPU type is arm64, while Windows is running as amd64.
hey @art-divin! sorry folks for the delayed response here. thank you for the help. we should switch over to using the Contracts SDK package so that we can download the WINMDs and not require a pre-installed SDK version
I am happy to say that this error is no longer present and has been replaced with another error:
error: unknown attribute 'retroactive'
I'll probably open another issue within a few days/weeks if I can't figure out why.
@damywise this is likely because you aren't using the latest swift build from here: https://github.com/thebrowsercompany/swift-build/releases
Ah yeah I thought I installed the latest swift but apparently I'm having trouble installing it. It just said it's completed even though nothing changed.
odd, if you could uninstall and then re-install that would be great. really the generator should check for #if swift(5.11)
before writing that attribute.
I've successfully installed the latest swift build, which now the only one that actually installs for some reason. Older builds doesn't.
Still the same error though error: unknown attribute 'retroactive'
PS C:\Users\AAAS\Documents\GitHub\windows-samples> swift --version
compnerd.org Swift version 5.10-dev (LLVM 7c3b53ecaad54fb, Swift d7111290a279135)
Target: x86_64-unknown-windows-msvc
Hi, I'm trying to build the WinUI3AnimationsPreview, but I encountered an issue during
cmake --preset debug
.However, all I'm getting is an error code (1), and this is inside
swiftwinrt.log
:I'm purely guessing that either this is the problematic line, which generates this:
and removing it causes the error to go away,
or this, which doesn't generate anything in
SwiftWinRT_TEMP.rsp
. I did try changing it toWINAPP_SDK_WINMD_REF
which generates thisbut the error is still the same.
Swift version: https://github.com/thebrowsercompany/swift-build/releases/tag/20231214.3
Windows version: