freetype

Tushar T tush at yahoo.com
Thu Nov 21 06:41:06 PST 2002


luis jure wrote:

>at the beginning of chapter "Installing X", the book says that XFree86
>depends on freetype-2.1.2, so i installed it first.
>
>but the next section, "Adding TrueType font support to XFree86", states
>that to build ttmkfdir you need libraries from the freetype project, and
>instructs you to install freetype-1.3.1.
>
>my questions are: is this just an older version of freetype as was
>installed at the beginning of chapter 26 (freetype-2.1.2)? are both
>versions really needed?
>  
>
Get the new version of ttmkfdir-2 that links against freetype-2. Check 
out <http://freshmeat.net/projects/ttmkfdir/>.

The following patch should be useful:
diff -ur ttmkfdir2.orig/ttf.h ttmkfdir2/ttf.h
--- ttmkfdir2.orig/ttf.h    2002-03-13 12:16:38.000000000 -0600
+++ ttmkfdir2/ttf.h 2002-10-22 14:31:54.000000000 -0500
@@ -43,7 +43,7 @@
    FT_Face             face;
    TT_OS2              *os2;
    TT_Postscript       *post;
-   string          FileName;
+   std::string         FileName;
     };
 };
diff -ur ttmkfdir2.orig/Makefile ttmkfdir2/Makefile
--- ttmkfdir2.orig/Makefile 2002-03-14 08:03:49.000000000 -0600
+++ ttmkfdir2/Makefile  2002-10-22 14:32:14.000000000 -0500
@@ -2,9 +2,11 @@
 FREETYPE_INCL=-I$(FREETYPE_BASE)/.
 FREETYPE_LIB=/usr/lib/libfreetype.so

+PREFIX=/usr
 DEBUG=-ggdb
 CXX=g++
-CXXFLAGS=-Wall -pedantic $(FREETYPE_INCL) $(DEBUG)
+OPT=-O2
+CXXFLAGS=$(OPT) -Wall -pedantic $(FREETYPE_INCL) $(DEBUG)

 LDFLAGS=$(FREETYPE_LIB) $(DEBUG)

@@ -21,5 +23,9 @@
 parser.cpp: encoding.l
        flex -i -8 -o$@ $<

+install: all
+   install -d $(PREFIX)/bin
+   install -m 755 ttmkfdir $(PREFIX)/bin
+
 clean:
    -rm -f *.o *~ ttmkfdir core parser.cpp

-- 
Tushar Teredesai
LFS ID: 1377
http://tushar.lfsforum.org/

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list