SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install wkhtmltopdf on slack13.0 using slackbuild.
However they only seem to have source code for 13.37, which is
wkhtmltopdf-0.10.0_rc2.tar.bz2. When I run wkhtmltopdf.SlackBuild
it unpacks, untars and begins to compile and then quickly stops
with the following error message.
../lib/multipageloader.cc: In constructor 'wkhtmltopdf::ResourceObject::ResourceObject(wkhtmltopdf::MultiPageLoaderPrivate&, const QUrl&, const wkhtmltopdf::settings::LoadPage&)':
../lib/multipageloader.cc:174: error: 'class QWebFrame' has no member named 'setZoomFactor'
../lib/multipageloader.cc: In member function 'virtual QList<QNetworkCookie> wkhtmltopdf::MyCookieJar::cookiesForUrl(const QUrl&) const':
../lib/multipageloader.cc:368: error: no matching function for call to 'QList<QNetworkCookie>::append(const QList<QNetworkCookie>&)'
/usr/lib/qt-4.4.3/include/QtCore/qlist.h:414: note: candidates are: void QList<T>::append(const T&) [with T = QNetworkCookie]
make[1]: *** [../../build/multipageloader.o] Error 1
make: *** [sub-src-lib-make_default-ordered] Error 2
Is this source for slack13.37 just incompatible with slack13.0?
Is there a way to install wkhtmltopdf for 13.0?
WEEEEEELLLL, I've never heard of this program, much less know how to pronounce it: I see "html to pdf" but I have no idea what the "wk" is for.
The error also looks really odd to me as it's referencing a bunch of cookie crap that sounds like its internal.
One possible thing is the wrong version of Qt, since I see that there as well. The only way to know for sure is to check your dependency libraries: remember, 13.0 is 2 versions (soon to be 3) old: perhaps its time to upgrade? If you can wait, 14.0 should be out "relatively soon" (which, in the Slackware universe, could be next week to next month or even beyond, depending on what Pat thinks).
Sorry this isn't more help.
P.S. Since a new version happens around once a year, that means your 13.0 installation is *THREE YEARS* behind the times. Have you even updated your security fixes? Your machine may be pwned already and you don't even know!
The version of Qt (4.4.3) you have is too old to compile wkhtmltopdf as far as I can tell. The webkit widget was included with Qt 4.4, but this page suggests Qt 4.5 or greater is required. 13.37 has Qt 4.7 and 13.1 has 4.6.2, both of which should work fine. So, unless you want to compile a new Qt yourself (which would in turn require recompiling at least KDE I believe) then your best path is an upgrade to Slackware 13.1 or, preferably, 13.37.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.