webview / webview_go

Go language bindings for the webview library.
MIT License
176 stars 27 forks source link

compilation error #20

Closed 2622594863 closed 6 months ago

2622594863 commented 6 months ago

C:/Users/26225/go/pkg/mod/github.com/webview/webview_go@v0.0.0-20230901181450-5a14030a9070/libs/mswebview2/include/WebView2.h:978:10: fatal error: EventToken.h: No such file or directory

include "EventToken.h"

      ^~~~~~~~~~~~~~

compilation terminated.

go1.20.11 windows/amd64

SteffenL commented 6 months ago

Duplicate of #8.

2622594863 commented 6 months ago

ContributorThank you for your reply. It is my first time to use GitHub. What should I download? Please let me know. It would be nice to have a download address.

SteffenL commented 6 months ago

The links are in #8 and the core webview library project's readme file. Those are simply suggestions so which one to use is up to you. I would personally recommend either WinLibs or MSYS2.

SteffenL commented 6 months ago

You can also just create your own EventToken.h file with the types used by WebView2. The file is in the Windows SDK, but also modern MinGW-w64 distributions.