You no longer need to explicitly pass qt5 to configure, as it will now choose qt5 over qt4 if both are installed.
[skip-ci]
You no longer need to explicitly pass qt5 to configure, as it will now choose qt5 over qt4 if both are installed.
[skip-ci]
45 | @@ -46,21 +46,19 @@ NOTE: Building with Qt4 is still supported, however, could result in a broken UI 46 | 2. Build bitcoind: 47 | 48 | ./autogen.sh 49 | - ./configure --with-gui=qt5 50 | + ./configure 51 | make 52 | 53 | -3. It is also a good idea to build and run the unit tests: 54 | + By default 'make' will also run the unit tests.
Nit: Are you sure?
You need to specifically call make check to run the unit-tests.
Not sure why I thought this was the case. 'make' is still only compiling the tests...
I think we should either give instructions to build "bitcoin-core" (including the GUI) at point 2) or add another point in how to build the GUI (--with-gui). It's only mentioned in the Qt-Creator instructions (which is somehow pretty hard to setup and not really necessary).
It is already implicitly mentioned in this step. (via "brew install [...] qt5 libevent"). So it should be sufficient to adjust the headings (or text to mention gui) and state that the qt-creator step is not needed.
Agree with @MarcoFalke: just changing "2. bitcoind" to "2. bitcoin-core" would be enough. But still, I think we should mention how to build bitcoin-core without GUI then.
Reverted the 'make check' changes, and updated 2. to bitcoin-core
42 | @@ -43,10 +43,10 @@ NOTE: Building with Qt4 is still supported, however, could result in a broken UI 43 | git clone https://github.com/bitcoin/bitcoin.git 44 | cd bitcoin 45 | 46 | -2. Build bitcoind: 47 | +2. Build bitcoin-core: 48 |
Nit: Change " ### Building bitcoind" to " ### Building bitcoin"
Nit: Add a line with sth. like: "This will configure and build the headless bitcoin binaries and the bitcoin gui (if qt is found). You can disable the gui build with --disable-gui"?
ACK
You can add something like this: If you want to build Bitcoin Core without graphical user interface, add an option --without-gui to the configure command line.
Updated to address nits.
61 | @@ -60,7 +62,7 @@ NOTE: Building with Qt4 is still supported, however, could result in a broken UI 62 | Use Qt Creator as IDE 63 | ------------------------ 64 | You can use Qt Creator as IDE, for debugging and for manipulating forms, etc. 65 | -Download Qt Creator from http://www.qt.io/download/. Download the "community edition" and only install Qt Creator (uncheck the rest during the installation process). 66 | +Download Qt Creator from https://www.qt.io/download/. Download the "community edition" and only install Qt Creator (uncheck the rest during the installation process). 67 | 68 | 1. Make sure you installed everything through Homebrew mentioned above 69 | 2. Do a proper ./configure --with-gui=qt5 --enable-debug
Sorry, another nit: remove -with-gui=qt5?
@jonasschnelli nit fixed.
ACK
The reason to keep passing --with-gui=qt5 explicitly would be to force building with the GUI. It will fail when the Qt headers are somehow misplaced. The default is --with-gui=auto which uses whatever Qt version works, preferring Qt5 if both are, building without GUI if none are usable. This was discussed in #6938 as well.
@laanwj yes, but as someone already mentioned, this describes the build on OS X and after brew install qt5.
You no longer need to explicitly pass qt5 to configure, as it will now choose qt5 over qt4 if both are installed.
[skip-ci]
45 | cd bitcoin 46 | 47 | -2. Build bitcoind: 48 | +2. Build bitcoin-core: 49 | + This will configure and build the headless bitcoin binaries as well as the gui (if Qt is found). 50 | + You can disable the gui build by passing `--disable-gui` to configure.
@paveljanik is right. This is incorrect. Should be --without-gui.
Nit fixed.
ACK
4 | @@ -5,7 +5,7 @@ This guide will show you how to build bitcoind (headless client) for OS X. 5 | Notes 6 | ----- 7 | 8 | -* Tested on OS X 10.7 through 10.10 on 64-bit Intel processors only. 9 | +* Tested on OS X 10.7 through 10.11 on 64-bit Intel processors only.
OS X 10.11: #7110
@jonasschnelli Does this need any further changes?
Re-ACK. Only problem could be that someone ends up with a GUI-less bitcoin-core (missing bitcoin-qt) because he forget to install qt5 (would happen without error only a tiny warning/info in the configure output). But thats okay.