Skip to content

Conversation

1div0
Copy link
Contributor

@1div0 1div0 commented May 1, 2025

Description

This PR is intended to avoid the HEIF library version detection failure on the latest Nobara 41 and Fedora 41 as well as 42 distributions.

There must be a better distribution neutral way, so marking as draft.

Fixes #4732

Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>

find_path (LIBHEIF_INCLUDE_DIR
libheif/heif_version.h
libheif/heif_version-64.h
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
libheif/heif_version-64.h
NAMES libheif/heif_version.h libheif/heif_version-64.h

According to cmake docs, you can give several names to try.


if (LIBHEIF_INCLUDE_DIR)
file(STRINGS "${LIBHEIF_INCLUDE_DIR}/libheif/heif_version.h" TMP REGEX "^#define LIBHEIF_VERSION[ \t].*$")
file(STRINGS "${LIBHEIF_INCLUDE_DIR}/libheif/heif_version-64.h" TMP REGEX "^#define LIBHEIF_VERSION[ \t].*$")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll want something like

    if (EXISTS name_choice_1)
        set (heif_header name_choice_1)
    else if (EXISTS name_choice_2)
        set (heif_header name_choice_2)
    endif ()
    file(STRINGS ${heif_header_name} TMP REGEX "^#define LIBHEIF_VERSION[ \t].*$")

@lgritz
Copy link
Collaborator

lgritz commented May 21, 2025

Ping on this, @1div0

@lgritz
Copy link
Collaborator

lgritz commented Aug 1, 2025

@1div0 Re-ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] HEIF library impedance mismatch
2 participants