-   Slackware (
-   -   wkhtmltopdf will not install on slackware13.0 (

thomasmoore17 06-25-2012 02:10 AM

wkhtmltopdf will not install on slackware13.0
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/ In constructor 'wkhtmltopdf::ResourceObject::ResourceObject(wkhtmltopdf::MultiPageLoaderPrivate&, const QUrl&, const wkhtmltopdf::settings::LoadPage&)':
../lib/ error: 'class QWebFrame' has no member named 'setZoomFactor'
../lib/ In member function 'virtual QList<QNetworkCookie> wkhtmltopdf::MyCookieJar::cookiesForUrl(const QUrl&) const':
../lib/ 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?



storkus 06-25-2012 07:41 PM

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!

T3slider 06-25-2012 08:23 PM

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.

All times are GMT -5. The time now is 03:18 PM.