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

When Building Qt from Source the Install Target Behaves Wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.11.2
    • Build System
    • None
    • Mingw-w64
    • Windows

      When building Qt with Mingw-w64 the following command sequence does not work:

      cd build../qt5/configure ...make install

       

      The build results in the following linker error here:

      g++ Wl,-s -shared -mthreads -Wl,-subsystem,windows -Wl,-out-implib,C:/Libraries/Qt/qt5Build/qtbase/lib/libQt5Core.a -o ../../lib/Qt5Core.dll object_script.Qt5Core.Release -LC:/Libraries/OpenCascade/3rdPartyMingw64/freetype-2.6.3-mingw-64/bin -lmpr -lnetapi32 -luserenv .obj/release/Qt5Core_resource_res.o -lversion -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lwinmm -lz -LC:/Libraries/Qt/qt5Build/qtbase/lib C:/Libraries/Qt/qt5Build/qtbase/lib/libqtpcre2.a -LC:/Libraries/OpenCascade/3rdPartyMingw64/freetype-2.6.3-mingw-64/bin
      g++.exe: error: C:/Libraries/Qt/qt5Build/qtbase/lib/libqtpcre2.a: No such file or directory

       

      Instead (as the output of configure says) these commands have to be used:

      cd build

      ../qt5/configure ...

      make

      make install

       

      The reason seems to be that some "install" targets do not depend on "all", so that installing does not trigger compilation. Therefore compilation has to be triggered "manually" before.

       

      Even though it is of course possible to use "make" before "make install", it is annoying, because it is somehow non-standard. Wouldn't it be worth it improving that? (I have spent quite a lot of hours to figure out the reason and get Qt to compile correctly.)

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

            buddenha Oswald Buddenhagen
            benjaminbihler Benjamin Bihler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes