nanogui: Cross Compiling Of Font Libraries


Previous by date: 21 Jul 2005 18:38:27 +0100 [patch]es for silencing font system and tiff library, Alexander Stohr
Next by date: 21 Jul 2005 18:38:27 +0100 build on cygwin, Maricris Espiritu
Previous in thread: 21 Jul 2005 18:38:27 +0100 Re: Cross Compiling Of Font Libraries, Alexander Stohr
Next in thread:

Subject: Re: AW: [nanogui] Cross Compiling Of Font Libraries
From: Gil Glass ####@####.####
Date: 21 Jul 2005 18:38:27 +0100
Message-Id: <OF1685FC09.21A0C2A7-ON85257044.006FC57B-85257045.0060DAF0@acterna.com>

Thank you again for your continued assistance.

OK, I believe that I am finally close.  What I have done is to:

1.  Set the alias of gcc to arm-linux-gcc.

2.  Remove the test for cross-compiler that causes a short test program to 
be generated in the configuration script.

3.  Hard code, in the configuration script, the size of ints and longs 
since they cannot be inferred from the short test programs (obvious, the 
test programs weren't generated!).

4.  Do the build.  Note that the build actually FAILS because it can't 
build the test applications (ftzoom, ftlint, etc.) because there's no X11 
library for ARM.  But that doesn't matter, I don't need them.

BTW, this procedure doesn't work for the T1 fonts.  For some reason, it 
continues to build native even with the above changes.  Very strange.

So, everything seems to be working, for FreeType anyway.  However, the 
fonts that I ported over from my WindBlows machine look pretty bad. 
They've got vertical white stripes in odd places.  I don't know whether 
that's the display, the framebuffer driver, Nano-X, the FreeType renderer, 
or the font itself.  <sigh> so confused...

Cheers,
Gil Glass
Telecom Field Services Division
Acterna
Germantown, MD, USA
+1-240-404-2551




"Alexander Stohr" ####@####.#### 
07/20/2005 03:20 PM
Please respond to
####@####.####


To
"'Gil Glass'" ####@####.####
cc
####@####.####
Subject
AW: [nanogui] Cross Compiling Of Font Libraries






cc'ing the list... since information is still of general interest.
(why does that list always reply to individuals...? that bugs me. *gg*)
 
Okay, after fighting a few minuts
i might have had something like this when my compile worked:
 
  alias gcc=arm-linux-gcc
  CC=arm-linux-gcc ./configure ...<you-know>...
 
[Hey, lets rethink a 2nd time... (sorry, somtimes you dont write
down the way you did it when things get complex, and then forget).
your response looks odd. i assume there is some problem in
the configure script that does insert the "unknown" maybe it
does not know about arm or linux or whatever.]
 
as soons as i saw that the script reported about doing 
a cross compile i just said "okay it works for me".
then the compile succeeded.
 
i do have pcfdemo and several others running 
on my target machine and on i386 testbed.
the critical thing is: font paths must match!!!
either you specify only the filename and it will be found
if its at the path from the config.
[ keep an eye on the NX console whilst testing.
it reports the misc font loaders search and fail paths.
hmm, i might want to change that reporting some days in some sort.]
 
basically say (from brain): T1FONTPATH=/fonts/t1
and your program: GrCreateFont ("arial.t1");
then it will find "/fonts/t1/arial.t1"
 
or you can specifiy a full path:
  GrCreateFont ("/my/path/to/my/fonts/arial.t1");
 
i found out about that when spefifying font path
withou leading "/" - and voila i had to start nano-X
from the microwindows/src subdir so that it worked.
the path where the application starts is indifferent.
 
the true type fonts in the NX distribution work for me
with normal scale, large scale and antialias.
i think i have not tested much byond,
but on NX-on-top-of-twm-in-a-VNC-server-on-i386-linux
i was even able to rotate the fonts from X11 fontserver.
i have not seen rotation on my embedded box for now.
 
-Alex.
-----Ursprüngliche Nachricht-----
Von: Gil Glass ####@####.####
Gesendet: Mittwoch, 20. Juli 2005 19:32
An: ####@####.####
Betreff: Re: AW: [nanogui] Cross Compiling Of Font Libraries


Thank you for your prompt reply. 

> Ever tried the below commands for your libs?
> 
>   ./configure --host=arm-linux
>   make 

Actually, I did try this but it made no difference.  The only thing I 
noticed was that the message 

"checking host system type... arm-unknown-linux-gnu" 

appeared during the configuration process.  It still used the native 
compiler and other tools. 

Do you know of any other way that I can get fonts other than "system" to 
show up.  The system font is completely unreadable.  I really need to get 
some larger fonts on the screen and nothing, so far, seems to work. 

Thanks. 

Cheers, 
Gil Glass 



Previous by date: 21 Jul 2005 18:38:27 +0100 [patch]es for silencing font system and tiff library, Alexander Stohr
Next by date: 21 Jul 2005 18:38:27 +0100 build on cygwin, Maricris Espiritu
Previous in thread: 21 Jul 2005 18:38:27 +0100 Re: Cross Compiling Of Font Libraries, Alexander Stohr
Next in thread:


Powered by ezmlm-browse 0.20.