[Development] Qt5.8/Linux : -version `Qt_5' not found error running lrelease building qttranslations
René J.V. Bertin
rjvbertin at gmail.com
Wed Jan 18 14:51:15 CET 2017
Hello,
On linux I get the following error doing a toplevel style build of most components in qt-everywhere 5.8 :
make: Entering directory `/path/to/build/qttranslations'
cd translations/ && ( test -e Makefile || /path/to/build/qtbase/bin/qmake -o Makefile /path/to/qt-everywhere-opensource-src-5.8.0-rc/qttranslations/translations/translations.pro -qtconf /path/to/build/qtbase/bin/qt.conf -- -platform linux-g++-64 -prefix /opt/local -archdatadir /opt/local/libexec/qt5 -docdir /opt/local/share/doc/qt5 -headerdir /opt/local/include/qt5 -plugindir /opt/local/share/qt5/plugins -importdir /opt/local/share/qt5/imports -qmldir /opt/local/share/qt5/qml -datadir /opt/local/share/qt5 -bindir /opt/local/libexec/qt5/bin -libexecdir /opt/local/libexec/qt5/libexec -translationdir /opt/local/share/qt5/translations -sysconfdir /opt/local/etc/qt5 -examplesdir /opt/local/libexec/qt5/bin/examples -testsdir /opt/local/share/qt5/tests -hostbindir /opt/local/libexec/qt5/bin -hostdatadir /opt/local/share/qt5 -v -release -opensource -confirm-license -shared -libdir /opt/local/libexec/qt5/lib -hostlibdir /opt/local/libexec/qt5/lib -xcb -xcb-xlib -qpa xcb -rpath -R /opt/local/lib -R /opt/local/libexec/qt5/lib -no-reduce-relocations -make libs -make tools -nomake examples -nomake tests -verbose -no-pch -cups -icu -fontconfig -dbus-linked -glib -no-directfb -no-use-gold-linker -optimized-qmake -system-sqlite -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -force-debug-info -no-strip -no-separate-debug-info --reduce-exports ) && make -f Makefile
make[1]: Entering directory `/path/to/build/qttranslations/translations'
/path/to/build/qttranslations/translations/lrelease_wrapper.sh /path/to/qt-everywhere-opensource-src-5.8.0-rc/qttranslations/translations/assistant_hu.ts -qm assistant_hu.qm
Updating 'assistant_hu.qm'...
/path/to/build/qttools/bin/lrelease: relocation error: /path/to/build/qttools/bin/lrelease: symbol _ZN9QtPrivate16QStringList_joinERK11QStringList13QLatin1String, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
make[1]: *** [assistant_hu.qm] Error 127
make[1]: Leaving directory `/path/to/build/qttranslations/translations'
make: *** [sub-translations-make_first] Error 2
make: Leaving directory `/path/to/build/qttranslations'
Command exited with non-zero status 2
%> ldd /path/to/build/qttools/bin/lrelease
linux-vdso.so.1 => (0x00007ffdae338000)
libQt5Xml.so.5 => /opt/local/libexec/qt5/lib/libQt5Xml.so.5 (0x00007f148dac3000)
libQt5Core.so.5 => /opt/local/libexec/qt5/lib/libQt5Core.so.5 (0x00007f148d3dc000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f148d068000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f148cca3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f148ca84000)
libz.so.1 => /opt/local/lib/libz.so.1 (0x00007f148c869000)
libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f148c462000)
libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f148c0e8000)
libpcre16.so.0 => /opt/local/lib/libpcre16.so.0 (0x00007f148be7a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f148bc76000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f148b96d000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f148b765000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f148b45f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f148b247000)
/lib64/ld-linux-x86-64.so.2 (0x000055a67e80e000)
libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f14899da000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f148979b000)
I have configured using -rpath, and the wrapper script sets LD_LIBRARY_PATH correctly as far as I can see so one of the most recent solutions found by Google cannot apply (http://stackoverflow.com/questions/36128645/error-on-execution-version-qt-5-not-found-required-by)
What can this be?
Thanks,
R.
More information about the Development
mailing list