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

Qt OPC UA build with MinGW fails with separate build directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.14.2, 5.15.0
    • Build tools: qmake, OpcUA
    • None
    • Windows 10, Qt 5.15 MinGW from the installer
    • Windows

    Description

      Since Qt 5.14, the MinGW build of the qtopcua module can't be successfully installed if a separate build directory is used.

      C:\qtopcua\build>mingw32-make install
      cd src\ && ( if not exist Makefile C:\Qt\5.15.0\mingw81_64\bin\qmake.exe -o Makefile C:\qtopcua\src\src.pro ) && mingw32-make -f Makefile install
      mingw32-make[1]: Entering directory 'C:/qtopcua/build/src'
      cd opcua\ && ( if not exist Makefile C:\Qt\5.15.0\mingw81_64\bin\qmake.exe -o Makefile C:\qtopcua\src\opcua\opcua.pro ) && mingw32-make -f Makefile install
      mingw32-make[2]: Entering directory 'C:/qtopcua/build/src/opcua'
      mingw32-make -f Makefile.Release install
      mingw32-make[3]: Entering directory 'C:/qtopcua/build/src/opcua'
      copy /y ..\..\lib\Qt5OpcUa.dll C:\Qt\5.15.0\mingw81_64\bin\Qt5OpcUa.dll
              1 Datei(en) kopiert.
      C:\Qt\5.15.0\mingw81_64\bin\qmake.exe -install qinstall C:\qtopcua\build\lib\Qt5OpcUa.dll.debug C:\Qt\5.15.0\mingw81_64\lib\Qt5OpcUa.dll.debug
      C:\Qt\5.15.0\mingw81_64\bin\qmake.exe -install sed  -e "s,C:/qtopcua/build/lib,$$[QT_INSTALL_LIBS],g" -e "s,C:\\\\qtopcua\\\\build\\\\lib,$$[QT_INSTALL_LIBS],gi" -e "s,C:/Qt/5.15.0/mingw81_64/lib,$$[QT_INSTALL_LIBS],g" -e "s,C:\\\\Qt\\\\5.15.0\\\\mingw81_64\\\\lib,$$[QT_INSTALL_LIBS],gi" ..\..\lib\Qt5OpcUa.prl > C:\Qt\5.15.0\mingw81_64\lib\Qt5OpcUa.prl
      C:\Qt\5.15.0\mingw81_64\bin\qmake.exe -install sed  -e "s,C:/qtopcua/build/lib,C:/Qt/5.15.0/mingw81_64/lib,g" -e "s,C:\\\\qtopcua\\\\build\\\\lib,C:\\\\Qt\\\\5.15.0\\\\mingw81_64\\\\lib,gi" ..\..\build\lib\pkgconfig\Qt5OpcUa.pc > C:\Qt\5.15.0\mingw81_64\lib\pkgconfig\Qt5OpcUa.pc
      ..\..\build\lib\pkgconfig\Qt5OpcUa.pc: No such file or directory
      mingw32-make[3]: *** [Makefile.Release:5452: install_target] Error 1
      mingw32-make[3]: Leaving directory 'C:/qtopcua/build/src/opcua'
      mingw32-make[2]: *** [Makefile:55: release-install] Error 2
      mingw32-make[2]: Leaving directory 'C:/qtopcua/build/src/opcua'
      mingw32-make[1]: *** [Makefile:64: sub-opcua-install_subtargets] Error 2
      mingw32-make[1]: Leaving directory 'C:/qtopcua/build/src'
      mingw32-make: *** [Makefile:65: sub-src-install_subtargets] Error 2

      If the root directory of the qtopcua repository is used as build directory, the install step is successful.

      The MSVC build works with a separate build directory, the Linux build is also fine.

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            basyskom.jannis.voelker Jannis Völker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes