Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3: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:vim3:applications:qt5 [2023/02/05 20:08]
nick
products:sbc:vim3:applications:qt5 [2023/02/05 20:09] (current)
nick
Line 20: Line 20:
 Install QT5 packages. Install QT5 packages.
  
-```sh +```shell 
-sudo apt update +sudo apt update 
-sudo apt install qt5-default qtbase5-examples +sudo apt install qt5-default qtbase5-examples 
-mkdir /tmp/qt5 +mkdir /tmp/qt5 
-cd /tmp/qt5 +cd /tmp/qt5 
-wget https://dl.khadas.com/repos/debs/vim3/focal/qt5/libqt5gui5_5.12.8%2Bdfsg-0ubuntu2_arm64.deb +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+sudo dpkg -i libqt5gui5_5.12.8+dfsg-0ubuntu2_arm64.deb
 ``` ```
 ===== Demonstrate ===== ===== Demonstrate =====
Line 34: Line 34:
 Setup the environment variables below. Setup the environment variables below.
 ```shell ```shell
-export QT_QPA_PLATFORM=eglfs +export QT_QPA_PLATFORM=eglfs 
-export QT_QPA_EGLFS_INTEGRATION=eglfs_mali+export QT_QPA_EGLFS_INTEGRATION=eglfs_mali
 ``` ```
  
Line 41: Line 41:
  
 ```shell ```shell
-/usr/lib/aarch64-linux-gnu/qt5/examples/opengl/qopenglwidget/qopenglwidget+/usr/lib/aarch64-linux-gnu/qt5/examples/opengl/qopenglwidget/qopenglwidget
 ``` ```
  
Line 54: Line 54:
 If you want to run the QT demo on TS050 touchscreen you need to remove the HDMI cable first. If you want to run the QT demo on TS050 touchscreen you need to remove the HDMI cable first.
  
-The TS050 touchscreen is '''portrait mode''' by default, if you want to use the QT under '''landscape mode''' you need to setup the environment variables below to rotate the screen and touchscreen:+The TS050 touchscreen is ''portrait mode'' by default, if you want to use the QT under ''landscape mode'' you need to setup the environment variables below to rotate the screen and touchscreen:
  
  
Line 84: Line 84:
  
 ```shell ```shell
-wget http://ports.ubuntu.com/pool/universe/q/qtbase-opensource-src/libqt5gui5_5.12.8+dfsg-0ubuntu1_arm64.deb +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+sudo dpkg -i libqt5gui5_5.12.8+dfsg-0ubuntu1_arm64.deb
 ``` ```
 ===== See Also ===== ===== See Also =====
Last modified: 2023/02/05 20:08 by nick