On Wed, Sep 21, 2016 at 08:00:25AM -0700, Thiago Macieira wrote:
> On quarta-feira, 21 de setembro de 2016 10:11:01 PDT probono wrote:
> > ldd not only provides the name of the libraries to be loaded, but also
> > the paths to the locations where they are loaded from. How would I get
> > this information without using ldd?
> 
> Manually.
> 
> First, use the environment variable $LD_LIBRARY_PATH.

> The default search path is known to qmake (variable
> QMAKE_DEFAULT_LIBDIRS)
>
that's the static search path, i.e. just $LIBRARY_PATH.
and it's actually what you want.

> and you can then search the 
> paths from /etc/ld.so.conf & /etc/ld.so.conf.d/*.
> 
that will suffer from x-build issues again.

> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
> 
> _______________________________________________
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to