Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Yocto and Qt5.7

Yocto and Qt5.7

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    modjo756
    wrote on last edited by
    #1

    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 = 0x300b

    For 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 ...).

    1 Reply Last reply
    1
    • T Offline
      T Offline
      Tirupathi Korla
      wrote on last edited by Tirupathi Korla
      #2

      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" }.

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved