Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.sh failing with heif support #98

Open
musicjerm opened this issue Jan 28, 2023 · 1 comment
Open

build.sh failing with heif support #98

musicjerm opened this issue Jan 28, 2023 · 1 comment

Comments

@musicjerm
Copy link

When compiling on MacOS with heif support I received the following error:
invalid flag in pkg-config --cflags: -I@CMAKE_INSTALL_PREFIX@/include

I was able to work around this by prepending the final line in build.sh with:
CGO_CFLAGS_ALLOW='-I@CMAKE_INSTALL_PREFIX@/include' go build -tags ...

I'm not sure if this is a proper solution to this error, but wanted to post here in case someone else runs across the issue. I came up with this after reading here.

@dltacube
Copy link
Collaborator

dltacube commented Feb 5, 2024

I think as long as the output from build.sh says it's built with heif support then you're good. Here's mine:

libheif found in /usr/local/lib, compiling with heif support

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

No branches or pull requests

2 participants