emk / subtitles-rs

Use SRT subtitle files to study foreign languages (in progress)
Apache License 2.0
304 stars 32 forks source link

Can't build latest version on Linux Mint #7

Closed rdearman closed 7 years ago

rdearman commented 7 years ago

error: could not find native static library uchardet, perhaps an -L flag is missing?

Build failed, waiting for other jobs to finish... error: failed to compile substudy v0.4.1-pre.1, intermediate artifacts can be found at /tmp/cargo-install.tvoajIvp9IEE

Caused by: Could not compile uchardet-sys.

To learn more, run the command again with --verbose.

emk commented 7 years ago

I've built it on Linux in the last few weeks. Maybe try double-checking the readme for instructions related to cake and uchardet-sys?

rdearman commented 7 years ago

hummm... I thought the problem might be I'm using a 64 bit machine? I could only find the library uchardet in /usr/lib/x86_64-linux-gnu/

So after a lot of mucking about I eventually found the problem and this fixed the problem:

sudo apt-get install uchardet libuchardet-dev

Might want to add to the instructions.