From 7b9ab21f20458e25c5502726acb1ea378423797e Mon Sep 17 00:00:00 2001 From: Marek Goc Date: Tue, 17 Oct 2023 21:56:58 +0200 Subject: [PATCH] readme update --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 72d0484..86f1151 100644 --- a/README.md +++ b/README.md @@ -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 ### ---------------------------------------------------------------------------------------