##To Install libwkhtmltox
- Clone the wkhtmltopdf repo
git clone --recursive https://github.com/wkhtmltopdf/wkhtmltopdf.git
- You need the fpm gem to install
sudo gem install fpm --no-ri --no-rdoc
- it will be installed in/usr/bin
so make sure that's in your path. - Checkout the latest release tag IE
git checkout tags/0.12.2.
- In the directory and run
scripts/build.py osx-cocoa-x86-64
(this will take a while! You're building Qt) - If you get an error like:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: bin/libwkhtmltox.0.12.2.2.dylib (No such file or directory)
all you need to do is match the version in theVERSION
file in the base directory to the number betweenlibwkhtmltox.
and.dylib
of the compiled file instatic-build/osx-cocoa-x86-64/app/bin
- If you're not on OS X, refer to
INSTALL.md
in thewkhtmltopdf
repo for build instructions. - This should put the linked library in your path!
sudo gem install fpm --no-document
for recentruby