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.
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.