nanogui: Compiling the libttf for arm


Previous by date: 23 Jan 2007 15:18:16 +0000 Trouble with fonts., Mira Rezek
Next by date: 23 Jan 2007 15:18:16 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Previous in thread: 23 Jan 2007 15:18:16 +0000 Compiling the libttf for arm, Mira Rezek
Next in thread: 23 Jan 2007 15:18:16 +0000 Re: Compiling the libttf for arm, Mira Rezek

Subject: Re: Compiling the libttf for arm
From: "Gil Glass" ####@####.####
Date: 23 Jan 2007 15:18:16 +0000
Message-Id: <6ECE57DF49376146B91A92A3C37EFC0E02AA09FE@SJEXCH03.ds.jdsu.net>

Hello Mira,

I have posted below the series of commands that I used to build the TTF
library.  However, I was not forced to solve the problem which you find
yourself confronting regarding the floating point incompatibility so I'm
not sure whether my method will help.  Still, since you asked:

1.  Apply the following patch to freetype-1.3.1/Makefile.in.  This
removes the test programs which cannot be run because they rely on the
X11 libraries which we don't use:

--- Makefile.in	2006-01-05 09:48:14.000000000 -0500
+++ freetype-1.3.1/Makefile.in	2006-01-05 09:49:28.000000000 -0500
@@ -5,12 +5,11 @@
 MAKEFILE = arch/unix/Makefile
 
 FTLIBDIR = lib
-FTTESTDIR = test
 FTPODIR = po
 
-all: ttlib tttest ttpo
+all: ttlib ttpo
 
-debug: ttlibdebug tttest ttpo
+debug: ttlibdebug ttpo
 
 # we can't use the target names 'lib', 'test', etc.
 # because make will believe that the directories are
@@ -22,30 +21,23 @@
 ttlibdebug:
 	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) debug
 
-tttest:
-	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) all
-
 ttpo:
 	cd $(FTPODIR); $(MAKE) all
 
 install: 
 	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) install
-	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) install
 	cd $(FTPODIR); $(MAKE) install
 
 uninstall:
 	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) uninstall
-	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) uninstall
 	cd $(FTPODIR); $(MAKE) uninstall
 
 clean:
 	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) clean
-	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) clean
 	cd $(FTPODIR); $(MAKE) clean
 
 distclean:
 	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) distclean
-	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) distclean
 	cd $(FTPODIR); $(MAKE) distclean
 	$(RMF) config.cache config.log config.status Makefile \
                MakeSub ft_conf.h libtool
@@ -55,6 +47,5 @@
 
 depend:
 	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) depend
-	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) depend
 
 # end of Makefile.in

2.  Configure with the following command line.  The reason for this is
that the sizes of ints and longs cannot be determined when
cross-compiling (Note:  you probably only need shared or static.  I
forget why we did both):

ac_cv_sizeof_int=4 ac_cv_sizeof_long=4 CC=arm-linux-gcc ./configure
--host=i686-pc-linux-gnu --target=arm-linux --enable-shared
--enable-static

There may be another parameter that will specify HW vs. SW floating
point operations but if there is, I'm not familiar with it.

3.  Finally:

make

This is how I do it. As you can see, I do nothing to address the
floating point type.  Still, I hope this helps.

Cheers,
Gil Glass


-----Original Message-----
From: ####@####.####
####@####.#### 
Sent: Tuesday, January 23, 2007 2:54 AM
To: ####@####.####
Subject: nanogui Digest 23 Jan 2007 07:53:43 -0000 Issue 1034


nanogui Digest 23 Jan 2007 07:53:43 -0000 Issue 1034

Topics (messages 11384 through 11385):

Compiling the libttf for arm
	11384 by: Mira Rezek

Trouble with fonts.
	11385 by: Mira Rezek

Administrivia:

To subscribe to the digest, e-mail:
	####@####.####

To unsubscribe from the digest, e-mail:
	####@####.####

To post to the list, e-mail:
	####@####.####


----------------------------------------------------------------------

Previous by date: 23 Jan 2007 15:18:16 +0000 Trouble with fonts., Mira Rezek
Next by date: 23 Jan 2007 15:18:16 +0000 Re: Setting up TouchScreen for AT91SAM9261-EK, Kelvin Xu
Previous in thread: 23 Jan 2007 15:18:16 +0000 Compiling the libttf for arm, Mira Rezek
Next in thread: 23 Jan 2007 15:18:16 +0000 Re: Compiling the libttf for arm, Mira Rezek


Powered by ezmlm-browse 0.20.