readme update

This commit is contained in:
Marek Goc 2023-10-17 21:56:58 +02:00
parent a2afec1fdc
commit 7b9ab21f20
1 changed files with 6 additions and 1 deletions

View File

@ -5,10 +5,15 @@ This is just fork from github repository. Forked in order to recompile with new
Whenever you have problem with compability you can download source package from [Mupdf source](https://mupdf.com/downloads/archive/mupdf-1.23.0-source.tar.gz) after simply run ``` make``` to compile on your platform. When this is completed just simply copy following files:
- ```libmupdf.a``` ==> ```libs/libmupdfthird_linux_amd64.a```
- ``` libmupdf.a``` ==> ```libs/libmupdfthird_linux_amd64.a```
- ```libmupdf-third.a``` ==> ```libs/libmupdf_linux_amd64.a```
Part of file name 'linux_amd64' maens OS and platform.
### Musl Compilation
To compile for linux musl you can use docker and just simply run following command from CLI
- ```docker run --rm -v ./:/mupdf -it alpine:latest sh -c "apk update; apk add alpine-sdk; cd /mupdf;apk add freeglut-dev libxrandr-dev; make clean ;make; chown -R 1000:1000 ./build; mkdir ./musl; cp ./build/release/libmupdf.a ./musl/libmupdf_linux_amd64_musl.a; cp ./build/release/libmupdf-third.a ./musl/libmupdfthird_linux_amd64_musl.a"```
##### Notice that you need to compile MuPdf source for OS and platform you want to use
### ---------------------------------------------------------------------------------------