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

QFontDatabase: Cannot find font directory

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 7.1k 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.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #1

    Hi all,
    I'm using Qt on the BeagleBoard since Qt 4.6 .

    The procedure I used is:

    1. cross compile Qt in my PC using BeagleBoard toolchain
    2. installing Qt in /opt/qt4-beagle in my PC
    3. coping /opt/qt4-beagle from my PC to my BeagleBorad
    4. compiling an application in my PC using Qt from /opt/qt4-beagle
    5. coping the compiled application in the BeagleBoard
    6. running the application in the BeagleBoard

    This works fine.

    Now I need to rename the Qt directory in the BeagleBoard (Eg. /opt/qt-4.7-beagle) without re-compiling the application running on the BeagleBoard.
    To do this I edited the /etc/ld.so.conf with:
    @
    /opt/qt-4.7-beagle/lib
    @

    but now when application start I get the message:
    @
    QFontDatabase: Cannot find font directory /opt/qt4-beagle/lib/fonts - is Qt installed correctly?
    @

    it seems like if it the application (cross-compiled in my PC using /opt/qt4-beagle Qt libraries) remembers the font directory and is looking for it in the BeagleBoard.

    How can I solve this problem?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      AFAIK, there is a parameter for configure, where the install path on the target will be. Otherwise the local path will be used as QTDIR inside the lib, and the environment variable, will never be used by Qt itself :-(

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      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