Build with official Qt binary installer fails #14723

issue hebasto opened this issue on November 13, 2018
  1. hebasto commented at 10:54 PM on November 13, 2018: member

    My Linux has system-wide Qt 5.9.5. For testing purpose I'm trying to build Bitcoin Core against other Qt version which is installed from the official Qt's site (e.g., Qt 5.10.1):

    export PKG_CONFIG_PATH=/home/hebasto/Qt/5.10.1/gcc_64/lib/pkgconfig
    ./configure --with-gui=qt5
    make
    

    It produces weird linker's error related to Qt itself:

      CXXLD    qt/test/test_bitcoin-qt
    qt/test/qt_test_test_bitcoin_qt-addressbooktests.o: In function `(anonymous namespace)::EditAddressAndSubmit(EditAddressDialog*, QString const&, QString const&, QString) [clone .constprop.863]':
    /home/hebasto/Qt/5.10.1/gcc_64/include/QtTest/qtest.h:70: undefined reference to `QTest::toPrettyUnicode(QStringView)'
    /home/hebasto/Qt/5.10.1/gcc_64/include/QtTest/qtest.h:70: undefined reference to `QTest::toPrettyUnicode(QStringView)'
    ...
    Makefile:4034: recipe for target 'qt/test/test_bitcoin-qt' failed
    ...
    

    What am I doing wrong?

  2. fanquake added the label GUI on Nov 13, 2018
  3. fanquake added the label Linux/Unix on Nov 13, 2018
  4. mruddy commented at 12:01 AM on November 14, 2018: contributor

    Not sure, but it looks like the signature of that function changed between 5.9 and 5.10: https://doc.qt.io/qt-5.9/qtest.html#toPrettyUnicode https://doc.qt.io/archives/qt-5.10/qtest.html#toPrettyUnicode

    Maybe there's something that you can piece together given the info here?: https://github.com/bitcoin/bitcoin/tree/master/depends https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk

  5. hebasto commented at 11:54 PM on January 19, 2019: member
  6. hebasto closed this on Jan 19, 2019

  7. hebasto commented at 12:49 PM on January 20, 2019: member
  8. MarcoFalke locked this on Dec 16, 2021
Contributors

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-05-03 21:15 UTC

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