build: If both Qt4 and Qt5 are installed, use Qt5 #6938

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2015_11_prefer_qt5 changing 3 files +3 −3
  1. laanwj commented at 11:02 am on November 4, 2015: member
    If both Qt4 and Qt5 development headers are installed, use Qt5. Building against Qt5 should be encouraged as that is where active development happens.
  2. laanwj added the label Build system on Nov 4, 2015
  3. laanwj force-pushed on Nov 4, 2015
  4. MarcoFalke commented at 11:48 am on November 4, 2015: member
    Concept ACK
  5. paveljanik commented at 11:52 am on November 4, 2015: contributor
    Please also remove --with-gui from ./configure --with-gui=qt5 in doc/build-osx.md.
  6. fanquake commented at 11:59 am on November 4, 2015: member

    Concept ACK

    On Wednesday, November 4, 2015, paveljanik notifications@github.com wrote:

    Please also remove –with-gui from ./configure –with-gui=qt5 in doc/ build-osx.md.

    — Reply to this email directly or view it on GitHub #6938 (comment).

  7. laanwj commented at 12:01 pm on November 4, 2015: member

    Please also remove –with-gui from ./configure –with-gui=qt5 in doc/build-osx.md.

    But that means you may end up without a GUI at all, if the proper dependencies cannot be found. Is that the intended behavior? If not, actively setting a GUI makes sense

  8. jonasschnelli commented at 12:12 pm on November 4, 2015: contributor

    utACK!

    Please also remove –with-gui from ./configure –with-gui=qt5 in doc/build-osx.md.

    We should definitively keep this.

  9. paveljanik commented at 2:55 pm on November 4, 2015: contributor
    @laanwj IMO configure without arguments should build whatever it can build (based on dependencies, and warn user that it can’t build GUI because of missing deps) and you should be able to disable GUI with --disable-gui if you want to save compile time, do not care about GUI etc. Selecting which UI has sense only when you can and should select one of supported systems, but as we deprecate Qt4…
  10. jonasschnelli commented at 3:00 pm on November 4, 2015: contributor
    I think ./configure should only build the UI if the user did pass the --with-gui argument. In self build environment, i guess most users like to build bitcoin-core without the UI. But no strong opinion.
  11. paveljanik commented at 3:04 pm on November 4, 2015: contributor
    I’m happy with setting the --with-gui default to no, but when --with-gui is used, please do not require an argument and autoselect the highest qt available.
  12. jonasschnelli commented at 3:06 pm on November 4, 2015: contributor
    agree with @paveljanik
  13. laanwj commented at 3:13 pm on November 4, 2015: member

    I have no clue what happens if you do –with-gui without argument. Have you tested? You can do –without-gui if you want to build without GUI.

    The default if you don’t provide it is auto, which means that (with this pull), it will

    • build with Qt5 if Qt5 is installed
    • otherwise, build with Qt4 if Qt4 is installed
    • otherwise, build without GUI

    I have no intention of changing the semantics there. The only thing I’m changing is what Qt is selected by default, which IMO should be Qt5.

  14. jonasschnelli commented at 3:15 pm on November 4, 2015: contributor

    Agree. –with-gui already does auto-select. But right,.. as @laanwj mention, this PR would only change this auto-behavior to Qt5 instead of Qt4.

    Do we need adaptation here:? https://github.com/bitcoin/bitcoin/blob/master/build-aux/m4/bitcoin_qt.m4#L53

  15. laanwj force-pushed on Nov 4, 2015
  16. laanwj commented at 3:19 pm on November 4, 2015: member
    @jonasschnelli good catch, updated
  17. build: If both Qt4 and Qt5 are installed, use Qt5
    If both Qt4 and Qt5 development headers are installed, use Qt5. Building
    against Qt5 should be encouraged as that is where active development
    happens.
    dbacc69b4f
  18. paveljanik commented at 3:26 pm on November 4, 2015: contributor
    I just want to save the work again at qt6 bumb: just do not document the qt version in the doc/build-osx.md the Qt version at all.
  19. laanwj merged this on Nov 4, 2015
  20. laanwj closed this on Nov 4, 2015

  21. laanwj referenced this in commit 193f7b553e on Nov 4, 2015
  22. luke-jr commented at 2:04 am on November 5, 2015: member
    Shouldn’t the preferred Qt be based on what the OS default is configured for…?
  23. laanwj commented at 8:15 am on November 5, 2015: member
    @luke-jr That may have been a better choice in the beginning, but right now, we’re slowly moving away from Qt4. I expect to retain compatibility for the foreseeable future, but the GUI experience may be worse than Qt5, so we pick what is best for us.
  24. MarcoFalke commented at 6:45 pm on November 5, 2015: member
    Note: I need to set --with-gui=qt4 or merge #6248, to get this working on fedora.
  25. MarcoFalke commented at 6:52 pm on November 5, 2015: member
    Tested ACK. Nice, bitcoin-qt looks so much more clean when built with qt5! (No missing icons, styles, etc.)
  26. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me