-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.4.2
-
None
When launching apps on an embedded device like Xilinx Zc702 board with ARM cores and Linux OS, Qt libs unable to find font path. This is with linuxfb plugin.
I have copied all fonts under "/usr/local/lib/fonts" directory and assign QT_QWS_FONTDIR environment variable as "/usr/local/lib/fonts".
I found below workaround to solve this issue but the workaround is not clean. Workaround is to provide same font path (the prefix path of host machine where I build Qt) in target device.
Workaround steps:
mkdir -p /home/myname/qt/5.4/install/lib/
ln -s /usr/local/lib/fonts /home/myname/qt/5.4/install/lib/fonts
export QT_QWS_FONTDIR=/usr/local/lib/fonts
export QT_QPA_PLATFORM=linuxfb
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/lib/plugins
./myapp
Its better to have a clean solution. I dont think QT_QWS_FONTDIR environment variable is valid in Qt 5.4.2. please let us know how to fix this issue in Qt 5 with linuxfb plugins under Linux and ARM environment.