[GRASSLIST:4873] Re: grass 5.7.cvs can't compile with freetype2

Hamish hamish_nospam at yahoo.com
Thu Nov 18 03:11:23 EST 2004


On Wed, 17 Nov 2004 10:52:12 -0800
Dylan Beaudette <dylan at iici.no-ip.org> wrote:

> On Tuesday 16 November 2004 10:37 pm, you wrote:
> > >        My system is debian sarge(testing), and I has installed
> > >        freetype2,I
> > > can find ft2build.h in the /usr/include directory,but I can't
> > > compile with freetype support. the error is cound not find
> > > ft2build.h,but it is there.
> > >        The configure command is:
> > >        ./configure --with-freetype-includes=/usr/include ...
> >
> > I did the same two days ago with:
> >
> > CFLAGS="-g -march=pentium4 -Wall" ./configure \
> >     --with-tcltk-includes=/usr/include/tcl8.3 \
> >     --with-postgres-includes=/usr/include/postgresql \
> >     --with-motif --with-motif-includes=/usr/X11R6/include \
> >     --with-readline --with-gdal --with-cxx --with-glw \
> >     --with-freetype --with-freetype-includes=/usr/include/freetype2
> >     \ 2>&1 | tee config_log.txt
> >
> >
> >
> > Hamish
> 
> And did you get a working GRASS with freetype?

yes, works fine.

G57> locate .ttf
G57> FONT="/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf"
G57> d.text.freetype text="`g.version`" path="$FONT"


> Also, noticing your CFLAGS variable.... are you aware of a similar 
> optimization for a dual processor Xenon system?

No, I'm not. check the gcc man page.. maybe gcc 3.4 has one?

gcc will never be tuned anywhere close to Intel's compilers for speed,
not much anyone can do about that. 


some other hints:

Rumor has it that 'make -j 3' makes the compile run faster on dual
processors.. 


CFLAGS="-g -march=pentium4 -Wall" ./configure  ...

gives a GRASS built with clues for a debugger; if you want something
built for speed, try:

CFLAGS="-O3 -march=pentium4 -Wall" LDFLAGS="-s" ./configure  ...




Hamish




More information about the grass-user mailing list