#/bin/sh

libs()
{
  find lib  -type f -name "*.so.*"
  find plugins  -type f -name "*.so"
  [ -d qml ] && find qml  -type f -name "*.so"
}

libs | while read F
do
  echo $F | sed -e 's/\.so.*//'
  ldd $F | fgrep Qt | sed -e 's/\.so.*=> .*$//' -e 's/lib//' | tr '\n\t ' '  '
  echo ' '
done
