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

issue Sjors opened this issue on July 24, 2018
  1. Sjors commented at 2:15 PM on July 24, 2018: member

    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
    
  2. fanquake added the label macOS on Jul 24, 2018
  3. fanquake commented at 2:59 PM on August 2, 2018: member

    I've not been able to recreate this on macOS 10.13.6, 1ef57a9, using:

    ./autogen.sh
    ./configure --prefix=/Users/michael/GitHub/bitcoin/depends/x86_64-apple-darwin17.7.0
    make check -j5
    test/functional/test_runner.py
    

    All tests pass successfully.

    One possibly related Qt patch I've found is https://codereview.qt-project.org/#/c/221071/.

  4. Sjors commented at 3:47 PM on August 2, 2018: member

    This problem went away for me as well, I was able to build depends on master today.

  5. Sjors closed this on Aug 2, 2018

  6. DrahtBot locked this on Sep 8, 2021
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me