-
Notifications
You must be signed in to change notification settings - Fork 491
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
Fix for FreeBSD #1724
Fix for FreeBSD #1724
Conversation
Without this change I'm getting an exception trying to do ``` >>> import fitz ```
Please try again with the latest release! |
But what did change? It still doesn't add "freetype" and "harfbuzz" into libraries. I fixed merge conflicts. |
Thanks for this suggested change. Unfortunately i don't have access to a freebsd machine so am unable to test it. The PR doesn't seem to have a commit that patches the current master, so it's a little tricky to see exactly what's going on. Could you rebase your branch on top of the latest master? I think it might be good to make your change only apply when building on freebsd. So maybe a patch like this would work?:
|
@julian-smith-artifex-com your diff shows exactly what my change is doing. |
@julian-smith-artifex-com would you like me to close my PR in favor of yours? |
Ok, in that case, could you try applying my diff to current master (removing your changes and merges), and verify that it works on your freebsd machine? If all is ok, i'll apply my patch to the tree. [This will avoid the need for a signed contributor license agreement in this case.] |
Ah, sorry, our postings crossed. Yes, that sounds like the simplest way forward. If you could verify it works, that would be a bonus. |
I'll mention you in the commit message. BTW if you prefer, i'd be happy to merge a pull request with you signing a contributor license agreement. |
@julian-smith-artifex-com thank you, I don't think we need to complicate it by the agreement. I'll test the build and let you know. |
OK, I've tested fresh master and system installed mupdf 1.20.0. Without the change I'm getting
With this change
it works fine
|
Great, thanks for testing. I'll push the fix to master soon. |
We need to explicitly link with the system's freetype and harfbuzz libraries. Thanks to Denis Shaposhnikov (@dsh2dsh) for investigating this.
Without this change I'm getting an exception trying to do