Discussion
https://bugreports.qt.io/browse/QTBUG-73151
Preconditions
-
Ubuntu 18.04.1 LTS, minimal installation without preinstalled Qt.
-
All other dependencies are installed.
-
Successful completion of the following commands:
make distclean
./configure --without-gui
make
make check
test/functional/test_runner.py
Qt Open Source
Install any version of Qt Open Source with the Qt Online Installer for Linux (64-bit).
In the following, Qt version 5.12.0 will be used as an example.
Assume that Qt is installed in the home directory:
QTDIR=/home/hebasto/Qt/5.12.0/gcc_64
Configure dynamic linker run-time bindings:
sudo bash -c 'echo /home/hebasto/Qt/5.12.0/gcc_64/lib > /etc/ld.so.conf.d/Qt.conf'
sudo ldconfig
Fix libQt5*.la
files (Core, Gui, Widgets, Network, DBus, Test):
--- old/Qt/5.12.0/gcc_64/lib/libQt5Gui.la
+++ new/Qt/5.12.0/gcc_64/lib/libQt5Gui.la
@@ -10,7 +10,7 @@
old_library='libQt5Gui.a'
# Libraries that this one depends upon.
-dependency_libs='-L=/home/hebasto/Qt/5.12.0/gcc_64/lib -lQt5Core -lpthread '
+dependency_libs='-L/home/hebasto/Qt/5.12.0/gcc_64/lib -lQt5Core -lpthread '
# Version information for libQt5Gui.la
current=62
@@ -25,4 +25,4 @@
dlpreopen=''
# Directory that this library needs to be installed in:
-libdir='=/home/hebasto/Qt/5.12.0/gcc_64/lib'
+libdir='/home/hebasto/Qt/5.12.0/gcc_64/lib'
Bitcoin Core
make distclean
./configure PKG_CONFIG_PATH=${QTDIR}/lib/pkgconfig
make
Q.E.F.