Using WinUI with MinGW toolchains #8321
driver1998
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
can use widl(in wine) to compile .idl? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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