[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 21:24:45 CET 2017


Thiago Macieira wrote:


> I see that the QStringList::join(QLatin1String) overload was added in 5.8.
> Does t mean that the installed version is 5.7 or earlier?

Yes, 5.7.1 .

> Ok, so that is the problem. The question is why LD_LIBRARY_PATH was not
> properly set. Or...

During the build lrelease is invoked through a wrapper which sets

LD_LIBRARY_PATH=/path/to/build/qtbase/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

that looks correct to me.


> Check the lrelease binary with objdump -p: do you set RPATH? Do you see
> RUNPATH?

That must be it:

For lrelease:
  RPATH                $ORIGIN/../lib:/opt/local/lib:/opt/local/libexec/qt5/lib

For qtdiag:
  RUNPATH              $ORIGIN/../lib:/opt/local/lib:/opt/local/libexec/qt5/lib

R





More information about the Development mailing list