Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.11.2
-
None
-
Mingw-w64
Description
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.)
Attachments
Issue Links
- duplicates
-
QTBUG-60496 qtbase build fails if "make install" is run without "make" first
- Reported