kornelski / pngquant

Lossy PNG compressor — pngquant command based on libimagequant library
https://pngquant.org
Other
5.25k stars 486 forks source link

no matching package named `imagequant-sys` found #393

Closed Des-Nerger closed 2 years ago

Des-Nerger commented 2 years ago

I've done:

$ git clone --recursive https://github.com/kornelski/pngquant.git
$ cd pngquant
$ git checkout tags/2.17.0
$ cargo build --release

and got:

    Updating crates.io index
error: no matching package named `imagequant-sys` found
location searched: /media/c/Documnts/src/pngquant/lib
required by package `pngquant v2.17.0 (/media/c/Documnts/src/pngquant)`

What's wrong here? My rustc version is 1.55.0 (in case it matters), which conforms to the requirements in the pngquant v2.17.0's INSTALL instructions.

Des-Nerger commented 2 years ago

Oh, I got it; my bad. I should have also done (cd lib && git checkout tags/2.17.0) before building. The issue is resolved.

kornelski commented 2 years ago

yeah, after checkout git submodule init is needed. Submodules are terrible ;(