Skip to content
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

Building on Windows #77

Open
NeoLegends opened this issue Apr 24, 2016 · 3 comments
Open

Building on Windows #77

NeoLegends opened this issue Apr 24, 2016 · 3 comments

Comments

@NeoLegends
Copy link

NeoLegends commented Apr 24, 2016

Even after a couple hours of trying, I still cannot get this library to build on Windows (Rust Nightly 1.10 64-bit GNU). So far I've got the following:

  • Build environment using MSYS2 + MinGW 64
  • Protobuf binaries compiled from sources
  • PortAudio binaries from Github Repo somewhere

Right now I'm having trouble building librespot-protocol, respectively linking against libz (can't find the .dll, linker option: -lz). Using the one from zlib.net doesn't work, because it's not 64-bit, and I'd prefer having a 64-bit executable in the end.

Has anybody tried building librespot on Windows recently? Any ideas on how to do this?

@jscholes
Copy link

jscholes commented Nov 6, 2016

Anybody made any progress with this?

@plietar
Copy link
Owner

plietar commented Nov 24, 2016

I've been working on a (partial) rewrite which, among other things, should support windows (got rid of protobuf and portaudio dependencies). I've just pushed it branch v0.2. You'll probably need a nightly rust to try it.

I've only tried cross compiling using mingw. The audio wasn't completely smooth on my vary slow VM, but it should be alright on a real machine.

There's probably some rough edges. Seeking and caching don't work yet. Oh and the AP is hardcoded to London, change https://github.com/plietar/librespot/blob/v0.2/src/connection/mod.rs#L68 if you don't live around there (use the first value from https://apresolve.spotify.com/).

If your run into any issues, please let me know, preferably on gitter rather than creating a new issue since this is still a WIP.

@sophof
Copy link

sophof commented Nov 27, 2016

[edit] Never mind, didn't check out v0.2, so I was using master, oops...

Cross compilation works for me from ubuntu vm to windows 10, using mingw-gcc.

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

No branches or pull requests

4 participants