Using WinUI with MinGW toolchains #3532
Replies: 1 comment 5 replies
-
There are two points that I wish to add. |
Beta Was this translation helpful? Give feedback.
-
There are two points that I wish to add. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With C++/WinRT adding support for various MinGW toolchains (both Clang/LLVM and GCC), using WinUI with MinGW is now possible.
Modern MinGW toolchains that links to the Universal C Runtime is recommended, also you'll need a toolchain that is relatively new. (GCC 12 and Clang/LLVM 15 from MSYS2 are tested.)
Note there is no working XAML compiler and MIDL 3.0 compiler for MinGW, so certain features will not work. {x:Bind} and initializing custom classes from XAML (like ValueConverters, UserControls) are two examples of that.
Here are two samples:
System XAML (Windows.UI.Xaml) with XAML islands, but no WinUI 2:

https://github.com/driver1998/XamlMinGW
WinUI 3 / Windows App SDK:

https://github.com/driver1998/WinUI-MinGW
Beta Was this translation helpful? Give feedback.
All reactions