Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build failure: Qt 5.15.5 on Ubuntu 22.04

Build failure: Qt 5.15.5 on Ubuntu 22.04

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Robert Hairgrove
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      2
      • SGaistS SGaist

        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.

        R Offline
        R Offline
        Robert Hairgrove
        wrote on last edited by Robert Hairgrove
        #3

        @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.

        1 Reply Last reply
        1
        • SGaistS SGaist has marked this topic as solved on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved