kornelski / dssim

Image similarity comparison simulating human perception (multiscale SSIM in Rust)
https://kornel.ski/dssim
GNU Affero General Public License v3.0
1.07k stars 69 forks source link

How do I install dssim.h into the prefix? #139

Closed intractabilis closed 1 year ago

intractabilis commented 1 year ago

Building GStreamer 1.22 gives the following error:

../gstreamer/subprojects/gst-plugins-bad/ext/iqa/iqa.c:67:10: fatal error: dssim.h: No such file or directory
   67 | #include "dssim.h"
      |          ^~~~~~~~~

I am not familiar with Rust, and your README.md doesn't provide any details on how to install the library and the C header files into the prefix. Can you provide details on how to fix the error above?

kornelski commented 1 year ago

Rust doesn't even know headers exist and has no support for installing anything C-related. You need to copy the C header yourself wherever your OS/compiler wants it.

kornelski commented 1 year ago

https://github.com/kornelski/dssim/commit/a856bfa31c749f1239e8ad45332884a8f3c04bcb

intractabilis commented 1 year ago

Rust doesn't even know headers exist and has no support for installing anything C-related.

I never assumed it does. Thank you for updating README.md.