-
-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross build from mac to windows 10 cannot be launched with 'cannot find webview2loader.dll' #899
Comments
Tauri doesn't officially support windows-gnu. If you switch targets to |
@Demonthos mcvc toolchain cannot run in macOS, at least I didn't find a proper way, do you know how? |
@AllenDang Check out https://github.com/rust-cross/cargo-xwin.
|
I can confirm that it works on macOS too |
Running the suggested setup as follows on macOS: rustup target add x86_64-pc-windows-msvc
cargo install cargo-xwin
cargo xwin build --target x86_64-pc-windows-msvc ^the above requires clang and llvm to be installed or The binary compiles perfectly fine, as you can see here (running on windows): This issue may be closed. One could consider documenting these steps to cross-compile, although I'd say this is a pretty standard approach to cross-compilation when targeting msvc. Maybe one could state somewhere that Tauri does only compile for msvc target, so it is more obvious. |
This was fixed in #1681 |
Problem
I cross build from mac to windows with following command.
Launch it on windows 10 give me an error message says "cannot find webview2loader.dll".
I followed the instruction on
https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/#download-section
and installed the edge webview2 runtime.Issue persists.
Expected behavior
Application could be launched normally on windows 10.
Environment:
The text was updated successfully, but these errors were encountered: