Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't find font directory

Can't find font directory

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 8.3k Views
  • 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.
  • S Offline
    S Offline
    SteveG
    wrote on last edited by
    #1

    I installed "Qt Android Snapshot":http://download.qt-project.org/snapshots/qt/5.2/5.2.0/2013-12-06_200/qt-windows-opensource-5.2.0-android-x86-win32-offline_2013-12-06_14-05-35-200.exe into my C:\Qt directory and get the error message
    @
    QFontDatabase: Cannot find font directory 'C:\Qt\Qt5.2.0A\5.2.0\mingw48_32\lib\fonts' - is Qt installed correctly?
    @
    when I invoke qmlplugindump. Upon checking, there is no fonts directory in C:\Qt\Qt5.2.0A\5.2.0\mingw48_32\lib, only cmake and pkgconfig directories.

    Any suggestions?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SteveG
      wrote on last edited by
      #2

      I found a fonts directory at C:\Qt\Qt5.2.0A\5.2.0\Src\qtbase\lib\fonts. Do I need to specify something so qmlplugindump can find this directory or is this a Qt build error? If the former, what do I need to do? If the latter, should I submit a bug report?

      Thanks.

      Steve

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goblincoding
        wrote on last edited by
        #3

        Hi Steve,

        I ran into similar issues when trying to deploy my "Qt App to Ubuntu 12.04":http://goblincoding.com/2013/11/07/deploying-qt-5-applications-on-ubuntu-12-04/ (not QML related, but the same error). About halfway down the page is a section on the error you have experienced (just search for QFontBase, you'll find it).

        Hope that helps!

        http://www.goblincoding.com

        1 Reply Last reply
        1
        • I Offline
          I Offline
          ikyb
          wrote on last edited by
          #4

          I fixed such problem with setting environment variable QT_QPA_FONTDIR to /usr/share/fonts/truetype/dejavu/ on Ubuntu 16.
          If use QtCreator it is recommended to set env vars in Project->YourConfig->Run->RunEnvironment.

          1 Reply Last reply
          1

          • Login

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