QT5.5 on Raspberry Pi

  • Hello,
    I am trying to use the beginners tut http://qt-project.org/wiki/RaspberryPi_Beginners_guide
    Somehow I ended up compiling 5.5.0 ...
    Anyway, not the problem here as I can run any 5.4 application too then right?

    The problem:

    • qlibrary_unix.cpp:(.text+0x1330): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
      /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlopen.o): In function dlopen': (.text+0xc): undefined reference to__dlopen'
      /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlclose.o): In function dlclose': (.text+0x0): undefined reference to__dlclose'
      /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlsym.o): In function dlsym': (.text+0xc): undefined reference to__dlsym'
      /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.a(dlerror.o): In function dlerror': (.text+0x0): undefined reference to__dlerror'
      /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libm.a(feholdexcpt.o): In function feholdexcept': (.text+0x48): undefined reference to_dl_hwcap'
      /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libm.a(fesetenv.o): In function fesetenv': (.text+0x64): undefined reference to_dl_hwcap'
      collect2: error: ld returned 1 exit status
      Makefile:1207: recipe for target '../../lib/libQt5Core.so.5.5.0' failed
      make[2]: *** [../../lib/libQt5Core.so.5.5.0] Error 1
      make[2]: Leaving directory '/home/tueco/opt/qt5/qtbase/src/corelib'
      Makefile:170: recipe for target 'sub-corelib-make_first' failed
      make[1]: *** [sub-corelib-make_first] Error 2
      make[1]: Leaving directory '/home/tueco/opt/qt5/qtbase/src'
      Makefile:45: recipe for target 'sub-src-make_first' failed
      make: *** [sub-src-make_first] Error 2

    Anyone a clue?

  • @sneubert
    Thanks! However, when I execute it I get this:

    • tueco@ubuntu:~/opt/cross-compile-tools$ sudo ./fixQualifiedLibraryPaths
      usage ./cmd target-rootfs path-to-target-toolchain-compiler

    I'm not really sure what to do with it now..

    nvm figured it out.. it's even in the tutorial.. totally looked over it!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.