webview / webview

Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).

Home Page:https://webview.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal error: EventToken.h: No such file or directory

zuikov-yuriy opened this issue · comments

Help me, pls.
I installed tdm-gcc-webdl.exe and winsdk.

PS D:\DEV\GO\src\my-project> go get -u
go: finding github.com/webview/webview_go latest
github.com/webview/webview_go
In file included from D:/DEV/GO/pkg/mod/github.com/webview/webview_go@v0.0.0-20230901181450-5a14030a9070/libs/webview/include/webview.h:1132,
from webview.cc:1:
D:/DEV/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
978 | #include "EventToken.h"
| ^~~~~~~~~~~~~~
compilation terminated.

how do I run a project ?

Please see the MinGW-w64 requirements in the project readme file. You either need a toolchain that provides EventToken.h, or you need to provide it yourself.

Hello everyone, everything good?

What would be needed to resolve this "EventToken.h: No such file or directory" problem?

I installed mingw64 but it still has problems.

I use Windows 11 64bit

@SteffenL
@zuikov-yuriy

@faelp22 I would like to refer to my comment above in case you missed it.

Thank you, I solved it by seeing this WinLibs the other comment, so I just had to download the ZIP and point it in the system Path.

image