Results 1 to 2 of 2

Thread: QFontDatabase: Cannot find font directory

  1. #1
    Join Date
    Apr 2014
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default QFontDatabase: Cannot find font directory

    I am trying to build an QT 4 Embedded Linux app in Ubuntu (using QT 4.8.6) and when I try and run the app, I get the following error
    "QFontDatabase: Cannot find font directory /usr/local/Trolltech/QtEmbedded-4.8.6-generic/lib/fonts - is Qt installed correctly?"

    What has me baffled is I installed 4.8.6 into folder /usr/local/Trolltech/QtEmbedded-4.8.6/.
    So, I have no idea why the error is occuring.

    I think I have the env setup correctly to reference /usr/local/Trolltech/QtEmbedded-4.8.6/

    Anyway, help would be appreciated.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QFontDatabase: Cannot find font directory

    The path you installed to is not where it is looking (they are different paths). The path looks very much like a last-resort place to look for fonts.
    Does Qt use fontconfig on embedded platforms? Is your fonts.conf file correctly configured?

Similar Threads

  1. QFontDatabase:Cannot find font directory
    By soumya in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 10th November 2014, 06:08
  2. Replies: 2
    Last Post: 16th October 2013, 11:56
  3. unable to find font when placed under lib/font dir
    By menkey18 in forum Qt Programming
    Replies: 6
    Last Post: 14th December 2012, 07:45
  4. Replies: 4
    Last Post: 23rd November 2010, 17:15
  5. QFontDatabase loading font from resource
    By myrky in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2010, 12:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.