-
Notifications
You must be signed in to change notification settings - Fork 1
/
set_qt5_eglfs_env
executable file
·34 lines (25 loc) · 1.29 KB
/
set_qt5_eglfs_env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# Source this script to setup a qt application run environment with eglfs backend.
# if this is not set an error is thrown: Could not queue DRM page.
export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
# Set the following for debugging when runnning a QT application, it makes all the other debug settings redundant.
export QT_DEBUG_PLUGINS=1
# Set EGL and Mesa debug modes, this is usefull when running EGL contecxt without QT
export EGL_LOG_LEVEL=debug
export MESA_DEBUG=1
export QT_QPA_EGLFS_DEBUG=1
# Other debug environment settings
export LIBGL_DEBUG=1
#export WAYLAND_DEBUG=1
export QSG_INFO=1
# Set the kernel mode setting (KMS) file, this file links the eglfs backend to a display
export QT_QPA_EGLFS_KMS_CONFIG=/etc/qt5/qt_eglfs_kms_cfg.json
# Set the following variables for QT PyQt5 be able to find all the libraries
export QT_PLUGIN_PATH=/opt/qt/plugins/
export QT_QPA_PLATFORM_PLUGIN_PATH=/opt/qt/plugins/platforms/
export LD_LIBRARY_PATH=/opt/qt/lib
export QML2_IMPORT_PATH=/opt/qt/qml/:/usr/share/okuda/Okuda/QmlPlugin
export PYTHONPATH=${PYTHONPATH}:/opt/pyqt:/opt/pyqt/PyQt5
# Workaround for now because qt configure step cannot find fontconfig libs when adding the -fontconfig flag
export QT_QPA_FONTDIR=/usr/share/fonts/truetype/noto
/usr/bin/python3 /usr/share/okuda/okuda_app.py --platform linuxfb