Build failure: Qt 5.15.5 on Ubuntu 22.04
-
Don't know why this fails. Here is the command line I used on Ubuntu 22.04 building from fresh sources installed from the file
qt-everywhere-opensource-src-5.15.5.tar.xz
:./configure -opensource -confirm-license -system-sqlite -system-zlib -icu > qt_configure_output.txt
Output from that command (saved in file
qt_configure_output.txt
:+ cd qtbase + /home/bob/code/qt-everywhere-src-5.15.5/qtbase/configure -top-level -opensource -confirm-license -system-sqlite -system-zlib -icu Creating qmake... Done. Info: creating super cache file /home/bob/code/qt-everywhere-src-5.15.5/.qmake.super Info: creating cache file /home/bob/code/qt-everywhere-src-5.15.5/.qmake.cache Info: creating stash file /home/bob/code/qt-everywhere-src-5.15.5/.qmake.stash (... the rest was not saved to the file, but no errors were reported...)
Errors from
make -j8
:Makefile:2492: warning: overriding recipe for target 'install_sources' Makefile:2459: warning: ignoring old recipe for target 'install_sources' Makefile:2508: warning: overriding recipe for target 'uninstall_sources' Makefile:2475: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1345: warning: overriding recipe for target 'install_sources' Makefile:1324: warning: ignoring old recipe for target 'install_sources' Makefile:1355: warning: overriding recipe for target 'uninstall_sources' Makefile:1334: warning: ignoring old recipe for target 'uninstall_sources' Makefile:5566: warning: overriding recipe for target '../../qml/QtQuick/Controls/qmldir' Makefile:5563: warning: ignoring old recipe for target '../../qml/QtQuick/Controls/qmldir' Makefile:1345: warning: overriding recipe for target 'install_sources' Makefile:1324: warning: ignoring old recipe for target 'install_sources' Makefile:1355: warning: overriding recipe for target 'uninstall_sources' Makefile:1334: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1351: warning: overriding recipe for target 'install_sources' Makefile:1328: warning: ignoring old recipe for target 'install_sources' Makefile:1362: warning: overriding recipe for target 'uninstall_sources' Makefile:1339: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1349: warning: overriding recipe for target 'install_sources' Makefile:1328: warning: ignoring old recipe for target 'install_sources' Makefile:1359: warning: overriding recipe for target 'uninstall_sources' Makefile:1338: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1345: warning: overriding recipe for target 'install_sources' Makefile:1324: warning: ignoring old recipe for target 'install_sources' Makefile:1355: warning: overriding recipe for target 'uninstall_sources' Makefile:1334: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1345: warning: overriding recipe for target 'install_sources' Makefile:1324: warning: ignoring old recipe for target 'install_sources' Makefile:1355: warning: overriding recipe for target 'uninstall_sources' Makefile:1334: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1345: warning: overriding recipe for target 'install_sources' Makefile:1324: warning: ignoring old recipe for target 'install_sources' Makefile:1355: warning: overriding recipe for target 'uninstall_sources' Makefile:1334: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1350: warning: overriding recipe for target 'install_sources' Makefile:1329: warning: ignoring old recipe for target 'install_sources' Makefile:1360: warning: overriding recipe for target 'uninstall_sources' Makefile:1339: warning: ignoring old recipe for target 'uninstall_sources' Makefile:1064: warning: overriding recipe for target 'qmltypes' Makefile:1061: warning: ignoring old recipe for target 'qmltypes' make[4]: *** [Makefile.gn_run:1275: run_ninja] Error 1 make[3]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2 make[2]: *** [Makefile:80: sub-core-make_first] Error 2 make[1]: *** [Makefile:49: sub-src-make_first] Error 2 make: *** [Makefile:1088: module-qtwebengine-make_first] Error 2
Any help appreciated.
-
Hi,
Do you have any discrepancies with the dates of the generate files ?
By the way, you should consider using out of source builds so in case of an issue you can simply nuke the build folder and start from scratch more easily.
-
@SGaist Thank you ... building Qt out-of-sources was successful. I found this link which was very helpful in explaining how to do it:
https://gist.github.com/black13/3a55ed9afb5ba9ab5119ebd271a2aaa5
I saw another reference to this in the Qt documentation, but can't remember exactly where I saw it (EDIT: this was at the very bottom of the previous web page: https://doc.qt.io/qt-5/linux-building.html).
Now I was able to easily install both a debug and a release version of Qt with this method by setting different
-prefix
arguments. -
S SGaist has marked this topic as solved on