nicmr / fidelitas

Rust network audio player and web client using actix and crossbeam multithreading, websockets, libvlc, and an Elm frontend.
GNU General Public License v3.0
0 stars 0 forks source link

Fix crashes on windows #31

Closed nicmr closed 4 years ago

nicmr commented 4 years ago

Software compiles for windows just fine, but now crashes at runtime without an error message.

Related: #29

nicmr commented 4 years ago

Okay so apparently Iphlpapi.lib ctds. The bindings provide no safety after all. Guess that's what you get for trying to use an unpublished crate. I'm going to switch to pnet which should be crossplatform by default.

nicmr commented 4 years ago

.... pnet apparently only builds on windows with msvc, whereas libvlc only links using MinGW >.<

Let's hope "on windows" only means "on windows" and not "for windows" and we can get away with crosscompilation.

nicmr commented 4 years ago

Turns out pnet is difficult to build for windows and requires at least lpacket and ncap.

Guess I'm just going to end up using platform-specific code after all. :disappointed: