0

I'm trying to build wkhtmltopdf for Windows on an Ubuntu box. I haven't done much with cross-compiling in the past, but I have installed the Mingw32 compiler and am having trouble figuring out how to build qt to target Windows instead of Linux. Right now I am not sure how to tell ./configure to use Mingw32 to build a windows version of Qt when I run make. Can anybody shed some light on how to do this?

I have tried building wkhtmltopdf on Windows in the past, but got stuck at the step where you need to run qmake after building Qt, which is why I am trying to build on a native linux environment instead.

codewario
  • 19,553
  • 20
  • 90
  • 159
  • 1
    [How do I configure Qt for cross-compilation from Linux to Windows target?](http://stackoverflow.com/questions/10934683/how-do-i-configure-qt-for-cross-compilation-from-linux-to-windows-target?rq=1), [Building Qt Desktop for Windows with MinGW](http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MinGW) – liuyi.luo Dec 06 '13 at 05:29
  • When I follow the second link (building natively on Windows), I get an error when running configure.exe... "project.o: file not recognized: File format not recognized" – codewario Dec 09 '13 at 15:15
  • You don't need to build `Qt` library frome source. [Qt official website](http://qt-project.org/downloads) provide pre-build binary installer for common desktop configurations. – liuyi.luo Dec 10 '13 at 01:34
  • According the wkhtmltopdf documentation, it requires a specially patched version of Qt for the functionality I need built into it (e.g. internal links). Since I don't know enough to patch the source myself, I have to use the patched source provided by Antialize. I ended up figuring out how to build the source but I keep running into other issues building natively on Windows. I'm going to try the cross compiling route with mxe as explained in the first link you provided. – codewario Dec 10 '13 at 02:56

0 Answers0