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

issue Sjors openend 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.

     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
    
  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:

    0./autogen.sh
    1./configure --prefix=/Users/michael/GitHub/bitcoin/depends/x86_64-apple-darwin17.7.0
    2make check -j5
    3test/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


Sjors fanquake

Labels
macOS


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: 2024-12-19 09:12 UTC

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