This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Qt update in SDK build

Part Number: AM5728

Hello,

Following this as a reference (e2e.ti.com/.../2361809, I want to update the QT version in my SDK build from 5.7 to 5.8 or 5.9.


I am following the steps outlined by Kemal, however I am not sure of the exact change needed on the meta-qt5 line in the processor-sdk-04.01.00.06-config.txt file. I would appreciate clarification on the change and if this is the correct approach.


Thanks,
Vishal

  • The software team have been notified. They will respond here.
  • Hello Vishal,

    For Qt 5.9.3 use this line: meta-qt5,git://github.com/meta-qt5/meta-qt5.git,rocko-next,cc53be36efbe2c358b1c3049159d0c31f0d48042,layers=
    It is the newest Qt version which you can currently have. This update to 5.9.3 has done 5 hours ago.

    Best regards,
    Kemal

  • Hi Kemal,

    Thanks for the reply.

    I keep getting an error right at the start of the yocto build:

    ERROR: ParseError at /home/vishal/Yocto/tisdk/sources/meta-browser/recipes-browser/chromium/chromium-gn.inc:3: Could not include required file gn-utils.inc

    I am following this script:

    git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    
    cd tisdk/configs/processor-sdk
    nano processor-sdk-04.01.00.06-config.txt
    cd ../..
    
    ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.01.00.06-config.txt
    mkdir downloads
    cd downloads
    
    # Assuming src file downloaded to $HOME/Downloads
    tar xvf $HOME/Downloads/am57xx-evm-linux-sdk-arago-src-04.01.00.06.tar.xz
    am57xx-evm-linux-sdk-arago-src-04.01.00.06/get_build_sources.sh am57xx-evm-linux-sdk-arago-src-04.01.00.06/source_pkg_list.txt
    cd ..
    cd build
    . conf/setenv
    export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    MACHINE=am57xx-evm bitbake arago-core-tisdk-image

    What am I doing wrong? I may have had an incomplete build from before, not sure if that is causing the error. The error occurs with and without the meta-qt5 line change.

    Thanks,

    Vishal

  • You have an unidentified chromium-gn.inc file object on your OE build system. Who put it there? Delete it!

  • When I delete the /tisdk/sources/meta-browser/recipes-browser/chromium/chromium-gn.inc file, the other files in the chromium folder need it as a dependency and I get similar errors.
  • Delete everything and start from the beginning. I do not have that chromium-gn.inc file on my meta-browser layer.

  • Hi Kemal,

    The build now runs, but I am getting an error that did not come up before the meta-qt5 change:

    ERROR: /home/vishal/Yocto/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb: Error executing a python function in <code>:
    

    ERROR: /home/vishal/Yocto/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb: Error executing a python function in <code>:
    
    The stack trace of python calls that resulted in this exception/failure was:
    File: '<code>', lineno: 13, function: <module>
         0009:__anon_35__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_devshell_bbclass(d)
         0010:__anon_108__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_sstate_bbclass(d)
         0011:__anon_45__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_blacklist_bbclass(d)
         0012:__anon_158__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_siteinfo_bbclass(d)
     *** 0013:__anon_15__home_vishal_Yocto_tisdk_sources_meta_qt5_recipes_multimedia_gstreamer_gstreamer1_0_plugins_bad___bbappend(d)
    File: '/home/vishal/Yocto/tisdk/sources/meta-qt5/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend', lineno: 12, function: __anon_15__home_vishal_Yocto_tisdk_sources_meta_qt5_recipes_multimedia_gstreamer_gstreamer1_0_plugins_bad___bbappend
         0008:
         0009:# The GStreamer Qt5 plugin needs desktop OpenGL or OpenGL ES to work, so make sure it is enabled
         0010:python() {
         0011:    cur_packageconfig = d.getVar('PACKAGECONFIG').split()
     *** 0012:    if 'qt5' in cur_packageconfig and not (('opengl' in cur_packageconfig) or ('gles2' in cur_packageconfig)):
         0013:        gl_packageconfig = d.getVar('PACKAGECONFIG_GL')
         0014:        d.appendVar('PACKAGECONFIG', ' ' + gl_packageconfig)
         0015:}
    Exception: TypeError: getVar() missing 1 required positional argument: 'expand'
    
    ERROR: Failed to parse recipe: /home/vishal/Yocto/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb
    ERROR: /home/vishal/Yocto/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bb: Error executing a python function in <code>:
    
    The stack trace of python calls that resulted in this exception/failure was:
    File: '<code>', lineno: 13, function: <module>
         0009:__anon_35__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_devshell_bbclass(d)
         0010:__anon_108__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_sstate_bbclass(d)
         0011:__anon_45__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_blacklist_bbclass(d)
         0012:__anon_158__home_vishal_Yocto_tisdk_sources_oe_core_meta_classes_siteinfo_bbclass(d)
     *** 0013:__anon_15__home_vishal_Yocto_tisdk_sources_meta_qt5_recipes_multimedia_gstreamer_gstreamer1_0_plugins_bad___bbappend(d)
    File: '/home/vishal/Yocto/tisdk/sources/meta-qt5/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend', lineno: 12, function: __anon_15__home_vishal_Yocto_tisdk_sources_meta_qt5_recipes_multimedia_gstreamer_gstreamer1_0_plugins_bad___bbappend
         0008:
         0009:# The GStreamer Qt5 plugin needs desktop OpenGL or OpenGL ES to work, so make sure it is enabled
         0010:python() {
         0011:    cur_packageconfig = d.getVar('PACKAGECONFIG').split()
     *** 0012:    if 'qt5' in cur_packageconfig and not (('opengl' in cur_packageconfig) or ('gles2' in cur_packageconfig)):
         0013:        gl_packageconfig = d.getVar('PACKAGECONFIG_GL')
         0014:        d.appendVar('PACKAGECONFIG', ' ' + gl_packageconfig)
         0015:}
    Exception: TypeError: getVar() missing 1 required positional argument: 'expand'
    

  • Read this:
    0009:# The GStreamer Qt5 plugin needs desktop OpenGL or OpenGL ES to work, so make sure it is enabled
    0010:"python()" {
    0011: cur_packageconfig = d.getVar('PACKAGECONFIG').split()
    *** 0012: if 'qt5' in cur_packageconfig and not (('opengl' in cur_packageconfig) or ('gles2' in cur_packageconfig)):
    0013: gl_packageconfig = d.getVar('PACKAGECONFIG_GL')
    0014: d.appendVar('PACKAGECONFIG', ' ' + gl_packageconfig)
    0015:}
    Exception: TypeError: getVar() missing 1 required positional argument: 'expand'

  • I haven't changed anything else in the yocto build though, beside the meta-qt5 layer. I would assume that the gles2 package was already included? If not, how can I include the gles2 package?

    Thanks,
  • Compare the source of old and new meta-qt5 layer and find how the gles2 is included.
  • Hi Kemal,

    Apologies for the delayed reply. I have tried to compare the meta-qt5 layers between morty and rocko-next, but I do not see what is causing the error. I am using this to see the difference:

    github.com/.../rocko-next...morty

    Is this the right approach?

    Thanks,
    Vishal
  • You are comparing the source revisions. You need to dive deeper and see what changes these meta-data introduces.