Skip to content

dmacattack/tinkerboard-yocto-qt5-eglfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 44.7%
  • BitBake 23.6%
  • PHP 6.5%
  • Shell 5.9%
  • C 5.1%
  • Roff 4.0%
  • Other 10.2%