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):
0export PKG_CONFIG_PATH=/home/hebasto/Qt/5.10.1/gcc_64/lib/pkgconfig
1./configure --with-gui=qt5
2make
It produces weird linker’s error related to Qt itself:
0 CXXLD qt/test/test_bitcoin-qt
1qt/test/qt_test_test_bitcoin_qt-addressbooktests.o: In function `(anonymous namespace)::EditAddressAndSubmit(EditAddressDialog*, QString const&, QString const&, QString) [clone .constprop.863]':
2/home/hebasto/Qt/5.10.1/gcc_64/include/QtTest/qtest.h:70: undefined reference to `QTest::toPrettyUnicode(QStringView)'
3/home/hebasto/Qt/5.10.1/gcc_64/include/QtTest/qtest.h:70: undefined reference to `QTest::toPrettyUnicode(QStringView)'
4...
5Makefile:4034: recipe for target 'qt/test/test_bitcoin-qt' failed
6...
What am I doing wrong?