Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.
Forum Updated to NodeBB v4.3 + New Features

QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 4 Posters 10.0k Views 2 Watching
  • 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.
  • K-StrK Offline
    K-StrK Offline
    K-Str
    wrote on last edited by K-Str
    #1

    Hello,
    in the past I got a lot of good tips here. Thank you!
    Now I got an quiet old problem and I know there is only a little knowledge missing.
    But I couldn't find a simple solution.
    When I start an application (widget) created by
    Qt Creator 4.8.0-rc1 (4.7.84)
    Based on Qt 5.12.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
    Built on Nov 23 2018 01:25:42
    From revision 7c17edcce2

    I get some errors :
    QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.
    On the raspberry there is no directory /usr/local/qt5pi/lib/fonts.
    In the widget I write some text (font = Ubuntu, 10).
    I get some errors on ma LCD-display ( 3.5" with HDMI).
    Please has somebody any idea?

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

      Hi,

      @K-Str said in QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts.:

      Cannot find font directory /usr/local/qt5pi/lib/fonts.

      Do you have that folder on your desktop machine ? If so, simply copy it over to your RPi.

      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
      1
      • K-StrK Offline
        K-StrK Offline
        K-Str
        wrote on last edited by K-Str
        #3

        @SGaist ,
        thank you for your tip.
        I found a lot of directories called font on my host.

        /etc/apparmor.d/abstractions/fonts
        /etc/fonts
        /etc/X11/fonts
        /home/kurt/raspi/sysroot/usr/lib/python2.7/dist-packages/scrollphathd/fonts
        /home/kurt/raspi/sysroot/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/fonts
        /home/kurt/raspi/sysroot/usr/lib/python3/dist-packages/scrollphathd/fonts
        /home/kurt/Qt/5.10.1/Src/qtdeclarative/examples/quick/text/fonts
        /home/kurt/Qt/5.10.1/Src/qtdeclarative/examples/quick/text/fonts/content/fonts
        /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/examples/quickcontrols2/texteditor/fonts
        /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/examples/quickcontrols2/swipetoremove/fonts
        /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/tests/manual/fonts
        /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/tests/manual/testbench/fonts
        /home/kurt/Qt/5.10.1/Src/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/platform/fonts
        /home/kurt/Qt/5.10.1/Src/qtwebengine/src/3rdparty/chromium/third_party/skia/src/fonts
        /home/kurt/Qt/5.10.1/Src/qtwebengine/src/3rdparty/chromium/third_party/skia/resources/fonts
        /home/kurt/Qt/5.10.1/Src/qtquickcontrols/examples/quickcontrols/extras/gallery/fonts
        /home/kurt/Qt/5.10.1/Src/qtquickcontrols/examples/quickcontrols/extras/dashboard/fonts
        /home/kurt/Qt/5.10.1/Src/qtquickcontrols/src/extras/Styles/Flat/fonts
        /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols/extras/gallery/fonts
        /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols/extras/dashboard/fonts
        /home/kurt/Qt/Examples/Qt-5.10.1/quick/text/fonts
        /home/kurt/Qt/Examples/Qt-5.10.1/quick/text/fonts/content/fonts
        /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols2/texteditor/fonts
        /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols2/swipetoremove/fonts
        /home/kurt/Qt/Tools/QtCreator/share/qtcreator/fonts
        /home/kurt/Qt/Tools/Preview/Qt Creator 4.8.0-rc1/share/qtcreator/fonts
        /var/lib/ghostscript/fonts
        /snap/core/4917/etc/apparmor.d/abstractions/fonts
        /snap/core/4917/usr/local/share/fonts
        /snap/core/4917/usr/share/fonts
        /snap/core/6405/etc/apparmor.d/abstractions/fonts
        /snap/core/6405/usr/local/share/fonts
        /snap/core/6405/usr/share/fonts
        /snap/gnome-3-26-1604/78/etc/fonts
        /snap/gnome-3-26-1604/78/usr/share/fonts
        /snap/gnome-3-26-1604/70/etc/fonts
        /snap/gnome-3-26-1604/70/usr/share/fonts
        /usr/local/share/fonts
        /usr/lib/firefox/fonts
        /usr/share/fonts
        /usr/share/lintian/data/files/fonts
        /usr/share/ghostscript/fonts
        /usr/share/yelp/mathjax/fonts
        /usr/share/yelp/mathjax/jax/output/HTML-CSS/fonts
        /usr/include/X11/fonts
        /usr/src/linux-headers-4.15.0-29/lib/fonts
        /usr/src/linux-headers-4.15.0-45/lib/fonts
        /boot/grub/fonts
        

        But I have no idea which one I should take.
        Which one would you recommend?
        Kurt

        Pablo J. RoginaP 1 Reply Last reply
        0
        • K-StrK K-Str

          @SGaist ,
          thank you for your tip.
          I found a lot of directories called font on my host.

          /etc/apparmor.d/abstractions/fonts
          /etc/fonts
          /etc/X11/fonts
          /home/kurt/raspi/sysroot/usr/lib/python2.7/dist-packages/scrollphathd/fonts
          /home/kurt/raspi/sysroot/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/fonts
          /home/kurt/raspi/sysroot/usr/lib/python3/dist-packages/scrollphathd/fonts
          /home/kurt/Qt/5.10.1/Src/qtdeclarative/examples/quick/text/fonts
          /home/kurt/Qt/5.10.1/Src/qtdeclarative/examples/quick/text/fonts/content/fonts
          /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/examples/quickcontrols2/texteditor/fonts
          /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/examples/quickcontrols2/swipetoremove/fonts
          /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/tests/manual/fonts
          /home/kurt/Qt/5.10.1/Src/qtquickcontrols2/tests/manual/testbench/fonts
          /home/kurt/Qt/5.10.1/Src/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/platform/fonts
          /home/kurt/Qt/5.10.1/Src/qtwebengine/src/3rdparty/chromium/third_party/skia/src/fonts
          /home/kurt/Qt/5.10.1/Src/qtwebengine/src/3rdparty/chromium/third_party/skia/resources/fonts
          /home/kurt/Qt/5.10.1/Src/qtquickcontrols/examples/quickcontrols/extras/gallery/fonts
          /home/kurt/Qt/5.10.1/Src/qtquickcontrols/examples/quickcontrols/extras/dashboard/fonts
          /home/kurt/Qt/5.10.1/Src/qtquickcontrols/src/extras/Styles/Flat/fonts
          /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols/extras/gallery/fonts
          /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols/extras/dashboard/fonts
          /home/kurt/Qt/Examples/Qt-5.10.1/quick/text/fonts
          /home/kurt/Qt/Examples/Qt-5.10.1/quick/text/fonts/content/fonts
          /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols2/texteditor/fonts
          /home/kurt/Qt/Examples/Qt-5.10.1/quickcontrols2/swipetoremove/fonts
          /home/kurt/Qt/Tools/QtCreator/share/qtcreator/fonts
          /home/kurt/Qt/Tools/Preview/Qt Creator 4.8.0-rc1/share/qtcreator/fonts
          /var/lib/ghostscript/fonts
          /snap/core/4917/etc/apparmor.d/abstractions/fonts
          /snap/core/4917/usr/local/share/fonts
          /snap/core/4917/usr/share/fonts
          /snap/core/6405/etc/apparmor.d/abstractions/fonts
          /snap/core/6405/usr/local/share/fonts
          /snap/core/6405/usr/share/fonts
          /snap/gnome-3-26-1604/78/etc/fonts
          /snap/gnome-3-26-1604/78/usr/share/fonts
          /snap/gnome-3-26-1604/70/etc/fonts
          /snap/gnome-3-26-1604/70/usr/share/fonts
          /usr/local/share/fonts
          /usr/lib/firefox/fonts
          /usr/share/fonts
          /usr/share/lintian/data/files/fonts
          /usr/share/ghostscript/fonts
          /usr/share/yelp/mathjax/fonts
          /usr/share/yelp/mathjax/jax/output/HTML-CSS/fonts
          /usr/include/X11/fonts
          /usr/src/linux-headers-4.15.0-29/lib/fonts
          /usr/src/linux-headers-4.15.0-45/lib/fonts
          /boot/grub/fonts
          

          But I have no idea which one I should take.
          Which one would you recommend?
          Kurt

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @K-Str you may want to check the solution I found some time ago...

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • K-StrK Offline
            K-StrK Offline
            K-Str
            wrote on last edited by
            #5

            @Pablo-J-Rogina ,
            thank you very much for your tip. It was very helpful.
            I made this and it immedialety.
            Regards
            Kurt

            L 1 Reply Last reply
            0
            • A Anu Jayan referenced this topic on
            • K-StrK K-Str

              @Pablo-J-Rogina ,
              thank you very much for your tip. It was very helpful.
              I made this and it immedialety.
              Regards
              Kurt

              L Offline
              L Offline
              lilili
              wrote on last edited by
              #6

              @K-Str How was it resolved?

              SGaistS 1 Reply Last reply
              0
              • L lilili

                @K-Str How was it resolved?

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @lilili hi and welcome to devnet,

                By following the information from the link posted by @Pablo-J-Rogina.

                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

                • Login

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