[mapserver-users] font support problem
Something has killed my font support in MapServer in the compilation stage. I'm getting a "Keyword FONT is not valid without TrueType font support" error at runtime. It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in configuration. I don't see those in the GD sources either. - William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] font support problem
It would help if I turned off the find words option ;) There it is in configure, I just need to figure out why it was disabled. On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: > Something has killed my font support in MapServer in the compilation stage. > > I'm getting a "Keyword FONT is not valid without TrueType font support" error > at runtime. It looks like font support is conditionalized on USE_GD_TTF or > USE_GD_FT, but I can't figure out where this is set in configuration. I > don't see those in the GD sources either. > > - > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] font support problem
./configure can not find your truetype font includes and/or libs. You need to make sure you have the truetype package installed on Linux this is called something like freetype2. On my debian system: ls /usr/include/freetype2/freetype/ configftcid.h ftimage.h ftmodapi.h ftsnames.h ftxf86.h freetype.hfterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h ftbbox.h fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h ftbdf.h ftgasp.hftlist.hftoutln.h ftsystem.h tttables.h ftbitmap.hftglyph.h ftlzw.h ftpfr.h fttrigon.h tttags.h ftcache.h ftgxval.h ftmac.h ftrender.h fttypes.h ttunpat.h ftchapters.h ftgzip.hftmm.h ftsizes.h ftwinfnt.h ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la /usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so -Steve W On 6/1/2011 9:44 AM, William Kyngesburye wrote: It would help if I turned off the find words option ;) There it is in configure, I just need to figure out why it was disabled. On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: Something has killed my font support in MapServer in the compilation stage. I'm getting a "Keyword FONT is not valid without TrueType font support" error at runtime. It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in configuration. I don't see those in the GD sources either. - William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] font support problem
Freetype is not the problem. I already figured it out - my gd font support needs -liconv and configure is not adding it to the gd test. It looks like the mapserver configure doesn't get the libs from the gdlib-config script but makes a common guess. I thought I had this working in the past, but it's possible I only recently added iconv support to my gd. I forget. On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote: > ./configure can not find your truetype font includes and/or libs. You need to > make sure you have the truetype package installed on Linux this is called > something like freetype2. On my debian system: > > ls /usr/include/freetype2/freetype/ > configftcid.h ftimage.h ftmodapi.h ftsnames.h ftxf86.h > freetype.hfterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h > ftbbox.h fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h > ftbdf.h ftgasp.hftlist.hftoutln.h ftsystem.h tttables.h > ftbitmap.hftglyph.h ftlzw.h ftpfr.h fttrigon.h tttags.h > ftcache.h ftgxval.h ftmac.h ftrender.h fttypes.h ttunpat.h > ftchapters.h ftgzip.hftmm.h ftsizes.h ftwinfnt.h > > > ls /usr/lib/libfreetype.* > /usr/lib/libfreetype.a /usr/lib/libfreetype.so.6 > /usr/lib/libfreetype.la /usr/lib/libfreetype.so.6.3.18 > /usr/lib/libfreetype.so > > > -Steve W > > On 6/1/2011 9:44 AM, William Kyngesburye wrote: >> It would help if I turned off the find words option ;) There it is in >> configure, I just need to figure out why it was disabled. >> >> On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: >> >>> Something has killed my font support in MapServer in the compilation stage. >>> >>> I'm getting a "Keyword FONT is not valid without TrueType font support" >>> error at runtime. It looks like font support is conditionalized on >>> USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in >>> configuration. I don't see those in the GD sources either. >>> >>> - >>> William Kyngesburye >>> http://www.kyngchaos.com/ >>> >>> "Time is an illusion - lunchtime doubly so." >>> >>> - Ford Prefect >>> >>> >>> ___ >>> mapserver-users mailing list >>> mapserver-users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> - >> William Kyngesburye >> http://www.kyngchaos.com/ >> >> "Time is an illusion - lunchtime doubly so." >> >> - Ford Prefect >> >> >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] font support problem
When you get a chance please write a bug against this issue. It seems that there are a few things that need to be fixed: 1. error message is wrong and misleading 2. configure is not finding the libraries 3. configure is not detecting a missing library (iconv) and disabling freetype if the missing lib is required. 4. freetype without iconv should be ok unless this is a new requirement 5. doc needs to be updated as required Also I would think the a missing -liconv should cause a fatal link error in make. Thanks, -Steve On 6/1/2011 10:11 AM, William Kyngesburye wrote: Freetype is not the problem. I already figured it out - my gd font support needs -liconv and configure is not adding it to the gd test. It looks like the mapserver configure doesn't get the libs from the gdlib-config script but makes a common guess. I thought I had this working in the past, but it's possible I only recently added iconv support to my gd. I forget. On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote: ./configure can not find your truetype font includes and/or libs. You need to make sure you have the truetype package installed on Linux this is called something like freetype2. On my debian system: ls /usr/include/freetype2/freetype/ configftcid.h ftimage.h ftmodapi.h ftsnames.h ftxf86.h freetype.h fterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h ftbbox.h fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h ftbdf.h ftgasp.hftlist.hftoutln.h ftsystem.h tttables.h ftbitmap.hftglyph.h ftlzw.h ftpfr.h fttrigon.h tttags.h ftcache.h ftgxval.h ftmac.h ftrender.h fttypes.h ttunpat.h ftchapters.h ftgzip.hftmm.h ftsizes.h ftwinfnt.h ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la /usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so -Steve W On 6/1/2011 9:44 AM, William Kyngesburye wrote: It would help if I turned off the find words option ;) There it is in configure, I just need to figure out why it was disabled. On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: Something has killed my font support in MapServer in the compilation stage. I'm getting a "Keyword FONT is not valid without TrueType font support" error at runtime. It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in configuration. I don't see those in the GD sources either. - William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] font support problem
Freetype is found. Iconv is found. GD is found. gdImageStringFT test fails because it doesn't try with iconv. I do see a test for if GD needs iconv in configure, but for some reason it's not getting to this test for me... I'll look into it more later this evening when I have time. On Jun 1, 2011, at 10:24 AM, Stephen Woodbridge wrote: > When you get a chance please write a bug against this issue. It seems that > there are a few things that need to be fixed: > > 1. error message is wrong and misleading > 2. configure is not finding the libraries > 3. configure is not detecting a missing library (iconv) and disabling > freetype if the missing lib is required. > 4. freetype without iconv should be ok unless this is a new requirement > 5. doc needs to be updated as required > > Also I would think the a missing -liconv should cause a fatal link error in > make. > > Thanks, > -Steve > > On 6/1/2011 10:11 AM, William Kyngesburye wrote: >> Freetype is not the problem. I already figured it out - my gd font >> support needs -liconv and configure is not adding it to the gd test. >> It looks like the mapserver configure doesn't get the libs from the >> gdlib-config script but makes a common guess. >> >> I thought I had this working in the past, but it's possible I only >> recently added iconv support to my gd. I forget. >> >> On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote: >> >>> ./configure can not find your truetype font includes and/or libs. >>> You need to make sure you have the truetype package installed on >>> Linux this is called something like freetype2. On my debian >>> system: >>> >>> ls /usr/include/freetype2/freetype/ configftcid.h >>> ftimage.h ftmodapi.h ftsnames.h ftxf86.h freetype.h >>> fterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h ftbbox.h >>> fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h ftbdf.h >>> ftgasp.hftlist.hftoutln.h ftsystem.h tttables.h >>> ftbitmap.hftglyph.h ftlzw.h ftpfr.h fttrigon.h >>> tttags.h ftcache.h ftgxval.h ftmac.h ftrender.h >>> fttypes.h ttunpat.h ftchapters.h ftgzip.hftmm.h >>> ftsizes.h ftwinfnt.h >>> >>> >>> ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a >>> /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la >>> /usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so >>> >>> >>> -Steve W >>> >>> On 6/1/2011 9:44 AM, William Kyngesburye wrote: It would help if I turned off the find words option ;) There it is in configure, I just need to figure out why it was disabled. On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: > Something has killed my font support in MapServer in the > compilation stage. > > I'm getting a "Keyword FONT is not valid without TrueType font > support" error at runtime. It looks like font support is > conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure > out where this is set in configuration. I don't see those in > the GD sources either. > > - William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > > > ___ mapserver-users > mailing list mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> ___ mapserver-users >>> mailing list mapserver-users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> - William Kyngesburye >> http://www.kyngchaos.com/ >> >> The equator is so long, it could encircle the earth completely once. >> > - William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users