mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #30] Building on Windows #19
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/30
Sunday Apr 24, 2016 at 15:50 GMT
Originally opened as https://github.com/plietar/librespot/issues/77
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:
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?
@sashahilton00 commented on GitHub (Jan 29, 2018):
Sunday Nov 06, 2016 at 22:06 GMT
Anybody made any progress with this?
@sashahilton00 commented on GitHub (Jan 29, 2018):
Thursday Nov 24, 2016 at 23:30 GMT
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.
@sashahilton00 commented on GitHub (Jan 29, 2018):
Sunday Nov 27, 2016 at 12:37 GMT
[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.
@sashahilton00 commented on GitHub (Mar 22, 2018):
Mdns support was added, and it now compiles.