spedagadi / tinkerboard-yocto-qt5-eglfs

Console based Yocto QT5 image for Tinkerboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tinkerboard - QT5 Yocto (Console based - Tested on Ubuntu 16.04 64 bit PC)

This is a console based Yocto QT5 image for Tinkerboard using eglfs for rendering

Prebuilt toolchain/SDK https://drive.google.com/open?id=0B2aU6UdMlrQbRnpEMURhRW9Ebzg

Prebuilt OS image - https://drive.google.com/open?id=0B2aU6UdMlrQbQ0tTbE9VRHhDQjQ

Building a fresh Yocto image

Browse to the cloned directory, then type

$ . ./setup-environment

$ bitbake core-image-base

The build/local.conf file in this repo adds a number of QT5 libraries and applications. All the example apps can be found under /usr/share/ To run each of the example apps pass -platform eglfs as additonal argument.

EG:

$ cd /usr/share/cinematicexperience-1.0

$ ./Qt5_CinematicExperience -platform eglfs

For completeness, the instructions on building toolchain and preparing QTCreator are provided below (source)

Building tool chain

$ bitbake meta-toolchain-qt5

$ apt-get install qtcreator

$ sh -glibc-x86_64-meta-toolchain-qt5-cortexa17hf-neon-vfpv4-toolchain-2.2.1.sh

Configuring QTCreator

$ cd /opt//2.2.1

$ . ./environment-setup-cortexa17hf-neon-vfpv4-rk-linux-gnueabi

$ qtcreator

In QtCreator go to Tools > Options > Devices and add "rockchip" as a generic linux device. go to Tools > Options > Build & Run and:

  • Add a new compiler. Select your compiler: /opt//2.2.1/sysroots/x86_64-rksdk-linux/usr/bin/arm-rk-linux-gnueabi/arm-rk-linux-gnueabi-g++
  • Add your new cross compiled Qt version by selecting the qmake located in /opt//2.2.1/sysroots/x86_64-rksdk-linux/usr/bin/qt5
  • Add a new kit selecting your new Qt5 version and compiler and setting the sysroot to /opt//2.2.1/sysroots/cortexa17hf-neon-vfpv4-rk-linux-gnueabi and set the Qt mkspec to "linux-oe-g++".
  • Finally select your "rockchip" for the device.

About

Console based Yocto QT5 image for Tinkerboard


Languages

Language:Python 44.7%Language:BitBake 23.6%Language:Shell 5.9%Language:PHP 5.3%Language:C 5.1%Language:Roff 4.0%Language:C++ 2.5%Language:HTML 2.5%Language:JavaScript 1.8%Language:Assembly 1.6%Language:SourcePawn 1.5%Language:M4 0.5%Language:Makefile 0.4%Language:CSS 0.3%Language:Perl 0.1%Language:BlitzBasic 0.1%Language:Vim Script 0.1%Language:Pascal 0.0%Language:CMake 0.0%Language:XSLT 0.0%Language:Lua 0.0%Language:Awk 0.0%