webview / webview_go

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

Compilation prompts missing files #40

Open jingguang0818 opened 3 months ago

jingguang0818 commented 3 months ago

` PS D:\gitee.com\go\go-webview> go build -ldflags="-H windowsgui"

github.com/webview/webview_go

In file included from D:/goRely/goPath/pkg/mod/github.com/webview/webview_go@v0.0.0-20240220051247-56f456ca3a43/libs/webview/include/webview.h:2076, from webview.cc:1: D:/goRely/goPath/pkg/mod/github.com/webview/webview_go@v0.0.0-20240220051247-56f456ca3a43/libs/mswebview2/include/WebView2.h:978:10: fatal error: EventToken.h: No such file or directory

include "EventToken.h"

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

compilation terminated. PS D:\gitee.com\go\go-webview> `

gcc version 8.1.0 (x86_64-posix-sjlj-rev0, Built by MinGW-W64 project)

shuwenkai commented 2 months ago

you need update mingw version. I have encountered the same problem as you, this issue proposed a solution. image

https://github.com/webview/webview/issues/1036

mingw download url: https://www.mingw-w64.org/downloads/