Hello , I copiled wkhtmltopdf on freebsd server but when I try to convert html in pdf I get the error
in the following sequence I compiled converter
1 step.
2 step.
3 step.
4 step.
5 step.
Please help me. I need a static binary of wkhtmltopdf , I read the old issues and find information about the patches, where can I get these patches and how to build the converter
thanks for all help.
FreeBSD 8.2
Code:
[root@ /bin]# pwd
/bin
[root@ /bin]# ./wkhtmltopdf google.ru 1.pdf
wkhtmltopdf: cannot connect to X server
1 step.
# git clone [url=git://gitorious.org/+wkhtml2pdf/qt/wkhtmltopdf-qt.git]git://gitorious.org/+wkhtml2pdf/qt/wkhtmltopdf-qt.git[/url] wkhtmltopdf-qt
2 step.
Code:
./configure -prefix /disk2/wkqt -release -static -fast -exceptions -no-accessibility -no-stl -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-qt3support -xmlpatterns -no-phonon -no-phonon-backend -webkit -no-scripttools -no-mmx -no-3dnow -no-sse -no-sse2 -system-zlib -graphicssystem raster -opensource -confirm-license -nomake tools -nomake examples -nomake demos -nomake docs -nomake translations -no-opengl -no-dbus -no-multimedia -openssl -no-declarative -largefile -rpath -no-nis -no-cups -no-iconv -no-pch -no-gtkstyle -no-nas-sound -no-sm -no-xshape -no-xinerama -no-xcursor -no-xfixes -no-xrandr -no-mitshm -no-xinput -no-xkb -no-glib -no-openvg -no-opengl -no-xsync -no-audio-backend -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -system-libtiff -system-libpng -system-libmng -system-libjpeg "$@"
3 step.
Code:
gmake
gmake install
Code:
cd wkhtmltopdf-0.11.0_rc1
/disk2/wkqt/bin/qmake
gmake
gmake install
5 step.
Code:
cd /bin
[root@ /bin]# ./wkhtmltopdf ya.ru 1.pdf
wkhtmltopdf: cannot connect to X server
thanks for all help.
FreeBSD 8.2