As far as I know, they just decided to unbloat the codebase of the official 
webview/webview repo (and thus removed all non purely webview-related 
functionality.

Regarding Windows & Linking that's exactly what I've been struggling with since 
yesterday.

Basically, I've set up different CI workflows (macOS, Linux & Windows), and 
it's Windows as usual the one that bugs me the most. I've managed to solve 
different issues, now here's where I'm stuck (obviously, this **cl** that 
doesn't accept gcc style arguments for the linking stage, so I'm trying to 
figure out how to do it):
    
    
    cl : Command line warning D9002 : ignoring unknown option '-lstdc++'
    cl : Command line warning D9002 : ignoring unknown option '-mwindows'
    cl : Command line warning D9002 : ignoring unknown option '-L./dll/x64'
    cl : Command line warning D9002 : ignoring unknown option '-lwebview'
    cl : Command line warning D9002 : ignoring unknown option '-lWebView2Loader'
    webview.cc.obj : error LNK2019: unresolved external symbol 
CreateCoreWebView2EnvironmentWithOptions referenced in function "public: 
virtual bool __cdecl webview::edge_chromium::embed(struct HWND__ *,bool,class 
std::function<void __cdecl(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >)>)" 
(?embed@edge_chromium@webview@@UEAA_NPEAUHWND__@@_NV?$function@$$A6AXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z@std@@@Z)
    D:\a\nim-webview\nim-webview\test.exe : fatal error LNK1120: 1 unresolved 
externals
    Error: execution of an external program failed: 'vccexe.exe  
--platform:amd64 /FeD:\a\nim-webview\nim-webview\test.exe  
C:\Users\runneradmin\nimcache\test_d\webview.cc.obj 
C:\Users\runneradmin\nimcache\test_d\stdlib_digitsutils.nim.c.obj 
C:\Users\runneradmin\nimcache\test_d\stdlib_dollars.nim.c.obj 
C:\Users\runneradmin\nimcache\test_d\stdlib_io.nim.c.obj 
C:\Users\runneradmin\nimcache\test_d\stdlib_system.nim.c.obj 
C:\Users\runneradmin\nimcache\test_d\@mwebview.nim.c.obj 
C:\Users\runneradmin\nimcache\test_d\@mtest.nim.c.obj  /nologo  -lstdc++ 
-mwindows -L./dll/x64 -lwebview -lWebView2Loader   '
    
    
    Run

Anybody who knows more about how this thing could work on Windows is more than 
welcome to help! :)

Here's the workflow (Windows) in question: 
<https://github.com/drkameleon/nim-webview/blob/main/.github/workflows/windows.yml#L39-L66>

Reply via email to