This is a clone of the webcapture example from the Qt GraphicsDojo hosted in gitorious: http://qt.gitorious.org/qt-labs/graphics-dojo
Original blog post: http://labs.trolltech.com/blogs/2009/01/15/capturing-web-pages/
I've modified it to accept more command line arguments using optparse by W. Evan Sheehan
You need Qt to be installed
- $> qmake
- Double click the Xcode project created
- Click on build in Xcode
- the 'webcapture' executable is created
NB: This requires fontconfig 1.4.2 see here for an explanation of why: http://theitdepartment.wordpress.com/2009/03/15/centos-qt-fcfreetypequeryface/
- $> qmake
- $> make
- The executable will be built
You need to have an X11 display available. I run this headless and so have Xvfb running on display :1 (