From 7b5720137cef833476d4015cce6402e3c272ccad Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 10 Jun 2015 10:49:13 +0100 Subject: Update make instructions in examples to allow for crypto lib. If libcrypto is installed then the Make system will cause HAVE_OPENSSL to be defined during the build. This pulls in dependencies on libcrypto, so this needs to be included in the link. --- docs/example.c | 3 +++ docs/multi-threaded.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/example.c b/docs/example.c index 71506c9e..257e17f9 100644 --- a/docs/example.c +++ b/docs/example.c @@ -9,6 +9,9 @@ // build/debug/libmujs.a \ // build/debug/libz.a -lm // +// (If this fails with errors about missing BIO_ and X509_ references +// try again with "-lcrypto" added to the end of that command). +// // build/debug/example /path/to/document.pdf 1 200 25 // Include the MuPDF header file. diff --git a/docs/multi-threaded.c b/docs/multi-threaded.c index f0432b07..98932819 100644 --- a/docs/multi-threaded.c +++ b/docs/multi-threaded.c @@ -20,6 +20,9 @@ // build/debug/libmujs.a \ // build/debug/libz.a -lpthread -lm // +// (If this fails with errors about missing BIO_ and X509_ references +// try again with "-lcrypto" added to the end of that command). +// // build/debug/example-mt /path/to/document.pdf // // Caution! As all pages are rendered simultaneously, please choose a -- cgit v1.2.3