Skip to content

Instantly share code, notes, and snippets.

@pmdarrow
Created August 22, 2012 17:40
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save pmdarrow/3427827 to your computer and use it in GitHub Desktop.
Save pmdarrow/3427827 to your computer and use it in GitHub Desktop.
How to compile wkhtmltopdf static binary on Ubuntu 12.04
# These instructions were tested on Ubuntu 12.04 64bit
# Be prepared to wait a while...
sudo apt-get install openssl build-essential xorg libssl-dev libxrender-dev libxext-dev libpq-dev libx11-dev
git clone git://github.com/antialize/wkhtmltopdf.git
git clone git://gitorious.org/+wkhtml2pdf/qt/wkhtmltopdf-qt.git wkhtmltopdf-qt
cd wkhtmltopdf
mkdir static-build
ln -s ../wkhtmltopdf-qt static-build/qt
./scripts/static-build.sh
@ntha314159
Copy link

The gitorious library has changed to git://gitorious.org/~antialize/qt/antializes-qt.git

@rrshaban
Copy link

rrshaban commented May 9, 2017

If you'd explain what you did, I could try to reproduce! But all these links are dead 😢

@olivervbk
Copy link

Seems the repo has changed to: https://github.com/wkhtmltopdf/wkhtmltopdf

And the build example (available at https://github.com/wkhtmltopdf/wkhtmltopdf/blob/master/INSTALL.md) does not seem to work on Ubuntu (16.04) because it's tightly related to CentOS 6...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment