Polochon-street / blissify-rs

bliss bindings for MPD.
30 stars 6 forks source link

Fail to compile (fedora 37) #35

Closed kbridger closed 1 year ago

kbridger commented 2 years ago

I'm following the installation instructions from https://crates.io/crates/blissify and the compilation is failing. I'm not familiar with rust of blissify beyond being a huge fan of blissify. I had this running on F36, but F37 seems to fail. Might just be because I haven't got a correct Fedora dependency installed yet.

My basic knowledge says it can't find limits.h, but I've confirmed the file exists. Should I be using sudo to build the tool?

Pastebin: https://pastebin.com/UcKywNMZ

  --- stderr
  /usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
  /usr/include/limits.h:124:16: fatal error: 'limits.h' file not found, err: true
  thread 'main' panicked at 'Unable to generate bindings: ()', /home/kirk/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg-sys-next-5.1.1/build.rs:1290:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `blissify v0.3.3`, intermediate artifacts can be found at `/tmp/cargo-installiTZ8JQ`
Polochon-street commented 2 years ago

Hi! It seems that you hit this https://github.com/meh/rust-ffmpeg-sys/issues/62, which would be solved by installing clang. Let's see if this works for you, otherwise I'll try to reproduce :)

kbridger commented 2 years ago

This did get me further (sudo dnf install clang). Now it is complaining about sqlite3 I believe. Not sure what package to install for this. Tried dnf install sqlite with no change to the error (installed sqlite-3.40.0-1). Any further suggestions appreciated!

  = note: /usr/bin/ld: cannot find -lsqlite3: No such file or directory
          collect2: error: ld returned 1 exit status

error: could not compile `blissify` due to previous error
error: failed to compile `blissify v0.3.3`, intermediate artifacts can be found at `/tmp/cargo-installPaFnk1`
kbridger commented 2 years ago

Ah, I installed sqlite-devel and that seems to have worked - looks like everything compiled! Thanks!

Polochon-street commented 2 years ago

Awesome! Could you perhaps write down the exact packages you installed / commands you ran to get it to work, so I could add it to the readme? :)

kbridger commented 1 year ago

Sorry I wasn't notified about your reply, or I might have forgotten.

If I recall correctly it was just clang and sql-devel, and the 'history' command doesn't show anything else. Thanks again for your help!