View Single Post
Old 21st October 2008
pormogo pormogo is offline
Port Guard
 
Join Date: Jun 2008
Posts: 10
Default

I tried installing it into /opt/local after setting the CFLAGS and LDFLAGS as you showed but it still couldn't seem to find it. I checked the configure log. I noticed that I don't have gd installed. So I went into /usr/ports/graphics/gd and issued a make install. Everything seemed to go well until the following happened.

Code:
gdft.c:113:31: freetype/freetype.h: No such file or directory
gdft.c:114:30: freetype/ftglyph.h: No such file or directory
gdft.c:115:30: freetype/ftsizes.h: No such file or directory
gdft.c:136: error: syntax error before "FT_Library"
gdft.c:145: error: syntax error before "FT_Library"
gdft.c:228: error: syntax error before "library"
gdft.c:228: warning: data definition has no type or storage class
gdft.c: In function `fontFetch':
gdft.c:447: error: syntax error before "err"
gdft.c:458: error: structure has no member named `library'
gdft.c:458: error: structure has no member named `library'
gdft.c:487: error: `err' undeclared (first use in this function)
gdft.c:487: error: (Each undeclared identifier is reported only once
gdft.c:487: error: for each function it appears in.)
gdft.c:487: error: structure has no member named `library'
gdft.c:487: error: structure has no member named `face'
gdft.c:496: error: structure has no member named `face'
gdft.c: In function `fontRelease':
gdft.c:517: error: structure has no member named `face'
gdft.c: At top level:
gdft.c:615: error: syntax error before "FT_Bitmap"
gdft.c: In function `gdft_draw_bitmap':
gdft.c:626: error: `fg' undeclared (first use in this function)
gdft.c:627: error: `im' undeclared (first use in this function)
gdft.c:631: error: `bitmap' undeclared (first use in this function)
gdft.c:635: error: `pen_y' undeclared (first use in this function)
gdft.c:643: error: `ft_pixel_mode_grays' undeclared (first use in this function)
gdft.c:652: error: `ft_pixel_mode_mono' undeclared (first use in this function)
gdft.c:679: error: `pen_x' undeclared (first use in this function)
gdft.c:780: error: `tc_cache' undeclared (first use in this function)
gdft.c: In function `gdImageStringFTEx':
gdft.c:845: error: syntax error before "matrix"
gdft.c:82:1: unterminated #else
*** Error code 1

Stop in /usr/ports/graphics/gd/w-gd-2.0.35/gd-2.0.35.
*** Error code 1

Stop in /usr/ports/graphics/gd/w-gd-2.0.35/gd-2.0.35 (line 690 of Makefile).
*** Error code 1

Stop in /usr/ports/graphics/gd/w-gd-2.0.35/gd-2.0.35 (line 352 of Makefile).
*** Error code 1

Stop in /usr/ports/graphics/gd (line 2063 of /usr/ports/infrastructure/mk/bsd.port.mk).
Does this mean that I need free type installed? I was under the impression that it would build dependencies if needed. I am installing freetype now to see if that fixes this.

EDIT: Nope that didn't seem to help

pkg_info |grep free
freetype-1.3.1p3 free and portable TrueType font rendering engine


freetype is now installed but I am getting the same error when trying to make bandwidthd.

Last edited by pormogo; 21st October 2008 at 06:38 PM.
Reply With Quote