I’m unable to build QT tests when using the depends system on macOS. I can build the tests fine without using depends. With depends, I can build QT and run all functional tests, using --disable-tests
.
0cd depends
1make
2cd ..
3./configure --prefix=/Users/bitcoin/dev/bitcoin/depends/x86_64-apple-darwin17.7.0
4
5[...]
6qt/test/moc_compattests.cpp:77:1: error: unknown type name 'QT_INIT_METAOBJECT'
7QT_INIT_METAOBJECT const QMetaObject CompatTests::staticMetaObject = {
8^
9qt/test/moc_compattests.cpp:77:20: error: expected unqualified-id
10QT_INIT_METAOBJECT const QMetaObject CompatTests::staticMetaObject = {
11 ^
122 errors generated.
13make[2]: *** [qt/test/test_bitcoin_qt-moc_compattests.o] Error 1
14make[2]: *** Waiting for unfinished jobs....
15qt/test/moc_rpcnestedtests.cpp:77:1: error: unknown type name 'QT_INIT_METAOBJECT'
16QT_INIT_METAOBJECT const QMetaObject RPCNestedTests::staticMetaObject = {
17^
18qt/test/moc_rpcnestedtests.cpp:77:20: error: expected unqualified-id
19QT_INIT_METAOBJECT const QMetaObject RPCNestedTests::staticMetaObject = {
20 ^
212 errors generated.
22make[2]: *** [qt/test/test_bitcoin_qt-moc_rpcnestedtests.o] Error 1