Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Static lib build & run gui app error : QFontDatabase: Cannot find font directory

Static lib build & run gui app error : QFontDatabase: Cannot find font directory

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 703 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.
  • DaryongD Offline
    DaryongD Offline
    Daryong
    wrote on last edited by A Former User
    #1

    Hi,

    I built qt to use static lib.
    I solved several problems and succeeded, but I can not show the font from qui.
    Fonts DIR does not seem to exist in qt.

    If I change QTDIR to shared lib, the font looks good.

    The following error appears.

    What is the problem?

    < env >
    OS: CentOS 6.8
    Qt: 5.7.1

    < error >
    ./configure -prefix /opt/qt5.7.1.a -static -qt-xcb -no-compile-examples -skip qtquickcontrols -skip qtquickcontrols2 -skip qtvirtualkeyboard -skip qtgamepad -skip qtscxml -skip qtcharts -skip qtsvg

    [root@localhost opt]# designer
    QFontDatabase: Cannot find font directory /opt/qt5.7.1.a/lib/fonts.
    Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.

    1 Reply Last reply
    0

    • Login

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