You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a screenshot of the file on my local system:
The associated verbose build output:
TERM='dumb' x86_64-w64-mingw32-g++ -I . -m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/b500=/tmp/go-build -gno-record-gcc-switches -I $WORK/b500/ -I/nix/store/57s2nhck96xz82vpdq92jkii9c1q2bdq-mingw-w64-x86_64-w64-mingw32-11.0.1-headers/include -I/home/user/go/pkg/mod/github.com/webview/webview_go@v0.0.0-20240220051247-56f456ca3a43/libs/webview/include -DWEBVIEW_STATIC -DWEBVIEW_EDGE -std=c++14 -I/home/user/go/pkg/mod/github.com/webview/webview_go@v0.0.0-20240220051247-56f456ca3a43/libs/mswebview2/include -frandom-seed=Isb35zOTZ8oW2P-K900j -o $WORK/b500/_x004.o -c webview.cc
# github.com/webview/webview_go
In file included from /home/user/go/pkg/mod/github.com/webview/webview_go@v0.0.0-20240220051247-56f456ca3a43/libs/webview/include/webview.h:2076,
from webview.cc:1:
/home/user/go/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
978 |#include "EventToken.h"| ^~~~~~~~~~~~~~
compilation terminated.
The important part in the above output is the additional header location added via -I/nix/store/57s2nhck96xz82vpdq92jkii9c1q2bdq-mingw-w64-x86_64-w64-mingw32-11.0.1-headers/include, so that eventtoken.h will be available for include.
It looks like the convention for referencing the "EventToken.h" header with the mingw-64 compilation toolchain, is to use lowercase, e.g. <eventtoken.h>. The Windows API docs itself also refers to this header in lowercase. However, searching GitHub, I can see that both variants are used.
@SteffenL Do you have insight in how WebView2.h is generated and whether somewhere in the process a lowercase include of eventtoken.h can be used (if not for every toolchain, then specifically for the mingw toolchain)?
@SteffenL Sorry for bringing this up again, because I know you have answered this question so many times:
I have a suggestion that might add better support for mingw64. Here are a few examples I want to present:
Here is a screenshot of the file on my local system:
The associated verbose build output:
The important part in the above output is the additional header location added via
-I/nix/store/57s2nhck96xz82vpdq92jkii9c1q2bdq-mingw-w64-x86_64-w64-mingw32-11.0.1-headers/include, so thateventtoken.hwill be available for include.It looks like the convention for referencing the
"EventToken.h"header with the mingw-64 compilation toolchain, is to use lowercase, e.g.<eventtoken.h>. The Windows API docs itself also refers to this header in lowercase. However, searching GitHub, I can see that both variants are used.What I'm trying to figure out, is whether this generated file (https://github.com/webview/webview_go/blob/master/libs/mswebview2/include/WebView2.h) could somehow be patched to use a lowercase include of
eventtoken.h, and whether that would still work for non-mingw builds.@SteffenL Do you have insight in how WebView2.h is generated and whether somewhere in the process a lowercase include of
eventtoken.hcan be used (if not for every toolchain, then specifically for the mingw toolchain)?