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

[REG 5.13.0-5.13.1] Broken CMake build for static libs (QMAKE_PRL_LIBS_FOR_CMAKE)

    XMLWordPrintable

Details

    • Windows

    Description

      Building of CMake-based projects relying on static Qt libraries are broken in 5.13.1. Symptoms:

      >LINK : warning LNK4044: unrecognized option '/lole32'; ignored
      >LINK : warning LNK4044: unrecognized option '/loleaut32'; ignored
      >LINK : warning LNK4044: unrecognized option '/luser32'; ignored
      >LINK : warning LNK4044: unrecognized option '/lgdi32'; ignored
      >LINK : warning LNK4044: unrecognized option '/lQt5Cored'; ignored
      >LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
      

      The problem seem to be related to QMAKE_PRL_LIBS_FOR_CMAKE in the following .prl files:

      • Qt5AxBase[d].prl
      • Qt5AxContainer[d].prl
      • Qt5AxServer[d].prl
      • Qt5Bootstrap[d].prl
      • Qt5FontDatabaseSupport[d].prl
      • qtmain[d].prl

      Example from Qt5AxBase.prl:

      QMAKE_PRL_LIBS_FOR_CMAKE = -lQt5Core;C:\\Program Files (x86)\\Windows -lole32;C:\\Program Files (x86)\\Windows -loleaut32;C:\\Program Files (x86)\\Windows -luser32;C:\\Program Files (x86)\\Windows -lgdi32;C:\\Program Files (x86)\\Windows -ladvapi32;;
      

      As you can see, there's something wrong with the Windows path. This seem to be related to https://codereview.qt-project.org/c/qt/qtbase/+/265731

      Attachments

        Issue Links

          Activity

            People

              iknd Iikka Eklund
              forderud Fredrik Orderud
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: