Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5.15 Yocto recipe cross-compilation error



  • Hi,

    While trying to configure Qt 5.15 using yocto recipes(rocko branch), it throws the below error:

    do_configure() {
    # Regenerate header files when they are included in source tarball
    # Otherwise cmake files don't set PRIVATE_HEADERS correctly
    rm -rf /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/git/include
    mkdir -p /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/git/.git || true

    # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory"
    touch /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/git/mkspecs/oe-device-extra.pri
    
    MAKEFLAGS="-j 6" /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/git/configure -${QT_EDITION} -confirm-license      -sysroot /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native     -L/home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib     -no-gcc-sysroot     -system-zlib     -qt-pcre     -qt-doubleconversion     -no-accessibility     -no-cups     -no-sql-mysql     -no-sql-sqlite     -no-sql-psql     -no-opengl     -no-vulkan     -no-xcb     -no-icu     -verbose     -release     -prefix /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr     -hostprefix /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr     -bindir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/bin/qt5     -hostbindir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/bin/qt5     -libdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib     -hostlibdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib     -headerdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/include/qt5     -archdatadir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib/qt5     -datadir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/share/qt5     -hostdatadir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib/qt5     -docdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/share/doc/qt5     -sysconfdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/etc/qt5     -no-glib     -no-iconv     -silent     -nomake examples     -nomake tests     -no-rpath     -no-feature-linkat     -platform linux-oe-g++      -no-gui  -no-libpng -no-libjpeg -no-ico -no-gif -no-openssl  || die "Configuring qt failed. QT_CONFIG_FLAGS was      -sysroot /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native     -L/home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib     -no-gcc-sysroot     -system-zlib     -qt-pcre     -qt-doubleconversion     -no-accessibility     -no-cups     -no-sql-mysql     -no-sql-sqlite     -no-sql-psql     -no-opengl     -no-vulkan     -no-xcb     -no-icu     -verbose     -release     -prefix /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr     -hostprefix /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr     -bindir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/bin/qt5     -hostbindir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/bin/qt5     -libdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib     -hostlibdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib     -headerdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/include/qt5     -archdatadir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib/qt5     -datadir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/share/qt5     -hostdatadir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/lib/qt5     -docdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/share/doc/qt5     -sysconfdir /home/target/yocto/yoctoPoky2_4_4_targetImages/build/tmp/work/x86_64-linux/qtbase-native/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/etc/qt5     -no-glib     -no-iconv     -silent     -nomake examples     -nomake tests     -no-rpath     -no-feature-linkat     -platform linux-oe-g++      -no-gui  -no-libpng -no-libjpeg -no-ico -no-gif -no-openssl "
    base_do_configure
    

    }

    Error: make: c: Command not found

    However, the same configuration works with Qt 5.6.

    Appreciate for any suggestions in this regard.

    Best Regards,
    Ramakanth


Log in to reply