Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

wkhtmltopdf fails to install #9265

Closed
rstacruz opened this issue Dec 25, 2011 · 7 comments
Closed

wkhtmltopdf fails to install #9265

rstacruz opened this issue Dec 25, 2011 · 7 comments

Comments

@rstacruz
Copy link
Contributor

The 'make' part seems to fail. True enough, http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9.tar.bz2 doesn't contain a Makefile... it seems their compile instructions have changed.

==> make
make 
make: *** No targets specified and no makefile found.  Stop.

https://gist.github.com/7f23db9a37e20c2adb59

@Sharpie
Copy link
Contributor

Sharpie commented Dec 25, 2011

The call to qmake should generate the Makefile---unless you have another version of Qt where qmake is set up to produce something other than a Makefile by default, such as an Xcode project.

The best fix would be to patch the formula so that qmake is called in a way that forces the generation of a Makefile rather than relying on the default.

@rstacruz
Copy link
Contributor Author

I tried to call qmake -makefile, but it did not generate a Makefile.

@rstacruz
Copy link
Contributor Author

...the README file also mentions that you should first compile and install their custom version of QT.

@Sharpie
Copy link
Contributor

Sharpie commented Dec 25, 2011

I believe the proper invocation is qmake -spec macx-g++.

@rstacruz
Copy link
Contributor Author

rstacruz commented Jan 6, 2012

Hmm, seems to work.

@rstacruz
Copy link
Contributor Author

rstacruz commented Jan 6, 2012

...until:

ld: warning: in ../../bin/libwkhtmltox.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
(...snip...)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [../../bin/wkhtmltopdf] Error 1

...though I think this is outside the scope of Homebrew.

@adamv
Copy link
Contributor

adamv commented Jan 30, 2012

Looks like there are also 0.10 and 0.11 versions, perhaps we should look into those.

2bits pushed a commit to 2bits/homebrew that referenced this issue Apr 2, 2012
* 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
@adamv adamv closed this as completed in aa80fbc Apr 29, 2012
rohansingh pushed a commit to rohansingh/homebrew that referenced this issue May 7, 2012
* 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

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
* 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

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
* 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

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants