mautrix / imessage

A Matrix-iMessage puppeting bridge
https://go.mau.fi/mautrix-imessage/
GNU Affero General Public License v3.0
348 stars 37 forks source link

build.sh failing with heif support #98

Open musicjerm opened 1 year ago

musicjerm commented 1 year ago

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 commented 8 months ago

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