Author

Topic: Unable to build Bitcoin-qt on Arch Linux (Read 670 times)

sr. member
Activity: 322
Merit: 250
March 30, 2017, 10:43:52 AM
#3

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 Smiley, locking the thread now.
staff
Activity: 3458
Merit: 6793
Just writing some code
sr. member
Activity: 322
Merit: 250
March 30, 2017, 07:18:28 AM
#1
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()::)’
     });

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 Smiley



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".
Jump to: