graugans / meta-udoo

:heartpulse: openembedded meta layer for the UDOO boards
MIT License
31 stars 19 forks source link

Krogoth branch and Qt5.7 #15

Closed modjo756 closed 7 years ago

modjo756 commented 8 years ago

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

graugans commented 8 years ago

I will take a look when I've finished Seco A62 GLES and A62 CAN & Neo CAN

modjo756 commented 8 years ago

Ok no problem ! I will post a message on mailing list to see if someone have a solution !

modjo756 commented 7 years ago

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 ?

modjo756 commented 7 years ago

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 !

modjo756 commented 7 years ago

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

graugans commented 7 years ago

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

modjo756 commented 7 years ago

I will take a look to this today or this week end.

modjo756 commented 7 years ago

@graugans, i have resolve the problem. See my folder here . Let me know if you would a pull request

modjo756 commented 7 years ago

I close this issue because it work for me now on quad and sa62 with qt5.7