Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63906

Errors in cross-compile to Windows from Linux using mingw

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.9.2
    • Build System
    • None

      I have encountered the following problems while trying to build Qt 5.9.2 for Windows from Linux using cross mingw:

      1. qtbase/mkspecs/win32-g++/qmake.conf constains the following block: equals(QMAKE_HOST.os, Windows) {
        QMAKE_LINK_OBJECT_MAX = 10
        QMAKE_LINK_OBJECT_SCRIPT = object_script
        }, but these 2 variables have to be assigned even if I cross compile from Linux, otherwise generated Makefiles can't be used to build some static libraries (qt harfbuzz for instance), so I had to comment out the condition.
      2. qtactiveqt/src/tools/idc/idc.pro, I had to comment out first two lines, since idc contains windows specific code and can not be built for linux.
      3. qtmultimedia/src/plugins/common/evr/evrd3dpresentengine.cpp, line 52, had to replace qtgui with QtGui, since linux file systems are case sensitive.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            thesourcehim Max Fedotov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes