Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

(Win10) Wasm server crashes on startup #2

Closed
ostwilkens opened this issue Nov 24, 2020 · 2 comments
Closed

(Win10) Wasm server crashes on startup #2

ostwilkens opened this issue Nov 24, 2020 · 2 comments

Comments

@ostwilkens
Copy link

First, small fix for readme:
cargo run --example simple --no-default-features --features use-webrtc -- --server
(missing --no-default-features)

This is the error:

PS C:\Projects-temp\bevy_networking_turbulence> cargo run --example simple --no-default-features --features use-webrtc -- --server
Finished dev [unoptimized + debuginfo] target(s) in 0.26s
Running `target\debug\examples\simple.exe --server`
error: process didn't exit successfully: `target\debug\examples\simple.exe --server` (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

STATUS_DLL_NOT_FOUND
Most definitely a windows-specific error!
It is triggered when calling net.listen. I will dig and see if I can trace it further.

@ostwilkens
Copy link
Author

I traced this down to the openssl crate. It's a bit finicky on windows.
In my case I needed to add C:\Projects\vcpkg\packages\openssl_x64-windows\bin to path.

Related reading:
sfackler/rust-openssl#1062

@smokku
Copy link
Owner

smokku commented Nov 24, 2020

--no-default-features is already fixed on master.

And yeah - OpenSSL is PITA on Windows. I don't even remember how I did configure it.

IIRC I downloaded the windows build and had to set:

OPENSSL_DIR=C:\Program Files\OpenSSL-Win64\bin
OPENSSL_INCLUDE_DIR=C:\Program Files\OpenSSL-Win64\include
OPENSSL_LIB_DIR=C:\Program Files\OpenSSL-Win64\lib

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants