oSumAtrIX / DownOnSpot

🎧 A Spotify music and playlist downloader working with free Spotify accounts written in Rust
https://osumatrix.me
GNU General Public License v3.0
548 stars 45 forks source link

Cannot compile M1 Mac #71

Closed ncc-hyperion closed 5 months ago

ncc-hyperion commented 5 months ago

I'm trying to compile on my M1 Mac, after successfully doing so on my old Intel Mac, however I've getting the following error when trying to compile:

I've omitted my username with '***'

It hangs here:

Building [=======================> ] 379/380: down_on_spot(bin) 

`*** DownOnSpot % cargo build --release
warning: dependency (librespot) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions
warning: unused manifest key: dependencies.librespot.librespot
   Compiling down_on_spot v0.2.5 (/Users/***/DownOnSpot)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/Users/***/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/***/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/lv/6_n3sl5n2fq2jh531ydvhz6h0000gn/T/rustclcxuY7/symbols.o" "/Users/***/DownOnSpot/target/release/deps/down_on_spot-7e9eae03574ee401.down_on_spot.fb9b4cdaac03eefe-cgu.0.rcgu.o" "-L" "/Users/***/DownOnSpot/target/release/deps" "-L" "/Users/***/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/***/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-6dcfe245e3c1f496.rlib" "-lmp3lame" "-framework" "SystemConfiguration" "-framework" "Security" "-framework" "AudioUnit" "-framework" "CoreAudio" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/***/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/***/DownOnSpot/target/release/deps/down_on_spot-7e9eae03574ee401" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: library 'mp3lame' not found
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `down_on_spot` (bin "down_on_spot") due to previous error
*** DownOnSpot % 
`
oSumAtrIX commented 5 months ago

refer to the README section regarding mp3lame or https://github.com/oSumAtrIX/DownOnSpot/issues/63