OpenWebView2Loader icon indicating copy to clipboard operation
OpenWebView2Loader copied to clipboard

Build Instructions

Open theseyan opened this issue 3 years ago • 3 comments

Hi, I'm looking to statically link this loader into MinGW project, but I can't find any instructions on how to build it. Trying to build WebView2Loader.cpp, I get fatal error: 'appmodel.h' file not found. I would love some help here

theseyan avatar Aug 05 '22 06:08 theseyan

Sorry about that. I didn't set this up for MinGW yet, I'll try to take a look at it this weekend.

jchv avatar Aug 05 '22 23:08 jchv

That would be great, thank you!

theseyan avatar Aug 06 '22 06:08 theseyan

Oops, this turned out to be not as straightforward as I hoped due to the lack of proper WRL support in MinGW. With some amendments made, I now have a Makefile that makes it possible to compile with MSys2 MinGW 64. I can't guarantee too much about how well it works, though it seems to be doing roughly the same thing as the MSVC version.

This probably requires fairly cutting edge MinGW, so you would want to use an up-to-date MSys2 installation. Once you have one, the WebView2Loader.cpp file should just compile.

jchv avatar Aug 25 '22 08:08 jchv