plietar / librespot

Open Source Spotify client library
MIT License
1.13k stars 187 forks source link

Compilation error[E0460]: found possibly newer version of crate `log` which `librespot` depends on #264

Open zirkelc opened 6 years ago

zirkelc commented 6 years ago

After I cloned and installed librespot on my RPi3 with cargo build, I tried to run the play.rs example with the following command:

pi@raspberrypi:~/librespot/target/release $ rustc play.rs --extern librespot=liblibrespot.rlib && ./excecutable

This results in the following error:

error[E0460]: found possibly newer version of crate 'log' which 'librespot' depends on --> play.rs:1:1 1 extern crate librespot; ^^^^^^^^^^^^^^^^^^^^^^^

= note: perhaps that crate needs to be recompiled? = note: crate 'log' path #1: /home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblog-4df2ac3c730deffe.rlib = note: crate 'librespot' path #1: /home/pi/librespot/target/release/liblibrespot.rlib

error: aborting due to previous error

I don't really know what the problem is about. According to Cargo.toml, librespot has a dependency to log = "0.3.5", and the newest version is of log = "0.3.8". Do I need to update this specific crate?