Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    2
    7
    8096
    Loading More Posts
    • 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
      mbnoimi last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • M
          mbnoimi last edited by

          [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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • M
              mbnoimi last edited by

              [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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • M
                  mbnoimi last edited by

                  It works.. thx

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post