-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
wkhtmltopdf 0.11.0_rc1 + fix 64bit compile error #11400
Conversation
* Upgrade wkhtmltopdf to version 0.11.0_rc1 * Adjust existing inreplace because the file has a different name. * Fix compile error when 64bit Qt4 doesn't have i386 symbols by using inreplace to set the qmake build as 64bit, not universal. * Use `qmake -spec macx-g++` to configure it, from Sharpie. * Temporarily set DYLD_LIBRARY_PATH to help the binaries find libwkhtmltopdf.0.dylib for generating the man pages. * Adjust command to generate man page, as wkhtmltopdf is in bin. * Add command to generate man page for wkhtmltoimage. * Add command to install wkhtmltoimage. * Add command to install wkhtmltoimage.1 into man1. * Add command to install all libraries. Built and tested by converting a url to pdf on Lion and 64bit SL using all five compilers from XCode-4.3.2 and 4.0.2. Fixes Homebrew#9265
Does this address the issue of patched QT (discussed here in "reduced fonctionalities" section http://madalgo.au.dk/~jakobt/wkhtmltoxdoc/wkhtmltopdf-0.9.9-doc.html)? |
I'm fairly certain the admins would not accept brewing their patched Qt4. So I maintained the current method of building this against the one Homebrew provides. It will have one or more of those deficiencies you linked. However, OSX's
If you have two different pdfs open in two |
This code runs server side :P I spent almost a day to other month wondering why my headers were not printing properly locally. It was because of the homebrew wkhtmltopdf installation missing the patched QT. Before building wkthmltopdf, would it make sense to copy the patches to a previously built qt installation and rebuild it? |
Yeah, running server side it would be useful to have. I'll investigate whether it's possible to option |
@juggy I managed to craft a formula that will build their patched qt4 as an option. It has a runtime bug that I'm working out. I noticed on their website that someone had crafted a precompiled wkhtmltopdf for OSX, built with their patched Qt4. Did you try that one? The discussion about it is located here. Maybe you can test that, because mine will be nearly identical, and it would be shame if it didn't work for you. |
Pulled this fix - thanks @2bits . |
@2bits could you publish your formula with a patched qt4? |
This is a new version of the wkhtmltopdf formula that supports stable 0.9.9, devel 0.11.0_rc1, and building against their patched Qt4 if you build devel and use the option. There were significant link errors building 0.9.9 against their patched Qt4, where the
would be the way to get all the benefits, whereas
is how you brew 0.9.9 against Homebrew's regular Qt4. I tested this on Lion with clang and llvm from XCode-4.3.2,but I can't remember if I tested it on Snow Leopard, sorry. |
@antialize Am I correct that wkhtmltopdf-0.9.9 will not build anymore against the patched Qt4? It won't link from my tests. |
I updated the formula in the gist https://gist.github.com/2724019 because I made a typo where I used |
using inreplace to set the qmake build as 64bit, not universal.
qmake -spec macx-g++
to configure it, from Sharpie.libwkhtmltopdf.0.dylib for generating the man pages.
Built and tested by converting a url to pdf on Lion and 64bit SL
using all five compilers from XCode-4.3.2 and 4.0.2.
Fixes #9265