Qt5 (minimal) on beaglebone, with Yocto

7,271 views

Published on

Qt5 (minimal) on beaglebone, with Yocto

Published in: Technology
3 Comments
6 Likes
Statistics
Notes
  • Hello Sukesh - the minimal plugin and linuxfb plugin do not support a GL context. Please use eglfs or other.
    @sukeshputta - 'Hi one more error when i am trying to run Qt5_CinematicExperience example i am getting below error. root@pcm051-bsp:~# Qt5_CinematicExperience This plugin does not support createPlatformOpenGLContext! /usr/bin/Qt5_CinematicExperience: line 4: 1692 Segmentation fault /usr/share/cinematicexperience-1.0/Qt5_CinematicExperience $* root@pcm051-bsp:~# i am using minimal platform plugin. Need your suggestion. Thanks In Advance'
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • For the Black, you need a framebuffer driver display support. If that is available, you can use the same approach.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi! Great post! I want to learn Yocto and I want to start off with the BeagleBone Black board. Does this procedure apply to this board as well?

    Thanks in advance,
    Henrique
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
7,271
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
77
Comments
3
Likes
6
Embeds 0
No embeds

No notes for slide

Qt5 (minimal) on beaglebone, with Yocto

  1. 1. Qt5 (minimal) on Beaglebone, with Yocto
  2. 2. Introduction• This post publishes the method to build Qt5 for Beaglebone. To build Qt5 for Beaglebone, the below repos are needed:• poky meta-oe meta-ti meta-qt5
  3. 3. Downloading the configuration files$ git clone git://git.yoctoproject.org/poky$ cd poky$ git clone https://github.com/openembedded/meta-oe$ git clone git://git.yoctoproject.org/meta-ti$ git clone git@github.com:prabindh/meta- qt5.git
  4. 4. Adding qt5 to minimal image• Add below line to conf/local.conf (notice the space at start)• IMAGE_INSTALL_append = " qtbase qtbase- tools qtbase-plugins"
  5. 5. Setting Beaglebone as target• Specify Beaglebone as target, as below, in conf/local.conf• MACHINE ?= "beaglebone" BBMASK ?= ".*/meta-ti/recipes- misc/(images|payload)/"
  6. 6. Adding meta-ti and meta-oe layers to Bitbake build system• Add meta-oe and meta-ti, so that it looks like below in conf/bblayers.conf• BBFILES ?= "" BBLAYERS ?= " ${TOPDIR}/../meta ${TOPDIR}/../meta-yocto ${TOPDIR}/../meta-yocto-bsp ${TOPDIR}/../meta-oe/meta-oe ${TOPDIR}/../meta-ti "
  7. 7. Building the image$ source oe-init-build-env$ bitbake core-image-minimal• Creating SD card:• The images (MLO, u-boot, dt, uImage, and rootfs) are available at below folder,• <>/poky/build/tmp/deploy/images• Use mkmmc scripts (or any other standard SD format scripts) to burn these images to SD card.
  8. 8. Running the Qt5 examples with minimal plugin• Boot the Beaglebone, and login in as root.• $>export QT_DEBUG_BACKINGSTORE=1 $>export QT_QPA_PLATFORM=minimal $>cd /usr/bin/qt5/examples/• UI/widget examples (ex, calculator) can be run and output observed from the png file stored in the same folder.
  9. 9. Yocto build configuration used• There was an update after this, but below should give a reference.• BB_VERSION = "1.17.1" BUILD_SYS = "i686-linux" NATIVELSBSTRING = "Ubuntu-12.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "beaglebone" DISTRO = "poky" DISTRO_VERSION = "1.3+snapshot-20130403" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon" meta meta-yocto = "master:c0910f26ea0d692c6d22f2e3f87cf710b31fdf0a" meta-oe = "master:af6c39379dbe6822d1457498e53747ed63bdbb65" meta-ti = "master:ca0f68d71b08de156c4424324466aab0ebc7296f" meta-yocto-bsp = "master:c0910f26ea0d692c6d22f2e3f87cf710b31fdf0a"
  10. 10. TODO and References• TODO:• - fonts are not installed to target, so no text appears• - eglfs with virtual/gles2 configuration update• - wayland update• - Qt 5.1 update• - webkit update• - Beaglebone itself runs only at 250 MHz (!) in the default Yocto core-image-minimal. To update with TI scripts for a better performance profile• References:• https://gist.github.com/errordeveloper/4056193 https://github.com/meta-qt5/• http://gpupowered.org/node/20

×