[GRASS-dev] [GRASS GIS] #569: grass compilation error due to freetype

#569: grass compilation error due to freetype
---------------------+------------------------------------------------------
Reporter: neuba | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: default | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-32 |
---------------------+------------------------------------------------------
I got this error in grass 6.5 svn and their is the following error, in the
v.label.sa directory:
gcc -I/home/danho/gis_soft/grass6_devel/dist.i686-pc-linux-gnu/include -g
-O2 -I/usr/include/gdal/ -DPACKAGE=\""grassmods"\"
-I/home/danho/gis_soft/grass6_devel/dist.i686-pc-linux-gnu/include -o OBJ.
i686-pc-linux-gnu/annealing.o -c annealing.c
Dans le fichier inclus à partir de annealing.c:15:
labels.h:20:22: erreur: ft2build.h : Aucun fichier ou dossier de ce type
labels.h:21:10: erreur: #include attend "NOM_DE_FICHIER" ou
<NOM_DE_FICHIER>
labels.h:22:10: erreur: #include attend "NOM_DE_FICHIER" ou
<NOM_DE_FICHIER>
make: *** [OBJ.i686-pc-linux-gnu/annealing.o] Erreur 1

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/569&gt;
GRASS GIS <http://grass.osgeo.org>

#569: grass compilation error due to freetype
----------------------+-----------------------------------------------------
  Reporter: neuba | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Comment (by glynn):

Replying to [ticket:569 neuba]:
> I got this error in grass 6.5 svn and their is the following error, in
the v.label.sa directory:

A couple of notes about submitting bug reports:

1. All build output should be in the C locale; use e.g. "LC_ALL=C make
..." when compiling. Output from running GRASS programs should be in the C
locale unless the report specifically relates to a localisation issue, or
if you need to post the original text because you can't reproduce the
error.

2. Any blocks of literal text, e.g. program output, should be enclosed in
triple braces to preserve formatting; see the WikiFormatting link above
the comment box for details.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/569#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#569: grass compilation error due to freetype
----------------------+-----------------------------------------------------
  Reporter: neuba | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Old description:

I got this error in grass 6.5 svn and their is the following error, in
the v.label.sa directory:
gcc -I/home/danho/gis_soft/grass6_devel/dist.i686-pc-linux-gnu/include
-g -O2 -I/usr/include/gdal/ -DPACKAGE=\""grassmods"\"
-I/home/danho/gis_soft/grass6_devel/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/annealing.o -c annealing.c
Dans le fichier inclus à partir de annealing.c:15:
labels.h:20:22: erreur: ft2build.h : Aucun fichier ou dossier de ce type
labels.h:21:10: erreur: #include attend "NOM_DE_FICHIER" ou
<NOM_DE_FICHIER>
labels.h:22:10: erreur: #include attend "NOM_DE_FICHIER" ou
<NOM_DE_FICHIER>
make: *** [OBJ.i686-pc-linux-gnu/annealing.o] Erreur 1

New description:

I got this error in grass 6.5 svn and their is the following error, in the
v.label.sa directory:

{{{
gcc -I/home/danho/gis_soft/grass6_devel/dist.i686-pc-linux-gnu/include -g
-O2 -I/usr/include/gdal/ -DPACKAGE=\""grassmods"\"
-I/home/danho/gis_soft/grass6_devel/dist.i686-pc-linux-gnu/include -o OBJ.
i686-pc-linux-gnu/annealing.o -c annealing.c
Dans le fichier inclus à partir de annealing.c:15:
labels.h:20:22: erreur: ft2build.h : Aucun fichier ou dossier de ce type
labels.h:21:10: erreur: #include attend "NOM_DE_FICHIER" ou
<NOM_DE_FICHIER>
labels.h:22:10: erreur: #include attend "NOM_DE_FICHIER" ou
<NOM_DE_FICHIER>
make: *** [OBJ.i686-pc-linux-gnu/annealing.o] Erreur 1

}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/569#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#569: grass compilation error due to freetype
----------------------+-----------------------------------------------------
  Reporter: neuba | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: default | Version: svn-trunk
Resolution: invalid | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => invalid

Comment:

You need to install the freetype6-devel package or indicate it properly:

{{{
# e.g., Mandriva:
./configure --with-freetype --with-freetype-
includes=/usr/include/freetype2 ...
}}}

Feel free to reopen if you have done above and it still fails.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/569#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#569: grass compilation error due to freetype
----------------------+-----------------------------------------------------
  Reporter: neuba | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: normal | Milestone: 6.5.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Changes (by neuba):

  * status: closed => reopened
  * resolution: invalid =>

Comment:

I made all the thingyou did in fedora 10 but there is still the same
problem. I is also the same thing in grass70 because of freetype

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/569#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#569: v.label.sa compilation error due to freetype
---------------------+------------------------------------------------------
  Reporter: neuba | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Changes (by neteler):

  * summary: grass compilation error due to freetype => v.label.sa
              compilation error due to freetype
  * component: default => Vector
  * milestone: 6.5.0 => 7.0.0

Comment:

(title renamed to more useful title)

Ok, reproduced:

{{{
labels.c: In function ‘labels_init’:
labels.c:86: error: implicit declaration of function
‘find_font_from_freetypecap’
labels.c:98: error: implicit declaration of function ‘free_freetypecap’
make: *** [OBJ.x86_64-unknown-linux-gnu/labels.o] Error 1
}}}

because of r34923 - the module needs to be updated accordingly.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/569#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#569: v.label.sa compilation error due to freetype
----------------------+-----------------------------------------------------
  Reporter: neuba | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: invalid | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Changes (by neuba):

  * status: reopened => closed
  * resolution: => invalid

Comment:

I resolve the problem. I modified annealing.c and i left a small syntax
error in the code.
Please apologize me.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/569#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>