[Qt-jambi-interest] Using the system qt4 libs

Erwin Mueller devent.ml at deventm.org
Tue Aug 4 10:51:52 CEST 2009


On Tuesday 04 August 2009 18:20:28 Eskil Abrahamsen Blomfeldt wrote:
> Erwin Mueller wrote:
> > I just wonder if I can use the libQtCore, libQtGui, and so on, from my
> > system for Qt Jambi and have these in the jar archive as a fallback
> > libraries, if on an another system this libraries are not installed?
>
> Hi, Erwin.
>
> If you want to use the system libraries to run Qt Jambi, you need to
> manually build Qt Jambi against these libraries to ensure binary
> compatibility. You can then not use Qt Jambi's method of deploying the
> libraries in .jar-files, as there are measures taken in the code to
> avoid loading libraries which are not contained in the .jar-file (e.g.
> to avoid loading system libraries which are binary incompatible with the
> Qt Jambi binaries.)
>
> If you want to use the system libraries for deployment, you would
> typically use the regular LD_LIBRARY_PATH way of resolving libraries.
>
> -- Eskil

Thank you. So I could use LD_LIBRARY_PATH to point to /usr/lib64 or /usr/lib 
and if there are no compatible libraries are found then the one in the jar 
archive are used?

Just tested it on my system and it appears to work. I put two libraries paths, 
one is /usr/lib64 and the other one is $JAMBI/lib. The first one will be 
searched first and then the latter.

Erwin.



More information about the Qt-jambi-interest mailing list