Changes between Initial Version and Version 1 of buildroot/qt


Ignore:
Timestamp:
11/01/2019 12:27:41 AM (3 years ago)
Author:
Cale Collins
Comment:

first draft

Legend:

Unmodified
Added
Removed
Modified
  • buildroot/qt

    v1 v1  
     1= Introduction to QT in Buildroot
     2
     3An embedded solution may require a custom graphical interface.  Buildroot and QT makes for an efficient lightweight solution.
     4
     5This guide will walk you through the necessary steps to create a bootable media containing Buildroot and the QT5 Cinematic Experience.  With little adaptation this information can be used to create file systems which support a gamut of QT applications. 
     6
     7- https://github.com/rzr/qt5-cinematic-experience (webpage)
     8- https://www.youtube.com/watch?v=kBNelaiCJZg (youtube video)
     9
     10= Building the demo
     11
     12== Recommended hardware
     13
     14- GW54xx
     15- HDMI monitor
     16- Mini HDMI cable to HDMI (for connecting the board and monitor together)
     17- MicroSD card
     18- Power cables
     19- Ethernet
     20
     21** Optionally a different board or video periperhal can be used, this will require adapting the instructions below appropreately. **
     22
     23== Creating Buildroot tarball
     24
     25Clone buildroot:
     26
     27{{{#!bash
     28git clone https://github.com/buildroot/buildroot.git
     29}}}
     30
     31Apply the patch attached to this page:
     32
     33{{{#!bash
     34git am 0001-add-Gateworks-Ventana-Qt5-Cinematic-Experience-demo-.patch
     35}}}
     36
     37This config file will create a build config which enables the necessary QT components, the demo we will be testing, a custom kernel version of 5.4.0, and GW54xx deivce trees, among other things.  Make adaptations as necessary for the hardware you have on hand and which ever kernel version you find most appropriate, though you will want to use one with hardware acceleration support.  The other file that will be created by the patch will appear in the /root directory and will be used for configuring QT once in userspace. 
     38
     39** Compiling:
     40
     41Ensure your build is clean.
     42{{{#!bash
     43make distclean
     44}}}
     45
     46Load the config created by the patch.
     47{{{#!bash
     48make imx6-gwventana-gt5_defconfig
     49}}}
     50
     51Build buildroot.
     52{{{#!bash
     53make
     54}}}
     55
     56Verify the output file is present.
     57
     58{{{#!bash
     59ls output/images/rootfs.tar
     60}}}
     61
     62Follow the instructions on [wiki:/linux/blockdev this page] to create a bootable block storage device using the created tarball.
     63
     64= Running the Demo
     65
     66Login as "root"
     67
     68Export EGLFS video mode settings:
     69
     70{{{#!bash
     71export QT_QPA_EGLFS_KMS_CONFIG=/root/ventana.json
     72export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
     73}}}
     74
     75Execute the demo:
     76{{{#!bash
     77/usr/share/Qt5/CinematicExperience/Qt5_CinematicExperience
     78}}}
     79= Conclusion
     80
     81This concludes how to build and install the QT5 Cinematic Experience demo in buildroot.  Using "make menuconfig" many different QT applications can be build into buildroot, enjoy experimenting with these various packages.