Qt World Summit: Submit your Presentation

RaspberryPi3B cross compile error

  • Hi,

    during execution:

    ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/home/jakub/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -no-use-gold-linker -v -no-gbm

    I got an error:

    > In file included from /home/jakub/raspi/qt-everywhere-src-5.12.5/qtwebengine/config.tests/hostcompiler/main.cpp:29:0:
    > /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
    >  #include <bits/libc-header-start.h>
    >           ^~~~~~~~~~~~~~~~~~~~~~~~~~
    > compilation terminated.
    > Makefile:169: recipe for target 'main.o' failed
    > make: *** [main.o] Error 1
    test config.qtwebengine_core.tests.webengine-host-compiler FAILED
    Done running configuration tests.

    How could I fix that? Should file "bits/libc-header-start.h" be installed on raspberry and then synchronized by "rsync"?

Log in to reply