Project

General

Profile

Yocto with Qt5

This page demonstrates how to build Qt5.7 using Yocto Krogoth(2.1).

The following layers will be needed:

repo branch
poky git://git.yoctoproject.org/poky krogoth
openembedded git://git.openembedded.org/meta-openembedded krogoth
openembedded-core git://git.openembedded.org/openembedded-core krogoth
qt5 git://code.qt.io/yocto/meta-qt5.git 5.7
criticallink git://support.criticallink.com/home/git/meta-mitysom-5csx.git krogoth
ti git://git.yoctoproject.org/meta-ti krogoth

Guide

  1. First start by checking out the needed layers
    [users@machine:~] git clone -b krogoth git://git.yoctoproject.org/poky
    [users@machine:~] cd poky
    [users@machine:~/poky] git clone -b krogoth git://support.criticallink.com/home/git/meta-mitysom-5csx.git
    [users@machine:~/poky] git clone -b krogoth git://git.openembedded.org/meta-openembedded
    [users@machine:~/poky] git clone -b 5.7 git://code.qt.io/yocto/meta-qt5.git
    [users@machine:~/poky] git clone -b krogoth https://github.com/openembedded/openembedded-core.git
    [users@machine:~/poky] git clone -b krogoth git://git.yoctoproject.org/meta-ti 
    
  2. Next source the environment setup script
    [users@machine:~/poky] . ./oe-init-build-env
    
  3. Add the needed layers to your conf/bblayers.conf: (*Note: edit the absolute paths to match your system)
    bblayers.conf:
    # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
    # changes incompatibly
    POKY_BBLAYERS_CONF_VERSION = "2" 
    
    BBPATH = "${TOPDIR}" 
    BBFILES ?= "" 
    
    BBLAYERS ?= " \
      /space/dvincelette/poky/meta \
      /space/dvincelette/poky/meta-poky \
      /space/dvincelette/poky/meta-yocto-bsp \
      /space/dvincelette/poky/openembedded-core/meta \
      /space/dvincelette/poky/meta-openembedded/meta-oe \
      /space/dvincelette/poky/meta-qt5 \
      /space/dvincelette/poky/meta-ti \
      /space/dvincelette/poky/meta-mitysom-5csx \
      " 
    
  4. Build the mitysom-image-x11qt5 image
    bitbake mitysom-image-x11qt5
    

Misc

menuconfig fails for poky toolchain

Eror:

> make menuconfig                                                                                                                           
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

In case menuconfig fails with a warning about needing nurses try to install the following:
sudo apt-get install lib32ncurses5-dev
sudo apt-get install lib32ncursesw5-dev

Go to top
Add picture from clipboard (Maximum size: 1 GB)