[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 18:46:53 CET 2017


Thiago Macieira wrote:

> Can you confirm whether the problem is
> 
>  a) that _ZN9QtPrivate16QStringList_joinERK11QStringList13QLatin1String isn't
> present in QtCore at all; or

The symbol is present in the 5.8.0 version in the build tree, but not in the 
installed version.

>  b) that the symbol is present, but the Qt_5 ELF version isn't.

How do I check that?

NB: it's only lrelease that fails, all other build steps complete just fine. I 
presume other executables must be called that also require new ABIs/symbols from 
QtCore . Setting LD_LIBRARY_PATH and QT_PLUGIN_PATH by hand I can also run just 
about any existing binary against Qt 5.8 .

> 
>> %> 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)
> 
> Was that the correct QtCore?

That's the installed library, not the one it should be using as long as 5.8.0 
has not been installed.

Something is different between lrelease and other executables: ldd's output 
doesn't change for it when I set LD_LIBRARY_PATH as it does for qtdiag, for 
instance. Both result from the same build:

%> env LD_LIBRARY_PATH=/path/to/destroot/opt/local/libexec/qt5angel/lib 
QT_PLUGIN_PATH=/path/to/destroot/opt/local/share/qt5angel/plugins:/opt/local/share/qt5/plugins 
ldd /path/to/build/qttools/bin/qtdiag 
        linux-vdso.so.1 =>  (0x00007ffef63ed000)
        libQt5Gui.so.5 => 
/path/to/destroot/opt/local/libexec/qt5angel/lib/libQt5Gui.so.5 
(0x00007f2fcd179000)
        libQt5Network.so.5 => 
/path/to/destroot/opt/local/libexec/qt5angel/lib/libQt5Network.so.5 
(0x00007f2fccde7000)
        libQt5Core.so.5 => 
/path/to/destroot/opt/local/libexec/qt5angel/lib/libQt5Core.so.5 
(0x00007f2fcc6fc000)

%> ldd /path/to/build/qttools/bin/qtdiag                                                                                
linux-vdso.so.1 =>  (0x00007ffdbda5c000)
        libQt5Gui.so.5 => /opt/local/libexec/qt5/lib/libQt5Gui.so.5 
(0x00007f417876c000)
        libQt5Network.so.5 => /opt/local/libexec/qt5/lib/libQt5Network.so.5 
(0x00007f41783fd000)
        libQt5Core.so.5 => /opt/local/libexec/qt5/lib/libQt5Core.so.5 
(0x00007f4177d17000)





More information about the Development mailing list