Results 1 to 3 of 3

Thread: Qt5 prebuilt Linux 64-bit libraries segfaults with "QFontDatabase: Cannot find font d

  1. #1
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default Qt5 prebuilt Linux 64-bit libraries segfaults with "QFontDatabase: Cannot find font d

    The message we are seeing is:

    Qt Code:
    1. QFontDatabase: Cannot find font directory /opt/Qt5.1.0//5.1.0/gcc_64/lib/fonts - is Qt installed correctly?
    2. Aborted (core dumped)
    To copy to clipboard, switch view to plain text mode 
    We've tested with numerous -platform plugins so it does not seem to be platform specific. To get around the issue we simply create that directory and the application launches fine and we don't see any font related issues etc.

    The problem now comes when we are deploying the application. When running our deployed application it crashes again if that directory does not exist. The installers can create that directory but it feels a bit silly to do that and it requires sudo rights to create it.

  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: Qt5 prebuilt Linux 64-bit libraries segfaults with "QFontDatabase: Cannot find fo

    The only reference I can see to a fatal warning with a path like the one you see should only be invoked under exceptional circumstances.
    This simple program neither fails nor searches anything like the default path you are seeing:
    Qt Code:
    1. #include <QtGui>
    2. int main(int argc, char **argv)
    3. {
    4. QGuiApplication app(argc, argv);
    5. qDebug() << db.families();
    6. return 0;
    7. }
    To copy to clipboard, switch view to plain text mode 
    Qt 5.1.0 binaries from project on Gentoo Linux.

    Does the target machine have fontconfig libraries and a good configuration? Does fc-list work from a command line?

    Can you post a minimal program that fails in this way?
    You should also provide a failing test case on the bug you have raised because there is far too little information to be useful as it stands. The problem is almost certainly environment and not related the Qt binary packaging.

  3. #3
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default Re: Qt5 prebuilt Linux 64-bit libraries segfaults with "QFontDatabase: Cannot find fo

    Hi ChrisW67

    Thanks for the response. We've had a busy time with deployment etc, so my response has been delayed as a result. We determined the root cause of the issue, but I think further discussion should move to the bug report where I've added our latest findings.

    Cheers

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: 5
    Last Post: 25th April 2012, 11:34
  3. Newbie to linux - installed qt but couldnt find standart libraries
    By hgedek in forum Installation and Deployment
    Replies: 2
    Last Post: 9th October 2011, 17:24
  4. QFontDatabase loading font from resource
    By myrky in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2010, 12:50
  5. Replies: 3
    Last Post: 29th August 2009, 22:24

Tags for this Thread

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.