Skip to content

macOS depends: unknown type name 'QT_INIT_METAOBJECT' for qt/test/moc_compattests.cpp #13752

@Sjors

Description

@Sjors

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.

cd depends
make
cd ..
./configure --prefix=/Users/bitcoin/dev/bitcoin/depends/x86_64-apple-darwin17.7.0

[...]
qt/test/moc_compattests.cpp:77:1: error: unknown type name 'QT_INIT_METAOBJECT'
QT_INIT_METAOBJECT const QMetaObject CompatTests::staticMetaObject = {
^
qt/test/moc_compattests.cpp:77:20: error: expected unqualified-id
QT_INIT_METAOBJECT const QMetaObject CompatTests::staticMetaObject = {
                   ^
2 errors generated.
make[2]: *** [qt/test/test_bitcoin_qt-moc_compattests.o] Error 1
make[2]: *** Waiting for unfinished jobs....
qt/test/moc_rpcnestedtests.cpp:77:1: error: unknown type name 'QT_INIT_METAOBJECT'
QT_INIT_METAOBJECT const QMetaObject RPCNestedTests::staticMetaObject = {
^
qt/test/moc_rpcnestedtests.cpp:77:20: error: expected unqualified-id
QT_INIT_METAOBJECT const QMetaObject RPCNestedTests::staticMetaObject = {
                   ^
2 errors generated.
make[2]: *** [qt/test/test_bitcoin_qt-moc_rpcnestedtests.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions