Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 2 KB

INSTALL.md

File metadata and controls

32 lines (23 loc) · 2 KB

Clone this repository by running the following command:

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

If you are on Windows, make sure that you are cloning in a location without spaces/special characters in the name.

Prerequisites: Linux

Building is currently supported only on recent 64-bit Debian/Ubuntu releases. Please run scripts/setup-linux.sh as root, which will create 4 chroot environments and configure them for building properly (approx 2GB will need to be downloaded):

  • Debian-wheezy i386 (should work on Ubuntu 12.04 LTS and later)
  • Debian-wheezy amd64 (should work on Ubuntu 12.04 LTS and later)
  • CentOS-5 i386 (should work on systems where older GLIBC is present)
  • CentOS-5 amd64 (should work on systems where older GLIBC is present)

It will also setup a MinGW-w64 toolchain, which can cross-compile Windows binaries from Linux -- useful for running on Windows XP/Windows 2003, which are not supported by default when compiling with MSVC 2013.

Prerequisites: Windows

Building

Switch to the checked-out folder and run the command scripts/build.py (or scripts\build.py if you are on Windows). This will present all the options which you can build. Select the appropriate target and all the requisite output will be generated in the static-build folder.