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. [SOLVED]Qt Apps crash because of QFontDatabase: Cannot find font directory

[SOLVED]Qt Apps crash because of QFontDatabase: Cannot find font directory

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 8.9k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    After finishing static build of 5.0.2 all the built applications crashes and gives me this error message:
    @QFontDatabase: Cannot find font directory /usr/local/Qt-5.0.2/lib/fonts - is Qt installed correctly?
    Aborted (core dumped)@

    Static build parameters is:
    @./configure -static -v -qt-sql-psql -qt-sql-sqlite -plugin-sql-psql -plugin-sql-sqlite -qt-zlib -qt-libpng -qt-libjpeg -qt-pcre -qt-xcb@

    PS
    I'm using Mint KDE x64

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Do you have something in /usr/local/Qt-5.0.2/lib/fonts ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbnoimi
        wrote on last edited by
        #3

        [quote author="SGaist" date="1366110161"]Do you have something in /usr/local/Qt-5.0.2/lib/fonts ?[/quote]

        No. I installed Qt in my home directory at: /home/mbnoimi/Qt-5.0.2/

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you install Qt doing a make install ?

          I doubt so since you don't have a --prefix option. IIRC you have to use the -developer-build option to use Qt from where you compiled it

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mbnoimi
            wrote on last edited by
            #5

            [quote author="SGaist" date="1366125881"]Did you install Qt doing a make install ?[/quote]

            I create static build from installed source code which shipped by Qt5.0.2 Linux installer. The steps I have done are:

            1. configure (with above parameters)
            2. make

            That's it

            [quote]I doubt so since you don't have a --prefix option. IIRC you have to use the -developer-build option to use Qt from where you compiled it[/quote]
            you mean that if I add -developer-build option the ./configure it will fix the issue?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The source directory and the installation directory are two different things.

              You have the choice, either step 3:
              @make install@

              Which will install your Qt 5.0.2 in /usr/local/5.0.2

              Or rebuild with -developer-build which will give you a usable Qt in the build directory

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mbnoimi
                wrote on last edited by
                #7

                It works.. thx

                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