Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47216

could not find font path on target device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.4.2
    • QPA: LinuxFB
    • None

    Description

      When launching apps on an embedded device like Xilinx Zc702 board with ARM cores and Linux OS, Qt libs unable to find font path. This is with linuxfb plugin.

      I have copied all fonts under "/usr/local/lib/fonts" directory and assign QT_QWS_FONTDIR environment variable as "/usr/local/lib/fonts".

      I found below workaround to solve this issue but the workaround is not clean. Workaround is to provide same font path (the prefix path of host machine where I build Qt) in target device.

      Workaround steps:
      mkdir -p /home/myname/qt/5.4/install/lib/
      ln -s /usr/local/lib/fonts /home/myname/qt/5.4/install/lib/fonts
      export QT_QWS_FONTDIR=/usr/local/lib/fonts
      export QT_QPA_PLATFORM=linuxfb
      export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/lib/plugins
      ./myapp

      Its better to have a clean solution. I dont think QT_QWS_FONTDIR environment variable is valid in Qt 5.4.2. please let us know how to fix this issue in Qt 5 with linuxfb plugins under Linux and ARM environment.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            preetesh Preetesh Parekh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes