|
Re: $LD_LIBRARY_PATH not working
|
01/07/2019 3:20 AM
post119386
|
Re: $LD_LIBRARY_PATH not working
Dear Michael Schuster,
you are absolutely right, should be export PATH=$PATH:xxxxx
After more tests, I realizes that LD_LIBRARY_PATH has no problem at all.
By default, ldd only seach ./ or the current directory. Therefore, ldd have to go with full path, for example (on BBB
target device),
# echo $LD_LIBRARY_PATH
/proc/boot:/base/usr/anm/lib:/proc/boot:/base/usr/lib:/base/lib/dll:/base/lib:/base/lib/dll/font:/lib:/usr/lib:/lib/dll:
/opt/lib:/base/usr/photon/lib:/base/usr/qt5-5.3/lib:/base/usr/lib/torch-webkit
# ldd /base/usr/qt5-5.3/lib/libQt5Quick.so.5
/base/usr/qt5-5.3/lib/libQt5Quick.so.5:
libQt5Quick.so.5 => /base/usr/qt5-5.3/lib/libQt5Quick.so.5.3.1 (0x78000000)
libQt5Qml.so.5 => /base/usr/qt5-5.3/lib/libQt5Qml.so.5.3.1 (0x78400000)
libQt5Network.so.5 => /base/usr/qt5-5.3/lib/libQt5Network.so.5.3.1 (0x78900000)
libsocket.so.3 => /base/lib/libsocket.so.3 (0x783c0000)
libQt5Gui.so.5 => /base/usr/qt5-5.3/lib/libQt5Gui.so.5.3.1 (0x78b00000)
libQt5Core.so.5 => /base/usr/qt5-5.3/lib/libQt5Core.so.5.3.1 (0x79000000)
libm.so.2 => /proc/boot/libm.so.2 (0x788a0000)
libGLESv2.so.1 => /base/usr/lib/libGLESv2.so.1 (0x783e4000)
libEGL.so.1 => /base/usr/lib/libEGL.so.1 (0x783ee000)
libcpp.so.5 => /base/lib/libcpp.so.5 (0x78a60000)
libz.so.2 => /base/usr/lib/libz.so.2 (0x788d0000)
libpng14.so.0 => /base/usr/lib/libpng14.so.0 (0x788e2000)
libslog2.so.1 => /base/lib/libslog2.so.1 (0x783f8000)
libicui18n.so.49 => /base/usr/lib/libicui18n.so.49 (0x79500000)
libicuuc.so.49 => /base/usr/lib/libicuuc.so.49 (0x79610000)
libicudata.so.49 => /base/usr/lib/libicudata.so.49 (0x79700000)
libpps.so.1 => /proc/boot/libpps.so.1 (0x78896000)
libcpp-ne.so.5 => /base/lib/libcpp-ne.so.5 (0x78f90000)
it successfully identified other files from directories such as /base/lib/ and /proc/boot/ etc, which is defined in $
LD_LIBRARY_PATH.
It seems that qtcreator should tell ldd where to find libQt5Quick.so.5, though $LD_LIBRARY_PATH also contains this
directory of /base/usr/qt5-5.3/lib. I am working on that now.
Thanks for help
Mike
|
|
|