0

I'm setting LD_LIBRARY_PATH to make newer Qt Mobility be used instead of the older one, so that the non-native apps can use it.

export LD_LIBRARY_PATH=/opt/qtm12/lib

One of the libraries is libQtSensors.so.1

but still,

/usr/lib/libQtSensors.so.1

is used instead of

/opt/qtm12/lib/libQtSensors.so.1

If I LD_PRELOAD the second library, everything is working, but I can't just preload all the qt mobility libraries, as it's not a library that is used always.

What am I doing wrong?

marmistrz
  • 5,296
  • 9
  • 31
  • 84
  • what is your OS/distribution? – user827992 Aug 12 '12 at 14:06
  • I'm using this on Maemo. LD_DEBUG=all tells nothing. Adding /opt/qtm12/lib to /etc/ld.so.conf.d/somefile.conf fixes nothing it seems that /usr/lib etc. stuff is taken if lib from other location is not preloaded – marmistrz Aug 18 '12 at 14:54

1 Answers1

0
$echo "/opt/qtm12/lib/" > /etc/ld.so.conf.d/qtm12.txt

$ldconfig -v 
Satish
  • 13,709
  • 26
  • 80
  • 130