Qt World Summit: Register Today!

Issue running apps compiled and deployed with QtCreator: cannot find QT libs

  • I fully installed qt5 and its toolchain following the guidelines at http://qt-project.org/wiki/RaspberryPi_Beginners_Guide

    QT ended being installed not in opt but in /usr/local/qt5pi/ (is this normal ?)

    When I try to run hello-qtonpi (or helloworld sample), it fails telling me it cannot find libQtQuick.so.5.0.0
    Setting LD_LIBRARY_PATH does not change anything which is quite surprising,

    side note : ldd tells me hello-qtonpi is not a dynamic executable

    any help appreciated

  • That guide uses @-prefix /usr/local/qt5pi@ "-prefix <dir> ...... This will install everything relative to <dir>"

    ldd tells you binary is not dynamic executable if binary is not compiled for right architecture.
    Did you use right ldd?
    You can check arch of binary using file:
    @$ file hellopi
    hellopi: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped@

  • It is easy to use /opt/qt5 on your PC and RPi too....

  • Tomma,

    Thanks for the reply. Yes ldd confirms that my executable is an ARM executable :(

Log in to reply