cross-compiling Qt 5.6 for HW accelerated OpenGL with eglfs on Raspbian Jessie



  • my configure script :
    ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/raspberry/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/raspberry/raspi/qt5pi -hostprefix ~/raspi/qt5 -v

    how kann i fix broken symlinks ?





  • @sneubert i work with this tutorial but i get some problem by the configuration and i would like
    to fix broken symlinks with fixQualifiedLibraryPaths script how does it work?

    my error:

    /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libz.so: Datei oder Verzeichnis nicht gefunden
    /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libglib-2.0.so: Datei oder Verzeichnis nicht gefunden
    /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/librt.so: Datei oder Verzeichnis nicht gefunden
    /home/raspberry/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /home/raspberry/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libm.so: Datei oder Verzeichnis nicht gefunden
    collect2: error: ld returned 1 exit status
    Makefile:1210: recipe for target '../../lib/libQt5Core.so.5.6.0' failed
    make[2]: *** [../../lib/libQt5Core.so.5.6.0] Error 1
    make[2]: Leaving directory '/home/raspberry/raspi/qtbase/src/corelib'
    Makefile:194: recipe for target 'sub-corelib-make_first' failed
    make[1]: *** [sub-corelib-make_first] Error 2
    make[1]: Leaving directory '/home/raspberry/raspi/qtbase/src'
    Makefile:45: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2



  • The fixQualifiedLibraryPaths skript does not work well. the sysroot-relativelinks.py is working. Maybe the rsync was not succesfull. You have to pay attention on the rsync arguments. Especially make sure that there are no trailing backslashes in the path arguments.



  • @sneubert ...

    according to the turials folowing habe been yes.
    but in my case by the configure summary libinput and dev are not yes.they are no
    how can i do the they be yes please?
    Evdev .................. yes
    FontConfig ............. yes
    FreeType ............... yes (system library)
    ...
    libinput................ yes
    ...
    OpenGL / OpenVG:
    EGL .................. yes
    OpenGL ............... yes (OpenGL ES 2.0+)
    QPA backends:
    EGLFS ................ yes
    ...
    EGLFS Raspberry Pi . yes
    ...
    LinuxFB .............. yes
    ...
    udev ................... yes
    xkbcommon-evdev......... yes


Log in to reply
 

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