Yocto and Qt5.7
-
Hi, i have a card, neo what i use with yocto and qt 5.6.1. All work fine but now i want to use Qt5.7. The image build but i have a problem when i want to use Qt. Now i have this error when i deploy an app :
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
EGL Error : Could not create the egl surface: error = 0x300bFor information, i need to remove qtbase-fonts from my yocto receipe to build the image with 5.7 ! Do you know how i can add font to my image to resolve this please ? (I already post an email to the meta freescale mailling list but with no answers ...).
-
Hi
Add font file in the same manner you add image in resource.qrc file of qt project. Add the below line in qml file
FontLoader { id: fontFamily; source: "/fonts/fontname.ttf" }.