1 Bitcoin-Qt: Qt4 GUI for Bitcoin
2 ===============================
10 First, make sure that the required packages for Qt4 development of your
11 distribution are installed, these are
15 for Debian and Ubuntu <= 11.10 :
19 apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
20 libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
21 libssl-dev libdb4.8++-dev
23 for Ubuntu >= 12.04 (please read the 'Berkely DB version warning' below):
27 apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
28 libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
29 libssl-dev libdb++-dev libminiupnpc-dev
31 then execute the following:
38 Alternatively, install `Qt Creator`_ and open the `bitcoin-qt.pro` file.
40 An executable named `bitcoin-qt` will be built.
42 .. _`Qt Creator`: http://qt-project.org/downloads/
47 - Download and install the `Qt Mac OS X SDK`_. It is recommended to also install Apple's Xcode with UNIX tools.
49 - Download and install `MacPorts`_.
51 - Execute the following commands in a terminal to get the dependencies:
56 sudo port install boost db48 miniupnpc
58 - Open the bitcoin-qt.pro file in Qt Creator and build as normal (cmd-B)
60 .. _`Qt Mac OS X SDK`: http://qt-project.org/downloads/
61 .. _`MacPorts`: http://www.macports.org/install.php
64 Build configuration options
65 ============================
70 To use UPnP for port forwarding behind a NAT router (recommended, as more connections overall allow for a faster and more stable bitcoin experience), pass the following argument to qmake:
76 (in **Qt Creator**, you can find the setting for additional qmake arguments under "Projects" -> "Build Settings" -> "Build Steps", then click "Details" next to **qmake**)
78 This requires miniupnpc for UPnP port mapping. It can be downloaded from
79 http://miniupnp.tuxfamily.org/files/. UPnP support is not compiled in by default.
81 Set USE_UPNP to a different value to control this:
83 +------------+--------------------------------------------------------------------------+
84 | USE_UPNP=- | no UPnP support, miniupnpc not required; |
85 +------------+--------------------------------------------------------------------------+
86 | USE_UPNP=0 | (the default) built with UPnP, support turned off by default at runtime; |
87 +------------+--------------------------------------------------------------------------+
88 | USE_UPNP=1 | build with UPnP support turned on by default at runtime. |
89 +------------+--------------------------------------------------------------------------+
91 Notification support for recent (k)ubuntu versions
92 ---------------------------------------------------
94 To see desktop notifications on (k)ubuntu versions starting from 10.04, enable usage of the
95 FreeDesktop notification interface through DBUS using the following qmake option:
101 Generation of QR codes
102 -----------------------
104 libqrencode may be used to generate QRCode images for payment requests.
105 It can be downloaded from http://fukuchi.org/works/qrencode/index.html.en, or installed via your package manager. Pass the USE_QRCODE
106 flag to qmake to control this:
108 +--------------+--------------------------------------------------------------------------+
109 | USE_QRCODE=0 | (the default) No QRCode support - libarcode not required |
110 +--------------+--------------------------------------------------------------------------+
111 | USE_QRCODE=1 | QRCode support enabled |
112 +--------------+--------------------------------------------------------------------------+
115 Berkely DB version warning
116 ==========================
118 A warning for people using the *static binary* version of Bitcoin on a Linux/UNIX-ish system (tl;dr: **Berkely DB databases are not forward compatible**).
120 The static binary version of Bitcoin is linked against libdb4.8 (see also `this Debian issue`_).
122 Now the nasty thing is that databases from 5.X are not compatible with 4.X.
124 If the globally installed development package of Berkely DB installed on your system is 5.X, any source you
125 build yourself will be linked against that. The first time you run with a 5.X version the database will be upgraded,
126 and 4.X cannot open the new format. This means that you cannot go back to the old statically linked version without
129 .. _`this Debian issue`: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621425
134 Ubuntu 11.10 has a package called 'qt-at-spi' installed by default. At the time of writing, having that package
135 installed causes bitcoin-qt to crash intermittently. The issue has been reported as `launchpad bug 857790`_, but
138 Until the bug is fixed, you can remove the qt-at-spi package to work around the problem, though this will presumably
139 disable screen reader functionality for Qt apps:
143 sudo apt-get remove qt-at-spi
145 .. _`launchpad bug 857790`: https://bugs.launchpad.net/ubuntu/+source/qt-at-spi/+bug/857790