Skip to content

fix: link the system libheif and require the HEVC decoder plugin - #122

Open
hojjatabdollahi wants to merge 1 commit into
pop-os:masterfrom
hojjatabdollahi:hojjat/fix-heic
Open

hojjatabdollahi wants to merge 1 commit into
pop-os:masterfrom
hojjatabdollahi:hojjat/fix-heic

Conversation

@hojjatabdollahi

Copy link
Copy Markdown

The embedded-libheif feature of libheif-rs compiles a static libheif but emits a plain -lheif, so the final link picks whichever libheif the search path reaches first. In the Pop build chroot that is the system libheif.so, because libheif-dev is a build dependency. So the package depends on libheif1, but libheif1 only "Suggests" libheif-plugin-libde265, so clean installs have no HEVC decoder. Local builds behave differently again,which made this hard to see.

I'm dropping the embedded-libheif feature and link the system libheif via pkg-config. libheif-rs requires >= 1.17 and noble has 1.17.6 and resolute 1.21.2, so both should be good and added libheif-plugin-libde265 as a dependency (shouldn't have a licensing issue).

Note: the viewer still discards this error and falls back to the empty state. It should surface the issue, maybe even suggest installing the required plugin if it's missing.


  • I have not included any LLM (also known as AI) generated content in this PR, including code, comments, and descriptions.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.
  • I have read and followed all of the above requirements. For more information, see our contributor guide.

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.

1 participant