PDA

View Full Version : QFontDatabase: Cannot find font directory



MaddogMonty
7th June 2014, 14:48
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.

ChrisW67
8th June 2014, 20:57
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?