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

Hi all,
       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 ...

     Best regards,

LiangXu Wang

       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

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?

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

thanks

--
Dylan Beaudette
Soil Science Graduate Group
University of California at Davis

On Wed, 17 Nov 2004 10:52:12 -0800
Dylan Beaudette <dylan@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

On Wed, Nov 17, 2004 at 10:52:12AM -0800, Dylan Beaudette 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?

Redhat, Mandrake, Fedora: yes.
Debian: no idea.

Please be sure to update from 5.7-CVS.

Markus

On Thursday 18 November 2004 16:46, Markus Neteler wrote:

> And did you get a working GRASS with freetype?

Redhat, Mandrake, Fedora: yes.
Debian: no idea.

Debian testing/unstable, kernel 2.6.8

Successfully compiled with
CFLAGS="-g -Wall" ./configure --with-tcltk-includes=/usr/include/tcl8.3/
--with-postgres-includes=/usr/include/postgresql/ --with-freetype --with-gdal

make sure to have apt-get install-ed freetype2 and libttf-dev

--
Do what comes naturally. Seethe and fume and throw a tantrum.
-----------------------------------------------------------
Damiano G. Preatoni, PhD

Unità di Analisi e Gestione delle Risorse Ambientali
Dipartimento "Ambiente-Salute-Sicurezza"
Università degli Studi dell'Insubria
Via J.H. Dunant, 3 - 21100 Varese (ITALY)

http://biocenosi.dipbsf.uninsubria.it/
ICQ: 78690321
Odigo: 2645129
-----------------------------------------------------------

On Thu, Nov 18, 2004 at 09:11:23PM +1300, Hamish wrote:
...

some other hints:

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

In fact, it does. Test with G57-CVS:

2-CPU machine, 1GHz:
make
real 11m57.113s -> 661sec
user 9m4.820s
sys 2m2.660s

make -j 3
real 7m0.877s -> 420sec
user 7m54.590s
sys 1m45.960s

420/661 = 0.64

Markus