Closed modjo756 closed 7 years ago
I will take a look when I've finished Seco A62 GLES and A62 CAN & Neo CAN
Ok no problem ! I will post a message on mailing list to see if someone have a solution !
I have make some progress today on this point. On my host machine i have downloaded dejavu. On the card i have created a folder fonts in /usr/lib/. with scp, copied the dejavu fonts in this folder, now qt works fine ! To integrate this layer on qt, i added ttf-dejavu in local.conf like this :
IMAGE_INSTALL_append = "\ htop \ nano \ ttf-dejavu \ " bitbake and build start ... error during the rootfs : ERROR: ttf-dejavu not found in the base feeds
Do you have an idea what is the problem ? How we can install ttf-dejavu in /usr/lib/fonts ?
update with the help of yocto mailling list, i had this in my local.conf ttf-dejavu-sans \ ttf-dejavu-sans-mono \ ttf-dejavu-sans-condensed \ ttf-dejavu-serif \ ttf-dejavu-serif-condensed \ ttf-dejavu-common \
now it build without any error ! Now the problem is to install the ttf font in the folder /usr/lib/fonts ... and i didn't know how to do this !
i have tried this : add a folder recipe-graphics/ttf-dejavu in meta udoo. add this file in ttf-dejavu ttf-dejavu_2.35.bbappend.tar.gz but it seems not install the files in the good place ... already in usr/share/lib/fonts
Maybe this is another option?
Have You already tried to use the packagegroup-fonts-truetype-core
Another hint for using fontconfig. Or you can set the environment variable QT_QPA_FONTDIR
described here
I will take a look to this today or this week end.
@graugans, i have resolve the problem. See my folder here . Let me know if you would a pull request
I close this issue because it work for me now on quad and sa62 with qt5.7
Hi graugans, i have compiled yocto krogoth branch with meta-qt5 in master branch to have qtchart ( a new module to draw charts ...) It's compile fine but i need to remove qtbase-fonts in your udoo-image-qt5.bb to remove an error --> apparently in qt5.7 they remove it ! but now i have an error when i deploy an app on the card (in neo for the moment) :
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 = 0x300b
Do you know how i can resolve this ?
i found that on the web : qtFont