Bitcoin Forum
May 06, 2024, 09:43:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Unable to build Bitcoin-qt on Arch Linux  (Read 652 times)
K128kevin2 (OP)
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
March 30, 2017, 12:18:28 PM
 #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()::<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 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".
1715031829
Hero Member
*
Offline Offline

Posts: 1715031829

View Profile Personal Message (Offline)

Ignore
1715031829
Reply with quote  #2

1715031829
Report to moderator
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6587


Just writing some code


View Profile WWW
March 30, 2017, 12:54:07 PM
Merited by ABCbits (1)
 #2

You need to install qt5, not qt4.

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

K128kevin2 (OP)
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
March 30, 2017, 03:43:52 PM
 #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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!