Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to Install Wkhtmltopdf with patched Qt?

The current distribution of wkhtmltopdf in apt-get is not patched with latest version Qt, hence there are many issues in wkhtmltopdf. To solve this, we can manually install updated wkhtmltopdf from official website itself.

First, install from apt-get itself, (sudo) apt-get install wkhtmltopdf

Next, download the updated file from http://wkhtmltopdf.org/downloads.html

After extracking it, copy the binary from downloaded file, to the /usr/bin, (sudo) cp /bin/wkhtmltopdf /usr/bin/

@adamasantares

This comment has been minimized.

Copy link

@adamasantares adamasantares commented Sep 4, 2017

I got these errors

QSslSocket: cannot resolve CRYPTO_num_locks QSslSocket: cannot resolve CRYPTO_set_id_callback QSslSocket: cannot resolve CRYPTO_set_locking_callback QSslSocket: cannot resolve sk_free QSslSocket: cannot resolve sk_num QSslSocket: cannot resolve sk_pop_free QSslSocket: cannot resolve sk_value QSslSocket: cannot resolve SSL_library_init QSslSocket: cannot resolve SSL_load_error_strings QSslSocket: cannot resolve SSLv3_client_method QSslSocket: cannot resolve SSLv23_client_method QSslSocket: cannot resolve SSLv3_server_method QSslSocket: cannot resolve SSLv23_server_method QSslSocket: cannot resolve X509_STORE_CTX_get_chain QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf QSslSocket: cannot resolve SSLeay QSslSocket: cannot call unresolved function CRYPTO_num_locks QSslSocket: cannot call unresolved function CRYPTO_set_id_callback QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback QSslSocket: cannot call unresolved function SSL_library_init QSslSocket: cannot call unresolved function SSLv23_client_method QSslSocket: cannot call unresolved function sk_num

There is solution wkhtmltopdf/wkhtmltopdf#3001 (comment)

@sergej-s

This comment has been minimized.

Copy link

@sergej-s sergej-s commented Jan 11, 2018

It helped, thanks!

@kai101

This comment has been minimized.

Copy link

@kai101 kai101 commented Jan 25, 2018

A more comprehensive instructions with wkhtmltopdf 12.4
https://gist.github.com/kai101/99d57462f2459245d28b4f5ea51aa7d0

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