-
Notifications
You must be signed in to change notification settings - Fork 97
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
vendor/github.com/gen2brain/go-fitz/fitz.go:9:10: fatal error: 'mupdf/fitz.h' file not found #48
Comments
Seems you are trying to use both vendor and extlib? Remove vendor, it will not copy all necessary files. If you want to pass additional LDFLAGS/CFLAGS that is done by using CGO_CFLAGS and CGO_LDFLAGS. You can search issues to see how it is done in Dockefile if you want to use an external library. |
Btw. you can use an external library, that is why there is a tag for that, not sure how you understood that the bundled library is the only way.
Did you install static only library? In that case also add |
Right, so brew installs only static libraries, this is from Catalina VM but probably the same on your OS.
|
Hello there
May be this case was already treated but I can't find a way around this. I am trying to compile a basic example using this library but nothing seems to work. this is the command I use
go build -tags "extlib" -o bin/sample main.go
.Of course I installed mupdf first using homebrew (I am on macos) but the build does not work. I also tried to add env variable such as
LIBRARY_PATH
orLDFLAGS
but with no result. the basic example I am trying to compile is the one on the project page. Based on what I have understood the could be a way to build just by using the bundled library..any leads that can point me to the right direction ?
thanks for the help.
The text was updated successfully, but these errors were encountered: