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

make fails on MacOS Ventura with file not found #767

Open
cybertosher opened this issue May 13, 2023 · 3 comments
Open

make fails on MacOS Ventura with file not found #767

cybertosher opened this issue May 13, 2023 · 3 comments

Comments

@cybertosher
Copy link

I am trying to compile from source on MacOS Ventura. I use MacPorts and have no desire to install Homebrew again. The process works fine until the make build phase and then fails with a file not found error.

# github.com/tidbyt/go-libwebp/webp
../../go/pkg/mod/github.com/tidbyt/[email protected]/webp/anim_decode.go:7:10: fatal error: 'webp/demux.h' file not found
#include <webp/demux.h>
         ^~~~~~~~~~~~~~
1 error generated.
make: *** [build] Error 1

Any way to fix this?

@tavdog
Copy link
Contributor

tavdog commented May 25, 2023

I'm getting the same error.

@mattbroussard
Copy link
Contributor

I'm getting the same trying to build on Monterey 12.6.7. I have libwebp installed via Homebrew (brew install webp) which seems to have put it at /opt/homebrew/Cellar/webp/1.3.1 but I'm not sure how to tell cgo where to find it.

@mattbroussard
Copy link
Contributor

Aha, this worked:

export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
make build

Found it here: #39 (comment)

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

No branches or pull requests

3 participants