Skip to content

Instantly share code, notes, and snippets.

@lvitti
Created November 1, 2023 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvitti/d80f0f237935e1514d710b26e6b0eecd to your computer and use it in GitHub Desktop.
Save lvitti/d80f0f237935e1514d710b26e6b0eecd to your computer and use it in GitHub Desktop.
Compile wkhtmltopdf 0.12.2.1 for arm64

Download wkhtmltopdf from https://github.com/wkhtmltopdf/wkhtmltopdf

git clone --recursive https://github.com/wkhtmltopdf/wkhtmltopdf.git

Download the wkhtmltopdf packaging tool from https://github.com/wkhtmltopdf/packaging

git clone https://github.com/wkhtmltopdf/packaging

checkout the wkhtmltopdf 0.12.2.1

cd ~/wkhtmltopdf
git checkout 0.12.2.1

checkout the last version of wkhtmltopdf/qt

cd ~/wkhtmltopdf/qt
git checkout wk_4.8.7

swtich to the packaging folder

cd ~/packaging

lets build

./build --use-qemu linux/arm64/v8 package-docker --clean centos7-aarch64 ../wkhtmltopdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment