Qt World Summit: Register Today!

Qt 5.15 meta-qt5 yocto build

  • Am trying to build qt5.15.2 with eglfs and opengl es2 without wayland and x11 using yocto on TI AM3358 device inorder to run QtQuick and QtQuickControls and it throws errors.

    Added below in conf:

    DISTRO_FEATURES_append = " opengl"

    DISTRO_FEATURES_remove = "x11 wayland"

    Added below in qtbase_git.bbappend:
    PACKAGECONFIG[gold-linker] = "-use-gold-linker,-no-use-gold-linker"
    PACKAGECONFIG[sql-plugin-sqlite] = "-system-sqlite -plugin-sql-sqlite,-no-sql-sqlite,sqlite3"
    PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug"
    PACKAGECONFIG[qreal-float] = "-qreal float,"
    PACKAGECONFIG += "gles2"
    PACKAGECONFIG_append= "eglfs sql-plugin-sqlite freetype fontconfig icu accessibility glib harfbuzz pcre qreal-float tslib"
    PACKAGECONFIG_remove = "xcb linuxfb pulseaudio tools iconv alsa dbus gold-linker evdev openssl"

    However, it throws below errors after building qtbase through yocto:
    .../../../../git/config.tests/unix/opengles2/opengles2.cpp:38:25: fatal error: GLES2/gl2.h: No such file or directory
    compilation terminated.

    Makefile:177: recipe for target 'opengles2.o' failed
    make: *** [opengles2.o] Error 1

    Makefile:177: recipe for target 'opengles2.o' failed
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.0 disabled.

    It uses https://github.com/meta-qt5/meta-qt5 with the above changes in conf and qtbase_git.bbappend.
    Any thoughts on how to resolve the same if I need to add includes in any mkspecs or any changes in bbappend ?

    Best Regards,

Log in to reply