[GRASSLIST:3436] Re: new 53 osx compile

Just to be though, has anyone else had trouble getting the module d.text.freetype to compile. I updated grass53 today and am getting the:

  "GRASS GIS source code compiled.

Compilation error in module: src/display/d.text.freetype (ignored)"

error. The configlog look fine.

On May 17, 2004, at 3:07 PM, Michael Barton wrote:

Kirk,

I haven't compiled this in several months. You've probably checked the obvious, but do you perhaps the correct version of Freetype installed in a non-standard location and need to do a --with-libdir= or something similar in the ./config?

I guess I'd check the config log first to see what is going on with freetype (where it is looking and where it wants to look, etc.).

Ya... I don't know. The config log looks fine. No problems with freetype. I seem to remember that there was once an issue of whether configure looked for freetype first in apple's X11 or fink... I've tried both and doesn't seem to matter.

Michael
______________________________
Michael Barton, Professor & Curator
School of Human Origins, Cultures, & Societies
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
On May 17, 2004, at 12:50 PM, Kirk R. Wythers wrote:

Scott and Michael,

I'm writing you two because I figure you have as much experience on this list with OSX compile issues as anyone. I just tried re-compiling grass53 (both from after cvs and the new stable). One of my troubles is that I don't do this often enough to keep track of all the little "tricks" that I end up employing in oder to make it work.

In this case, I get the compile to finish, but I also have two modules that show the "Compilation error in module: src/display/d.text.freetype (ignored)" error

Any suggestions?

Kirk
------------------------------------------------------------------------
Kirk R. Wythers tel: 612.625.2261
Dept. of Forest Resources fax: 612.625.5212
University of Minnesota email: kwythers@umn.edu
------------------------------------------------------------------------

------------------------------------------------------------------------
Kirk R. Wythers tel: 612.625.2261
Dept. of Forest Resources fax: 612.625.5212
University of Minnesota email: kwythers@umn.edu
------------------------------------------------------------------------

Just to be though, has anyone else had trouble getting the module
d.text.freetype to compile. I updated grass53 today and am getting
the:

  "GRASS GIS source code compiled.

Compilation error in module: src/display/d.text.freetype (ignored)"
error. The configlog look fine.

cd src/display/d.text.freetype
../../../bin.[system type]/gmake53

to see what the specific error is.

Probably a HAVE_ICONV or #include <ft2build.h> error..?

see http://article.gmane.org/gmane.comp.gis.grass.devel/3667

what platform?

Hamish

Thanks for the tip... I think... It looks like a mess:

barbaloot:~/grass5_dev/grass53_exp_2004_05_15/src/display/d.text.freetype kirkw$ ../../../bin.powerpc-apple-darwin7.3.0/gmake53
   SRC = /Users/kirkw/grass5_dev/grass53_exp_2004_05_15/src
   CMD = /Users/kirkw/grass5_dev/grass53_exp_2004_05_15/src/CMD
   UNUSED = /Users/kirkw/grass5_dev/grass53_exp_2004_05_15/unused
   HEADER = head.powerpc-apple-darwin7.3.0
   ARCH = powerpc-apple-darwin7.3.0
   GISBASE = /Users/kirkw/grass5_dev/grass53_exp_2004_05_15/dist.powerpc-apple-darwin7.3.0
   VERSION = 5.3-cvs 2004
#################################################################
/Users/kirkw/grass5_dev/grass53_exp_2004_05_15/src/display/d.text.freetype
   make -f OBJ.powerpc-apple-darwin7.3.0/make.rules

gcc -I/Users/kirkw/grass5_dev/grass53_exp_2004_05_15/src/include -I/usr/X11R6/include -I/sw/include -g -O2 -I/usr/X11R6/include -I/sw/include -c main.c -o OBJ.powerpc-apple-darwin7.3.0/main.o
main.c:78: error: parse error before "library"
main.c:79: error: parse error before "face"
main.c:81: error: parse error before "face"
main.c:83: error: parse error before '*' token
main.c:84: error: parse error before "FT_Face"
main.c:86: error: parse error before "FT_Face"
main.c: In function `main':
main.c:122: error: `FT_Library' undeclared (first use in this function)
main.c:122: error: (Each undeclared identifier is reported only once
main.c:122: error: for each function it appears in.)
main.c:122: error: parse error before "library"
main.c:123: error: `FT_Face' undeclared (first use in this function)
main.c:124: error: `FT_Vector' undeclared (first use in this function)
main.c:311: error: `face' undeclared (first use in this function)
main.c:311: error: `library' undeclared (first use in this function)
main.c:359: error: `pen' undeclared (first use in this function)
main.c: In function `convert_text':
main.c:740: warning: passing arg 3 of `libiconv' from incompatible pointer type
main.c:740: warning: passing arg 5 of `libiconv' from incompatible pointer type
main.c: At top level:
main.c:848: error: parse error before "library"
main.c: In function `set_font':
main.c:850: error: `face' undeclared (first use in this function)
main.c:852: error: `library' undeclared (first use in this function)
main.c:852: error: `path' undeclared (first use in this function)
main.c: At top level:
main.c:859: error: parse error before "face"
main.c: In function `get_dimension':
main.c:862: error: `FT_Matrix' undeclared (first use in this function)
main.c:862: error: parse error before "matrix"
main.c:863: error: `FT_Vector' undeclared (first use in this function)
main.c:865: error: `matrix' undeclared (first use in this function)
main.c:867: error: `pen' undeclared (first use in this function)
main.c:870: error: `l' undeclared (first use in this function)
main.c:872: error: `out' undeclared (first use in this function)
main.c:874: error: `face' undeclared (first use in this function)
main.c:878: error: `FT_LOAD_DEFAULT' undeclared (first use in this function)
main.c:880: error: `ft_render_mode_mono' undeclared (first use in this function)
main.c:911: error: `dim' undeclared (first use in this function)
main.c: At top level:
main.c:918: error: parse error before "face"
main.c: In function `get_ll_coordinates':
main.c:921: error: `FT_Vector' undeclared (first use in this function)
main.c:921: error: parse error before "dim"
main.c:923: error: `align' undeclared (first use in this function)
main.c:925: error: `face' undeclared (first use in this function)
main.c:925: error: `out' undeclared (first use in this function)
main.c:925: error: `l' undeclared (first use in this function)
main.c:925: error: `dim' undeclared (first use in this function)
main.c:932: error: `pen' undeclared (first use in this function)
main.c:932: error: `rotation' undeclared (first use in this function)
main.c: At top level:
main.c:963: error: parse error before '*' token
main.c: In function `set_matrix':
main.c:965: error: `matrix' undeclared (first use in this function)
main.c:965: error: `FT_Fixed' undeclared (first use in this function)
main.c:965: error: `rotation' undeclared (first use in this function)
main.c: At top level:
main.c:974: error: parse error before "FT_Face"
main.c: In function `draw_character':
main.c:981: error: `face' undeclared (first use in this function)
main.c:981: error: `matrix' undeclared (first use in this function)
main.c:981: error: `pen' undeclared (first use in this function)
main.c:983: error: `ch' undeclared (first use in this function)
main.c:985: error: `FT_LOAD_DEFAULT' undeclared (first use in this function)
main.c:987: error: `ft_render_mode_mono' undeclared (first use in this function)
main.c:999: error: `win' undeclared (first use in this function)
main.c:1013: error: `color' undeclared (first use in this function)
main.c: At top level:
main.c:1072: error: parse error before "FT_Face"
main.c: In function `draw_text':
main.c:1076: error: `FT_Matrix' undeclared (first use in this function)
main.c:1076: error: parse error before "matrix"
main.c:1078: error: `matrix' undeclared (first use in this function)
main.c:1078: error: `rotation' undeclared (first use in this function)
main.c:1080: error: `l' undeclared (first use in this function)
main.c:1082: error: `out' undeclared (first use in this function)
main.c:1083: error: `win' undeclared (first use in this function)
main.c:1083: error: `face' undeclared (first use in this function)
main.c:1083: error: `pen' undeclared (first use in this function)
main.c:1083: error: `color' undeclared (first use in this function)
make: *** [OBJ.powerpc-apple-darwin7.3.0/main.o] Error 1
barbaloot:~/grass5_dev/grass53_exp_2004_05_15/src/display/d.text.freetype kirkw$

On May 17, 2004, at 10:15 PM, Hamish wrote:

Just to be though, has anyone else had trouble getting the module
d.text.freetype to compile. I updated grass53 today and am getting
the:

  "GRASS GIS source code compiled.

Compilation error in module: src/display/d.text.freetype (ignored)"
error. The configlog look fine.

cd src/display/d.text.freetype
../../../bin.[system type]/gmake53

to see what the specific error is.

Probably a HAVE_ICONV or #include <ft2build.h> error..?

see http://article.gmane.org/gmane.comp.gis.grass.devel/3667

what platform?

Hamish

------------------------------------------------------------------------
Kirk R. Wythers tel: 612.625.2261
Dept. of Forest Resources fax: 612.625.5212
University of Minnesota email: kwythers@umn.edu
------------------------------------------------------------------------

Kirk R. Wythers wrote:

Thanks for the tip... I think... It looks like a mess:

main.c:78: error: parse error before "library"
main.c:79: error: parse error before "face"
main.c:81: error: parse error before "face"
main.c:83: error: parse error before '*' token
main.c:84: error: parse error before "FT_Face"
main.c:86: error: parse error before "FT_Face"

Most likely, <freetype/freetype.h> is from FreeType version 1.
d.text.freetype requires FreeType 2.

If you have FreeType 2, you may need to use --with-freetype-includes=
to specify the location of its headers. Although that may not be
sufficient if FreeType 1 is in one of the include directories which
are explicitly listed (/usr/X11R6/include or /sw/include).

--
Glynn Clements <glynn.clements@virgin.net>