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-
laanwj commented at 11:02 am on November 4, 2015: memberIf both Qt4 and Qt5 development headers are installed, use Qt5. Building against Qt5 should be encouraged as that is where active development happens.
-
laanwj added the label Build system on Nov 4, 2015
-
laanwj force-pushed on Nov 4, 2015
-
MarcoFalke commented at 11:48 am on November 4, 2015: memberConcept ACK
-
paveljanik commented at 11:52 am on November 4, 2015: contributorPlease also remove
--with-gui
from./configure --with-gui=qt5
indoc/build-osx.md
. -
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).
-
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
-
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.
-
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… -
jonasschnelli commented at 3:00 pm on November 4, 2015: contributorI 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. -
paveljanik commented at 3:04 pm on November 4, 2015: contributorI’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. -
jonasschnelli commented at 3:06 pm on November 4, 2015: contributoragree with @paveljanik
-
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.
-
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
-
laanwj force-pushed on Nov 4, 2015
-
laanwj commented at 3:19 pm on November 4, 2015: member@jonasschnelli good catch, updated
-
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.
-
paveljanik commented at 3:26 pm on November 4, 2015: contributorI 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. -
laanwj merged this on Nov 4, 2015
-
laanwj closed this on Nov 4, 2015
-
laanwj referenced this in commit 193f7b553e on Nov 4, 2015
-
luke-jr commented at 2:04 am on November 5, 2015: memberShouldn’t the preferred Qt be based on what the OS default is configured for…?
-
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.
-
MarcoFalke commented at 6:45 pm on November 5, 2015: memberNote: I need to set
--with-gui=qt4
or merge #6248, to get this working on fedora. -
MarcoFalke commented at 6:52 pm on November 5, 2015: memberTested ACK. Nice, bitcoin-qt looks so much more clean when built with qt5! (No missing icons, styles, etc.)
-
DrahtBot locked this on Sep 8, 2021
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
More mirrored repositories can be found on mirror.b10c.me