[Qt-interest] different QTDIR on development machine and target

Srdjan Todorovic todorovic.s at googlemail.com
Tue Apr 21 15:58:28 CEST 2009


Hi,

2009/4/21 Markus Franke <Franke.M at sebakmt.com>:
>
> Dear all,
>
> I have several different Qt versions installed on my development system. All
> versions are located under "/usr/local/qt-<VERSION_NUMBER>", e.g.
> qt-embedded-4.5.0, qt-x11-4.4.3, and so on.
>
> If I compile a QT application against one of those libraries the same path
> is needed on the target machine when executing the application. That's not
> really nice I think.
> Is there a way to specify the current QT directory on the target by setting
> something like an environment variable (e.g. QTDIR) before running the
> application?

Does this not work?

   export QTDIR=/my/special/qt/path
   export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
   ./my_special_application -myargs

Regards,
Srdjan



More information about the Qt-interest-old mailing list