-
Notifications
You must be signed in to change notification settings - Fork 87
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
how to build mupdf static library in window platform #87
Comments
As a supplement, I am solving this problem #83. I can not get a mupdf static library. |
All static libraries are cross compiled on Linux. Mingw toolchain for Windows and Osxcross for macOS. For me it is much easier to build everything in Linux, I don't even know how to build something in Windows. |
I guess you can use WSL and install Mingw there, instead of using the VS. |
May I ask how to cross-compile mupdf on linux, where files need to be changed? |
This is the bash script I am using to build everything, hope it can help you. |
Of course, I have a patch that disables CJK fonts, static library is by default 50M, and without CJK fonts is 5M. |
Thank you very much. |
If your goal is to build with CJK fonts, you don't need the patch, it just modifies Makefile/Makerules and some define in the header file. The default build should work for you. |
I'm sorry I didn't understand what you mean, I'm directly referencing the latest go-fitz in go.mod now, but I still have CJK problems. Do you mean that the go-fitz default version can solve this problem, or do you mean that I just need to compile the default build of the mupdf static library. |
It is not related to go-fitz. For CJK, all you need is |
I saw that there is a libmupdf_windows_386.a file under the libs folder in this project, but the build tutorial on the mupdf web is using visual studio. So how did you build the file libmupdf_windows_386.a?
The text was updated successfully, but these errors were encountered: