Now that autotools is used as a build system there is nothing special about building the GUI anymore. People were getting confused about the lack of any real build instructions in readme-qt.md. Merge the salvageable parts into build-unix.md.
doc: remove readme-qt.md #3092
pull laanwj wants to merge 2 commits into bitcoin:master from laanwj:2013_10_remove_readme_qt changing 2 files +25 −103-
laanwj commented at 12:37 PM on October 15, 2013: member
-
Diapolo commented at 1:02 PM on October 15, 2013: none
ACK
-
in doc/build-unix.md:None in a648b28fe8 outdated
84 | + 85 | +To build with Qt 4 you need the following: 86 | + 87 | + apt-get install libqt4-dev 88 | + 89 | +For Qt 5 you need the following:
Diapolo commented at 1:03 PM on October 15, 2013:There are still autotools patches to come for this, right?
laanwj commented at 1:20 PM on October 15, 2013:It doesn't work like this yet?
laanwj commented at 1:45 PM on October 15, 2013:I'm still using Qt4, so I don't know. Would be pretty sucky though if we lost Qt5 support :/
Diapolo commented at 1:49 PM on October 15, 2013:Well and I'm still using the .pro, so I can't verify either...
schildbach commented at 1:06 PM on October 15, 2013: contributorI am testing the new build instructions with Ubuntu 13.04.
- Figuring out the dependencies is hard, given that different Ubuntu version schemes are used (sometimes Ubuntu Precise, sometimes Ubuntu 12.04). It's sometimes not clear if the doc implies "and later" or "and earlier".
- $ ./autogen.sh Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 195. Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 195.
laanwj commented at 1:16 PM on October 15, 2013: memberFor libtoolize, can you try to install "autotools-dev"?
schildbach commented at 1:23 PM on October 15, 2013: contributor@laanwj autotools-dev is already installed.
laanwj commented at 1:24 PM on October 15, 2013: member"libtool" then
schildbach commented at 1:33 PM on October 15, 2013: contributorpackage libtool is fine, autogen succeeded. Now ./configure fails at
checking for Berkeley DB C++ headers... no configure: error: libdb_cxx headers missing
I assume this is due to libdb* packages missing, however none of the alternatives worked for me:
Package libdb4.8++-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
Same for libdb4.8-dev.
laanwj commented at 1:35 PM on October 15, 2013: memberYou're using these?
db4.8 packages are available [here](https://launchpad.net/~bitcoin/+archive/bitcoin)schildbach commented at 1:38 PM on October 15, 2013: contributorNo, I was hoping I can satisfy all dependencies from the Ubuntu repositories. Is this possible?
laanwj commented at 1:42 PM on October 15, 2013: memberThat's not possible, there are no bdb 4.8 packages in the repository for 12.04 and later. You can use a newer bdb but once you use that you break binary wallet compatibility thus is not recommended (that's literally in the build instructions).
sipa commented at 1:46 PM on October 15, 2013: memberIf you were already compiling bitcoin(d/-qt) before on ubuntu, you were likely using bdb 5.1 anyway, and you already lost that compatibility. In any case, nothing a db_dump + db_load can't solve if you really need to downgrade bdb.
schildbach commented at 1:50 PM on October 15, 2013: contributorYes, for now I installed bdb 5.1 from the Ubuntu repositories again.
Also, I needed to install "libprotobuf-dev" (missing in the doc).
schildbach commented at 1:52 PM on October 15, 2013: contributorNow, I get
checking if qt should be enabled... configure: error: "qt support requested but qt could not be located. use --without-qt"
I have installed libqt5gui5 libqt5core5 libqt5dbus5 qttools5-dev-tools as documented. Did not try the qt4 path.
29a4146327doc: remove readme-qt.md
Now that autotools is used as a build system there is nothing special about building the GUI anymore. Merge the salvageable parts into build-unix.md
schildbach commented at 1:59 PM on October 15, 2013: contributorOk, going the qt4 route then.
Is "checking if ccache should be enabled... configure: ccache not found. Falling back to default CC no" expected?
laanwj commented at 2:00 PM on October 15, 2013: memberYes, ccache is not necessary for a build but can be used.
62568f9a1edoc: build with qt5 is currently not possible
Add as a separate commit so that it can be easily reverted once Qt5 is supported again.
BitcoinPullTester commented at 2:21 PM on October 15, 2013: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/62568f9a1e98065bd51069649f23a337eab89f94 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
schildbach commented at 2:44 PM on October 15, 2013: contributor@laanwj what would be the package for ccache?
I managed to build bitcoin-qt using the instructions. Thanks for your help!
laanwj commented at 4:22 PM on October 15, 2013: memberI think the package is simply 'ccache'.
schildbach commented at 4:27 PM on October 15, 2013: contributorYes, that works.
gavinandresen referenced this in commit 8d3f0d099b on Oct 15, 2013gavinandresen merged this on Oct 15, 2013gavinandresen closed this on Oct 15, 2013rebroad commented at 10:37 PM on December 27, 2013: contributorstill seems that the libprotobuf-dev isn't mentioned in the build docs... shall I do a pull request for this?
laanwj commented at 2:25 PM on December 29, 2013: memberlibprotobuf-dev, as well as protobuf-compiler IS mentioned in the build docs:
To build with Qt 4 you need the following: apt-get install libqt4-dev libprotobuf-dev protobuf-compilerBushstar referenced this in commit 7320c3da24 on Apr 8, 2020DrahtBot 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: 2026-04-13 15:16 UTC
More mirrored repositories can be found on mirror.b10c.me