This error seems to appear when brew install qt@5
is installed at the same time as: brew install qt
. (ie, qt version 6):
0% brew list --version | grep qt
1
2qt 6.3.1_1
3qt@5 5.15.5_1
0Making all in src
1 CXX qt/libbitcoinqt_a-bantablemodel.o
2In file included from qt/bantablemodel.cpp:14:
3In file included from /usr/local/Cellar/qt@5/5.15.5_1/lib/QtCore.framework/Headers/QLocale:1:
4/usr/local/Cellar/qt@5/5.15.5_1/lib/QtCore.framework/Headers/qlocale.h:1028:25: error: unknown type name 'QStringRef'; did you mean 'CFStringRef'?
5 short toShort(const QStringRef &s, bool *ok = nullptr) const;
6 ^~~~~~~~~~
7 CFStringRef
8/usr/local/include/QtCore/qdebug.h:531:1: note: 'CFStringRef' declared here
9Q_FORWARD_DECLARE_CF_TYPE(CFString);
10^
11/usr/local/include/QtCore/qglobal.h:802:77: note: expanded from macro 'Q_FORWARD_DECLARE_CF_TYPE'
12# define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct __ ## type * type ## Ref
13 ^
14<scratch space>:112:1: note: expanded from here
15CFStringRef
16^
0% git clean -ffxd
1% git rev-parse HEAD
2e191fac4f3c37820f0618f72f0a8e8b524531ab8
3% ./autogen.sh
4% ./configure
5% make
output: https://gist.github.com/da2ce7/c697259e204c961876ad7f7057e95b34
config.log: https://gist.github.com/da2ce7/ec7276de7d0284681cd73b0cdcb90f3b
brew list –version –formulae: https://gist.github.com/da2ce7/25d6473224a1d69a28cf24e44abb55b7
Originally posted by @da2ce7 in #21901 (comment)