goheif
goheif copied to clipboard
Can't build for MacOS amd64/arm64
Hi! I am trying to build app (php-heic-to-jpg) on linux (Ubuntu) for MacOS and getting error for both architectures
ios/amd64
Command:
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o "bin/heicToJpg-ios-amd64" github.com/MaestroError/php-heic-to-jpg
Error:
# runtime/cgo
gcc: error: x86_64: No such file or directory
gcc: error: unrecognized command line option '-arch'
ios/arm64
Command:
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o "bin/heicToJpg-ios-arm64" github.com/MaestroError/php-heic-to-jpg
Error:
# runtime/cgo
gcc: error: arm64: No such file or directory
gcc: error: unrecognized command line option '-arch'
Please, tell me If you will need any other information about the error from me. I am sure we can solve this problem :+1: