I followed the instructions on:
https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md
Dependencies, "autogen.sh" and "configure" all run smoothly:
brew install autoconf automake berkeley-db4 libtool boost miniupnpc openssl pkg-config protobuf qt5 libevent
./autogen.sh
./configure --with-gui=qt5
But "make" stopped with this error:
CXX qt/qt_bitcoin_qt-bitcoin.o
In file included from qt/bitcoin.cpp:9:
In file included from ./qt/bitcoingui.h:14:
In file included from /usr/local/Cellar/qt5/5.5.1_2/include/QtWidgets/QLabel:1:
In file included from /usr/local/Cellar/qt5/5.5.1_2/include/QtWidgets/qlabel.h:37:
In file included from /usr/local/Cellar/qt5/5.5.1_2/include/QtWidgets/qframe.h:37:
In file included from /usr/local/Cellar/qt5/5.5.1_2/include/QtWidgets/qwidget.h:45:
/usr/local/Cellar/qt5/5.5.1_2/include/QtWidgets/qsizepolicy.h:44:24: error: variable has incomplete type 'class Q_WIDGETS_EXPORT'
class Q_WIDGETS_EXPORT QSizePolicy
^
/usr/local/Cellar/qt5/5.5.1_2/include/QtWidgets/qsizepolicy.h:44:7: note: forward declaration of 'Q_WIDGETS_EXPORT'
class Q_WIDGETS_EXPORT QSizePolicy
^
/usr/local/Cellar/qt5/5.5.1_2/include/QtWidgets/qsizepolicy.h:44:35: error: expected ';' after top level declarator
class Q_WIDGETS_EXPORT QSizePolicy
^
;