As for porting QT in orin Nano, OPENGL cannot be used, and orin Nano environment is configured to “export QT_QPA_PLATFORM=eglfs”, running QT program will give an error.
QT version:5.15.14
root: Basic Flavor Root File System
kernel:5.15.136-tegra
QT compilation configuration:
./configure \
-v \
-opensource \
-confirm-license \
-device-option CROSS_COMPILE=/usr/bin/aarch64-linux-gnu- \
-device linux-jetson-tx1-g++ \
-prefix /home/zynq/qt_root/Qt-for-arm5.14.2 \
-extprefix /home/zynq/qt_root/Qt-for-arm5.14.2 \
-hostprefix /home/zynq/qt_root/Qt-for-arm5.14.2/tools \
-nomake examples \
-nomake tests \
-nomake tools \
-opengl es2 \
-eglfs \
-egl \
-tslib \
-I /home/zynq/qt_project/tslib-1.23/tmp/include \
-L /home/zynq/qt_project/tslib-1.23/tmp/lib \
-sysroot /home/zynq/nvidia/Linux_for_Tegra/rootfs
QT compilation of the configuration run log:
OpenVG ................................. no
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ yes
OpenGL ES 3.0 ........................ yes
OpenGL ES 3.1 ........................ yes
OpenGL ES 3.2 ........................ yes
Vulkan ................................. no
Session Management ..................... yes
QPA backends:
DirectFB ............................... no
EGLFS .................................. yes
EGLFS details:
EGLFS OpenWFD ........................ no
EGLFS i.Mx6 .......................... no
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... no
EGLFS GBM ............................ no
EGLFS VSP2 ........................... no
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... no
EGLFS X11 ............................ no
LinuxFB ................................ yes
VNC .................................... yes
Modify vi /etc/profile on orin Nano development board
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export QT_QPA_EGLFS_DISBBLE_INPET=1
export QT_QPA_GENERIC_PLUGINS="tslib:/dev/input/touchscreen0"
export QTDIR=/usr/lib/Qt-for-arm5.14.2
export LD_LIBRARY_PATH=/usr/lib/Qt-for-arm5.14.2/lib:$LD_LIBRARY_PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_TSLIB=1
running condition:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.egldeviceintegration: Failed to load EGL device integration "eglfs_x11"
EGL library doesn't support Emulator extensions
Aborted (core dumped)
May I ask how to solve it?
very thankful。