[GRASSLIST:9085] missing Freetype includes - can't build cvs 15.11.2005, 23:15

Hi,

The Freetype includes not being found at configure.

I receive an error about missing ft2build.h:

maciek@sorbus:~/src/straight/grass6$ ./configure --with-cxx \
--without-odbc \
--enable-largefile \
--with-sqlite \
--with-tcltk-includes=/usr/include/tcl8.3/ /usr/include/tk8.3/ \
--with-postgres-includes=/usr/include/postgresql/ \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2/freetype/config/

<snip>
checking whether to use FreeType... yes
checking for location of FreeType
includes... /usr/include/freetype2/freetype/config/
checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.

However, it shows the really missing file is ftheader.h:

maciek@sorbus:~/src/straight/grass6$ tail config.log
configure:12038: checking whether to use FreeType
configure:12057: checking for location of FreeType includes
configure:12083: checking for ft2build.h
configure:12091: gcc -E -I/usr/include/freetype2/freetype/config/
conftest.c >/dev/null 2>conftest.out
In file included from configure:12087:
/usr/include/ft2build.h:56:38: freetype/config/ftheader.h: No such file
or directory
configure: failed program was:
#line 12086 "configure"
#include "confdefs.h"
#include <ft2build.h>

Which is a strange, because the ftheader.h _is_present_ in the directory
that my --with-freetype-includes is pointing at:

maciek@sorbus:~/src/straight/grass6$ ls
usr/include/freetype2/freetype/config
ftconfig.h ftheader.h ftmodule.h ftoption.h ftstdlib.h

How to proceed?

This my first attempt to install Grass 6.1 cvs on a freshly installed
Ubuntu 5.04 (5.10 was to buggy for my laptop; or maybe the laptop was to
buggy for Ubuntu?). I'm trying to break free from Mandriva :).

Thanks,
Maciek

--------------------
W polskim Internecie s± setki milionów stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.epf.pl/

Freetype stumped me on Ubuntu as well...I didn't pursue it yet. So I
would be glad to hear your tweak to get it compiled. The other thing
I am interested in is the debian directory. What do you do to build
the debs? Is there any advantage to the debs over sudo ./make install?

david

On 11/15/05, Maciek Sieczka <werchowyna@epf.pl> wrote:

Hi,

The Freetype includes not being found at configure.

I receive an error about missing ft2build.h:

maciek@sorbus:~/src/straight/grass6$ ./configure --with-cxx \
--without-odbc \
--enable-largefile \
--with-sqlite \
--with-tcltk-includes=/usr/include/tcl8.3/ /usr/include/tk8.3/ \
--with-postgres-includes=/usr/include/postgresql/ \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2/freetype/config/

<snip>
checking whether to use FreeType... yes
checking for location of FreeType
includes... /usr/include/freetype2/freetype/config/
checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.

However, it shows the really missing file is ftheader.h:

maciek@sorbus:~/src/straight/grass6$ tail config.log
configure:12038: checking whether to use FreeType
configure:12057: checking for location of FreeType includes
configure:12083: checking for ft2build.h
configure:12091: gcc -E -I/usr/include/freetype2/freetype/config/
conftest.c >/dev/null 2>conftest.out
In file included from configure:12087:
/usr/include/ft2build.h:56:38: freetype/config/ftheader.h: No such file
or directory
configure: failed program was:
#line 12086 "configure"
#include "confdefs.h"
#include <ft2build.h>

Which is a strange, because the ftheader.h _is_present_ in the directory
that my --with-freetype-includes is pointing at:

maciek@sorbus:~/src/straight/grass6$ ls
usr/include/freetype2/freetype/config
ftconfig.h ftheader.h ftmodule.h ftoption.h ftstdlib.h

How to proceed?

This my first attempt to install Grass 6.1 cvs on a freshly installed
Ubuntu 5.04 (5.10 was to buggy for my laptop; or maybe the laptop was to
buggy for Ubuntu?). I'm trying to break free from Mandriva :).

Thanks,
Maciek

--------------------
W polskim Internecie s± setki milionów stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.epf.pl/

--
David Finlayson
Marine Geology & Geophysics
School of Oceanography
Box 357940
University of Washington
Seattle, WA 98195-7940
USA

Office: Marine Sciences Building, Room 112
Phone: (206) 616-9407
Web: http://students.washington.edu/dfinlays

> The Freetype includes not being found at configure.
>
> I receive an error about missing ft2build.h:
>
> maciek@sorbus:~/src/straight/grass6$ ./configure --with-cxx \

..

> --with-freetype \
> --with-freetype-includes=/usr/include/freetype2/freetype/config/

just "--with-freetype-includes=/usr/include/freetype2"

Freetype stumped me on Ubuntu as well...I didn't pursue it yet. So I
would be glad to hear your tweak to get it compiled. The other thing
I am interested in is the debian directory. What do you do to build
the debs? Is there any advantage to the debs over sudo ./make install?

I'm not 100% sure on this, but try:

cd /usr/src/grass/grass-6.0.1/
dpkg-buildpackage

you may have to use fakeroot or otherwise run as root.

The debs are useful if you need to install grass the same on several
systems or will be doing a lot of installing/uninstalling.

Hamish

On Wed, 2005-11-16 at 14:32 +1300, Hamish wrote:

> > The Freetype includes not being found at configure.
> >
> > I receive an error about missing ft2build.h:
> >
> > maciek@sorbus:~/src/straight/grass6$ ./configure --with-cxx \
..
> > --with-freetype \
> > --with-freetype-includes=/usr/include/freetype2/freetype/config/

just "--with-freetype-includes=/usr/include/freetype2"

Thanks Hamish, that did it!

David wrote:

> What do you do to build
> the debs? Is there any advantage to the debs over sudo ./make install?

I'm not 100% sure on this, but try:

cd /usr/src/grass/grass-6.0.1/
dpkg-buildpackage

you may have to use fakeroot or otherwise run as root.

When building from custom source code, I prefer checkinstall
http://asic-linux.com.mx/~izto/checkinstall/

Use the newest version.

Debs it produces shouldn't be officialy distributed I guess (dependencies not preserved, etc.) but are perfectly enough for domestic packaging.

Eg. my syntax for Grass61cvs:

sudo checkinstall -D --pkgname=grass61 --pkgversion=`date +%F` --strip=yes --stripso=yes --pakdir=/home/maciek/src/checkinstall_pakdir --deldoc=yes --deldesc=yes --delspec=yes --backup=no --pkggroup=checkinstall

For some software "--exclude=/usr/local/man" is required, otherwise the resulting deb will be impossible to install.

The debs are useful if you need to install grass the same on several
systems or will be doing a lot of installing/uninstalling.

I avoid installing by make install to keep track of what's installed in my system and to be able to unistall conveniently.

Maciek

--------------------
W polskim Internecie s± setki milionów stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.epf.pl/