Important: Please read the Qt Code of Conduct -

Qt cross build and ./configure ---> how to add include directories?

  • I want to cross compile Qt for raspberry pi.
    But in the "configure" step of qt are some important include directory paths missing. This causes the problem some important headers will not be found (e.g. openssl).

    Relevant output of my ./configure -v [...]

    Global lib dirs: [] [/opt/cross-pi-gcc/lib/gcc/arm-linux-gnueabihf/8.3.0 /opt/cross-pi-gcc/arm-linux-gnueabihf/lib /home/friedemann/raspi/sysroot/lib /home/friedemann/raspi/sysroot/usr/lib]

    Global inc dirs: [] [/opt/cross-pi-gcc/arm-linux-gnueabihf/include/c++/8.3.0 /opt/cross-pi-gcc/arm-linux-gnueabihf/include/c++/8.3.0/arm-linux-gnueabihf /opt/cross-pi-gcc/arm-linux-gnueabihf/include/c++/8.3.0/backward /opt/cross-pi-gcc/lib/gcc/arm-linux-gnueabihf/8.3.0/include /opt/cross-pi-gcc/lib/gcc/arm-linux-gnueabihf/8.3.0/include-fixed /opt/cross-pi-gcc/arm-linux-gnueabihf/include]

    you see that libdirs contains the important folders of my sysroot, but incdir doesn't. How can I fix this?

    Thanks in advance,

  • Lifetime Qt Champion


    Did you install the development packages in your RPi before synchronizing it ?
    Did you synchronize the full sysroot ?

Log in to reply