Results 1 to 2 of 2

Thread: qtopia core 4 Fonts on device problem

  1. #1
    Join Date
    Nov 2006
    Posts
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default qtopia core 4 Fonts on device problem

    Hi,

    I having a problem of font on my arm system .
    I am using qtopia-core-4.2.2. Below is my following steps;
    1) untar the qtopia-core
    2) ./configure -embedded arm -depths 4,8,12,16 -shared -prefix /home/advl/21_9_2007/qtopia-core -no-cups -no-nis -xplatform qws/linux-arm-g++ -little-endian

    3) make

    4) make install

    5) I copy the library files( libNetwork.so.4,libGui.so.4,libCore.so.4) into my /nfsroot/ramdisk_dir/lib
    6) I copy the binary executable file (tutorial1/t1)
    7) on my ARM board console, I try
    ./t1 –qws –display LinuxFb:0

    It shows
    QFONTBASE: cannot find definition file /home/advl/21_9_2007/qtopia-core/fonts/fontdir Qt installed correctly?
    (but I saw a mouse pointer on my ARM board’s LCD)

    I had check there is a fontdir (text file) in the directory /home/advl/21_9_2007/qtopia-core/fonts/fontdir.
    Beside I also create a

    ln –s /home/advl/21_9_2007/qtopia-core/lib/fonts /nfsroot/ramdisk_dir/lib

    But it still cannot find the file. I done all these in root. Am I miss out anything? Enviroment problem?
    Path? I had read some document saying that qtopia core 4 have no effect on setting the environment (for example export PATH, export QTDIR, export LD_LIBRARY).

  2. #2
    Join Date
    Jan 2006
    Posts
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: qtopia core 4 Fonts on device problem

    Qtopia-core will look for the font files in the directory
    $INSTALL_DIRECTORY/lib/fonts

    You can ususally just copy the fonts directory which is under
    $QTSRCDIR/lib/fonts.

    Also you can use the qt.conf file to alter the location of where your application will look for the lib dir where Qtopia-core is, therefore also altering where Qtopia-core will look for the lib/fonts directory; check out the documentation on:

    Last but not least; Qtopia-cores font engine changed between 4.2.x and 4.3. In 4.2.x you needed a fontdir file in the fonts directory which had some data on the font files installed on the system. This fontdir file needs hold information on the files in the fonts directory. If it describes files that are not there then I believe you can get such an error, but how to use it is described in [2].

    Just to make it clear, you don't need the fontdir file in Qtopia 4.3.0 or later.

    [1]http://doc.trolltech.com/4.3-snapshot/qtopiacore-fonts.html
    [2]http://doc.trolltech.com/4.2/qtopiacore-fonts.html
    [3]http://doc.trolltech.com/4.3-snapshot/qtopiacore-fonts.html

Similar Threads

  1. Qtopia Core & OpenGL ES?
    By zelko in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th May 2007, 08:21
  2. OpenGL ES, Qt/11 - Qtopia Core?
    By zelko in forum Qt Programming
    Replies: 0
    Last Post: 3rd May 2007, 11:56
  3. Qtopia core 4 make problem on FC5
    By nousetest in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 8th April 2007, 11:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.