No text displayed in GUI
-
Hello
- I cross compiled the source code path which contains the .pro file.
[linux-devkit]:~/ti-processor-sdk-linux-am62xx-evm-08.03.00.19/example-applications/Peristaltic/src> /home/zumi/ti-processor-sdk-linux-am62xx-evm-08.03.00.19/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/qmake Peristaltic.pro
[linux-devkit]:~/ti-processor-sdk-linux-am62xx-evm-08.03.00.19/example-applications/Peristaltic/src> make-
I was successfully able to create the executable file Peristaltic which can be run on the AM62x EVM board.
-
After the target board is booted, I have passed the following commands in the console.
root@am62xx-evm:~# export QT_QPA_PLATFORM=eglfs
root@am62xx-evm:~# export QT_QPA_EGLFS_NO_LIBINPUT=1 -
When I run the executable file, I get the below log. And the GUI is not displaying any text other than blocks.
root@am62xx-evm:/Peristaltic/src# ./Peristaltic
chmod: /dev/ttyUSB0: No such file or directory
Cannot open device /dev/video0, exiting.
QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_path_pushButton_clicked() -
I have attached the image of the GUI, which is getting displayed. Kindly help me to resolve the issue.
Thanks in advance
Regards
Anu Jayan -
Hi,
Might be a sill question but: do you have fonts deployed on your device ?
-
Did you check the presence of the one you use with QFontDatabase ?
-
Did you check the presence of the one you use with QFontDatabase ?
@SGaist said in No text displayed in GUI:
Did you check the presence of the one you use with QFontDatabase ?
I am not sure.
- But I already have the "libfont" libraries added in "usr/lib/".
root@am62xx-evm:/usr/lib# ls font
libfontconfig.so libfontconfig.so.1 libfontconfig.so.1.12.0- Also followed the below forum link, to add the "dejavu-fonts-ttf-2.37" fonts in the same "usr/lib/".
https://forum.qt.io/topic/99825/qfontdatabase-cannot-find-font-directory-usr-local-qt5pi-lib-fonts
root@am62xx-evm:~# cd /usr/lib/fonts/
dejavu-fonts-ttf-2.37/ ttf/
root@am62xx-evm:/usr/lib/fonts/dejavu-fonts-ttf-2.37# ls
AUTHORS BUGS LICENSE NEWS README.md fontconfig langcover.txt status.txt ttf unicover.txt- Still the fonts are not getting displayed in GUI & I am getting the following log.
root@am62xx-evm:/Peristaltic/src# ./Peristaltic
[ 50.599094] PVR_K: 865: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
[ 50.626721] PVR_K: 865: Shader binary image 'rgx.sh.33.15.11.3' loaded
chmod: /dev/ttyUSB0: No such file or directory
Cannot open device /dev/video0, exiting.
QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_path_pushButton_clicked()
Regards
Anu Jayan -
@SGaist said in No text displayed in GUI:
Did you check the presence of the one you use with QFontDatabase ?
I am not sure.
- But I already have the "libfont" libraries added in "usr/lib/".
root@am62xx-evm:/usr/lib# ls font
libfontconfig.so libfontconfig.so.1 libfontconfig.so.1.12.0- Also followed the below forum link, to add the "dejavu-fonts-ttf-2.37" fonts in the same "usr/lib/".
https://forum.qt.io/topic/99825/qfontdatabase-cannot-find-font-directory-usr-local-qt5pi-lib-fonts
root@am62xx-evm:~# cd /usr/lib/fonts/
dejavu-fonts-ttf-2.37/ ttf/
root@am62xx-evm:/usr/lib/fonts/dejavu-fonts-ttf-2.37# ls
AUTHORS BUGS LICENSE NEWS README.md fontconfig langcover.txt status.txt ttf unicover.txt- Still the fonts are not getting displayed in GUI & I am getting the following log.
root@am62xx-evm:/Peristaltic/src# ./Peristaltic
[ 50.599094] PVR_K: 865: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
[ 50.626721] PVR_K: 865: Shader binary image 'rgx.sh.33.15.11.3' loaded
chmod: /dev/ttyUSB0: No such file or directory
Cannot open device /dev/video0, exiting.
QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_path_pushButton_clicked()
Regards
Anu JayanThen let's start small. Write a dummy application that just contains a QLabel with some text it in and run it.
If no text is shown, print the fonts available using QFontDatabase.
-
Then let's start small. Write a dummy application that just contains a QLabel with some text it in and run it.
If no text is shown, print the fonts available using QFontDatabase.
@SGaist said in No text displayed in GUI:
Then let's start small. Write a dummy application that just contains a QLabel with some text it in and run it.
If no text is shown, print the fonts available using QFontDatabase.
Hi
- I have created a .cpp file with the below code & cross compiled for Ti AM62x-sk EVM board.
#include <QApplication> #include <QWidget> #include <QLabel> #include <QVBoxLayout> #include <QFontDatabase> #include <QDebug> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWidget window; QVBoxLayout layout; QLabel label("Hello, Qt!"); layout.addWidget(&label); window.setLayout(&layout); // Create an instance of QFontDatabase QFontDatabase fontDatabase; // Print available fonts using QFontDatabase QStringList availableFonts = fontDatabase.families(); if (availableFonts.isEmpty()) { qDebug() << "No fonts available."; } else { qDebug() << "Available Fonts:"; foreach (const QString &font, availableFonts) { qDebug() << font; } } window.show(); return app.exec(); }
-
I run the executable file in target board. But I got the following print and the available fonts are not getting displayed.
root@am62xx-evm:/TestApp# ls
Makefile yourapp yourapp.cpp yourapp.o yourapp.pro
root@am62xx-evm:/TestApp# ./yourapp
No fonts available. -
Am I missing any libraries dependencies in yocto build (or) while cross compiling with the .pro file. Can you suggest me a solution.
Regards,
Anu Jayan