Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: K128kevin2 on March 30, 2017, 12:18:28 PM



Title: Unable to build Bitcoin-qt on Arch Linux
Post by: K128kevin2 on March 30, 2017, 12:18:28 PM
I'm trying to build Bitcoin with the qt wallet frontend on Arch Linux but I have a few issues in the compile stage.

Code:
qt/test/wallettests.cpp: In function ‘void {anonymous}::ConfirmSend()’:
qt/test/wallettests.cpp:27:38: error: ‘void QTimer::timeout()’ is protected within this context
     QObject::connect(timer, &QTimer::timeout, []() {
                                      ^~~~~~~
In file included from /usr/include/qt4/QtCore/QTimer:1:0,
                 from ./qt/sendcoinsdialog.h:13,
                 from qt/test/wallettests.cpp:7:
/usr/include/qt4/QtCore/qtimer.h:92:10: note: declared protected here
     void timeout();
          ^~~~~~~
qt/test/wallettests.cpp:36:6: error: no matching function for call to ‘QObject::connect(QTimer*&, void (QTimer::*)(), {anonymous}::ConfirmSend()::<lambda()>)’
     });

Building off master, commit hash 8ac80412867118172dc4172494304e19969e9489.

Here's the versions of dependencies I have installed

db 4.8.30.NC
qt 4.8.7
gcc 6.3.1

I'm sure it's some stupid mistake I've made but I'm scratching my head here. Any help would be greatly appreciated :)



edit: forgot to include commands I ran

Code:
./autogen.sh
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" --without-miniupnpc
make -j17




edit 2: Sorry, not sure if this is supposed to go into "Development & Technical Discussion" or "Technical Support".


Title: Re: Unable to build Bitcoin-qt on Arch Linux
Post by: achow101 on March 30, 2017, 12:54:07 PM
You need to install qt5, not qt4.

Read https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md


Title: Re: Unable to build Bitcoin-qt on Arch Linux
Post by: K128kevin2 on March 30, 2017, 03:43:52 PM
You need to install qt5, not qt4.

Read https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md

Installing qt5 fixed everything. Built and works fine now. I was reading through that document and I thought that qt4 was supported.

Quote
If you want to build Bitcoin-Qt, make sure that the required packages for Qt development are installed. Either Qt 5 or Qt 4 are necessary to build the GUI.

Anyway thank you for the help :), locking the thread now.