Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:applications:qt5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim4:applications:qt5 [2022/07/05 02:10]
frank Add QT5
products:sbc:vim4:applications:qt5 [2022/07/13 05:39] (current)
nick
Line 1: Line 1:
-====== QT5 ====== +====== VIM4 QT5 ======
- +
-===== Introduction ===== +
- +
-This document is mainly QT5 library. You will learn how to install QT5, set it up and test it. +
- +
-<WRAP info > +
-The default QT packages from Ubuntu official are built with OpenGL Desktop support, but for VIMs, there don’t have Mali GPU driver under X11, so you can’t use QT with GPU.In order to use QT with GPU (fbdev), we have rebuilt the QT packages with eglfs Mali GPU support. +
-</WRAP> +
- +
-<WRAP alert > +
-  * Only support Framebuffer Console mode. +
-  * Install this version of library will break some official packages which depend on this library. +
-  * The QT5 with eglfs Mali GPU (fbdev) only supports Ubuntu 20.04 Linux 4.9 +
-</WRAP> +
- +
-===== System Configuration ===== +
- +
-Please make sure you use the latest image, if not please follow [[/products/sbc/common/configurations/upgrade-system|Upgrade The System]] to upgrade your system. +
- +
-Install QT5 packages. +
- +
-```sh +
-$ sudo apt update +
-$ sudo apt install qt5-default qtbase5-examples +
-$ mkdir /tmp/qt5 +
-$ cd /tmp/qt5 +
-$ wget https://dl.khadas.com/repos/debs/vim3/focal/qt5/libqt5gui5_5.12.8%2Bdfsg-0ubuntu2_arm64.deb +
-$ sudo dpkg -i libqt5gui5_5.12.8+dfsg-0ubuntu2_arm64.deb +
-``` +
-===== Demonstrate ===== +
- +
-Switch to Framebuffer mode.For desktop image, you can use ''Ctrl''+''Alt''+''F1'' to switch to framebuffer console mode. +
- +
-Setup the environment variables below. +
-```sh +
-$ export QT_QPA_PLATFORM=eglfs +
-$ export QT_QPA_EGLFS_INTEGRATION=eglfs_mali +
-``` +
- +
-Run test: +
- +
-```sh +
-$ /usr/lib/aarch64-linux-gnu/qt5/examples/opengl/qopenglwidget/qopenglwidget +
-``` +
- +
-If every thing works you will see the QT demo running on screen.  +
- +
-<WRAP info > +
-For more demos, please check ''/usr/lib/aarch64-linux-gnu/qt5/examples''+
-</WRAP> +
- +
-===== Troubleshooting ===== +
- +
-When you install such version of library you will break some packages (such as qtcreator) which depend on the original library, if you don’t want to break the packages you can follow the instructions below to install the original QT5 library. +
-```sh +
-$ wget http://ports.ubuntu.com/pool/universe/q/qtbase-opensource-src/libqt5gui5_5.12.8+dfsg-0ubuntu1_arm64.deb +
-$ sudo dpkg -i libqt5gui5_5.12.8+dfsg-0ubuntu1_arm64.deb +
-``` +
-===== See Also ===== +
- +
-[[https://doc.qt.io/qt-5/embedded-linux.html|Qt for Embedded Linux]]+
  
Last modified: 2022/07/05 02:10 by frank