← All tasks
cppleejet/stable-diffusion.cpp #1399Not a task: already works

Don't require cmake files when using system webp and webm, use PkgConfig instead

envgap__leejet__stable-diffusion.cpp-1399

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
8afbeb6ba9702c15d41a38296f2ab1fe5c829fa0
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

leejet/stable-diffusion.cpp #1399 · read the original issue
libwebp and libwebm system libraries can used instead of the bundled/vendor copies, which is great.

However, the CMake files must be installed on the system to use the system libraries, and those files are not always installed. Specifically, libwebp can be built using autotools or CMake, and since the CMake files are only installed when using CMake , if libwebp is built using autotools, no cmake files are installed.

For example, Gentoo doesn't install the CMake files for webp because it uses autotools for this package. See https://bugs.gentoo.org/937031 for details.

The standard way to use libraries is with PkgConfig - this approach will always work. For libwebp: `pkg_check_modules(WebP REQUIRED libwebp)`

FYI @wbruna
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]