Skip to content

Libheif's cmake does not provide its own library dependencies to build libheif examples (-DWITH_EXAMPLES=on) #1694

@bobfriesenhahn

Description

@bobfriesenhahn

Based on the GraphicsMagick oss-fuzz build, the dependencies declared by pkg-config for libheif are sufficient to statically link for all dependencies except for vvdec and vvenc. That is pretty good.

What is not good is that if vvdec and vvenc are not included in the build, using the option -DWITH_EXAMPLES=on still fails to link in a static build. It is observed that none of the declared build dependencies except for libheif itself are applied. This could only work if libheif is a shared library, and all involved shared libraries have correct implicit dependencies.

While the examples are not worthy of fuzz-testing, it is useful to build them in the oss-fuzz environment (or some other static build, or build lacking sufficient implicit dependencies) in order to be used as a reference when testing by hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions