I use MXE. Follow these instructions https://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows/14170591#14170591

My actions:

git clone https://github.com/mxe/mxe.git cd mxe make qtbase 

At the end of the qtbase compilation, an error is displayed:

  Failed to build package qtbase for target i686-w64-mingw32.static! ------------------------------------------------------------ or compile needed modules into the library. ERROR: Feature 'sql-psql' was enabled, but the pre-condition 'libs.psql' failed. make[1]: *** [build-only-qtbase_i686-w64-mingw32.static] Ошибка 3 make[1]: Выход из каталога `/home/homa/setup/mxe' real 3m24.062s user 3m12.616s sys 0m13.024s ------------------------------------------------------------ [log] /home/homa/setup/mxe/log/qtbase_i686-w64-mingw32.static make: *** [/home/homa/setup/mxe/usr/i686-w64-mingw32.static/installed/qtbase] Ошибка 1 

As I understand it, it requires postgresql, but I do not need it. The http://mxe.cc/#requirements dependencies are already installed. Ubuntu OS 14.04 LTS.

  • Well, you wrote in English in gray that the feature was requested, but there is no possibility to include it. Before make qtbase with how and what features you include. - 0andriy
  • Is it possible to somehow not require this feature? How are they included? - havon
  • so it seems to be spelled out in the makefile - Alex.B.
  • before building it is necessary to run it through the configur. there was a file in which it was indicated what to collect and what not - Alex.B
  • Gathered all. Just downloaded the source of a newer version. - havon

0