This QPA allows rendering on Vivante GPU even when qtbase is not built for i.MX6 which is the case with some general purpose distributions.
- Qt 5 devel package
- Vivante drivers in /opt/fsl
cd imx6
qmake-qt5
make
sudo make install
To avoid linker errors on ArchLinux, please replace the qmake-qt5
command with this:
qmake-qt5 QMAKE_LIBS_PRIVATE+="-lfontconfig -lfreetype -lXrender -lglib-2.0 -ludev -lmtdev"
Make sure you have the gpu-viv-bin-mx6q-fb
package installed.
Run this command for tests:
QT_QPA_EGLFS_DEBUG=1 qmlscene -platform imx6 <filename>.qml
Replace with the actual name of a QML file.