#2697 closed defect (fixed)
Build using --with-gd=static,/usr/local fails to include freetype support
Reported by: | woodbri | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | 5.4 release |
Component: | Build Problems | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | dmorissette |
Description
This was all done on 5.2.0-rc1 source.
If you configure mapserver like:
./configure \ --enable-ignore-missing-data \ --enable-debug \ --with-httpd=/usr/sbin/apache \ --with-proj=/usr \ --with-agg=../agg-2.4 \ --with-gd=static,/usr/local \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient \ --with-fribidi-config=/usr/local/lib/pkgconfig/fribidi.pc make ./mapserver-config --libs -ljpeg -lfreetype -lpng -lz -L/home/woodbri/work/genimage/mapserver-5.2.0-rc1/../agg-2.4/src -lagg -ljpeg -lfreetype -lpng -lz -L/usr/lib64 -lproj -ljpeg -lpng -L/usr/lib -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lc -lz -L/usr/local/lib -lfribidi -lm -lstdc++
This builds and links without a problem, but for some reason you can not use truetype fonts. I also tried mapserver configure with --with-freetype=/usr with the same results.
woodbri@carto:~/work/mapserver-5.2.0-rc1$ /usr/local/bin/gdlib-config --all GD library 2.0.35 includedir: /usr/local/include cflags: -I/usr/local/include ldflags: -L/usr/X11R6/lib libs: -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm libdir: /usr/local/lib features: GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON woodbri@carto:~/work/mapserver-5.2.0-rc1$ ./shp2img -m /u/data/maps/google-agg.map -o junk.png loadlabel(): Unknown identifier. Keyword FONT is not valid without TrueType font support. <br>
If is helps, I tried configuring gd like both of these:
./configure make sudo make install ./configure --with-freetype=/usr make sudo make install
Both gave the same effect.
Change History (4)
comment:1 by , 16 years ago
Milestone: | 5.2 release → 5.2.1 release |
---|
comment:2 by , 16 years ago
Cc: | added |
---|---|
Owner: | changed from | to
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The problem was that some symbols was "undefined reference". The fontconfig library is needed when using libgd staticly.
Committed in SVN trunk in r8458.
comment:4 by , 15 years ago
Milestone: | 5.2.1 release → 5.4 release |
---|
Note:
See TracTickets
for help on using tickets.
This is not new to 5.2, pushing to 5.2.1 to avoid breaking the 5.2.0 release.