[mapserver-users] AGG vs GD rendering shows no difference
Adrian Popa
adrian_gh.popa at romtelecom.ro
Wed Jun 17 07:56:04 PDT 2009
Hello everyone!
After a few hours of digging, I managed to solve the problem.
I checked mapserver's dependencies and it was linked against agg 2.3:
[root at terra tmp]# ldd /var/www/cgi-bin/mapserv | grep agg
libagg.so.2 => /usr/lib/libagg.so.2 (0x003f5000)
lrwxrwxrwx 1 root root 15 Jun 15 10:31 /usr/lib/libagg.so ->
libagg.so.2.0.1
lrwxrwxrwx 1 root root 15 Jun 15 10:31 /usr/lib/libagg.so.2 ->
libagg.so.2.0.1
-rwxr-xr-x 1 root root 228524 Feb 17 2006 /usr/lib/libagg.so.2.0.1
However, when I compiled mapserver I pointed the AGG code (--with-agg)
to version 2.5.
So mapserver had been compiled against agg 2.5 but was running with agg
2.3. This caused the segfault when using agg.
The solution is to compile AGG2.5 and to install it in the system.
Unfortunately, the AGG documentation is scarce and doesn't clearly say
how to compile the code, and even if I'm a linux seasoned user, I failed
to see the autogen.sh script.
Here's how I compiled AGG:
*sh
autogen.sh
./configure --disable-platform --disable-examples
--prefix=/usr
make
make install *
And now, I have also the newer libs in my /usr/lib/ directory:
[root at terra mapserver]# ls -l /usr/lib/libagg*
-rw-r--r-- 1 root root 1313570 Jun 17 17:06 /usr/lib/libagg.a
-rw-r--r-- 1 root root 395874 Jun 17 17:06 /usr/lib/libaggfontfreetype.a
-rwxr-xr-x 1 root root 897 Jun 17 17:06 /usr/lib/libaggfontfreetype.la
lrwxrwxrwx 1 root root 27 Jun 17 17:06
/usr/lib/libaggfontfreetype.so -> libaggfontfreetype.so.2.0.4
lrwxrwxrwx 1 root root 27 Jun 17 17:06
/usr/lib/libaggfontfreetype.so.2 -> libaggfontfreetype.so.2.0.4
-rwxr-xr-x 1 root root 283338 Jun 17 17:06
/usr/lib/libaggfontfreetype.so.2.0.4
-rwxr-xr-x 1 root root 785 Jun 17 17:06 /usr/lib/libagg.la
-rw-r--r-- 1 root root 53282 Feb 17 2006 /usr/lib/libaggplatformX11.a
lrwxrwxrwx 1 root root 26 Jun 15 10:31
/usr/lib/libaggplatformX11.so -> libaggplatformX11.so.2.0.1
lrwxrwxrwx 1 root root 26 Jun 15 10:31
/usr/lib/libaggplatformX11.so.2 -> libaggplatformX11.so.2.0.1
-rwxr-xr-x 1 root root 43468 Feb 17 2006
/usr/lib/libaggplatformX11.so.2.0.1
lrwxrwxrwx 1 root root 15 Jun 17 17:06 /usr/lib/libagg.so ->
libagg.so.2.0.4
lrwxrwxrwx 1 root root 15 Jun 17 17:06 /usr/lib/libagg.so.2 ->
libagg.so.2.0.4
-rwxr-xr-x 1 root root 228524 Feb 17 2006 /usr/lib/libagg.so.2.0.1
-rwxr-xr-x 1 root root 774469 Jun 17 17:06 /usr/lib/libagg.so.2.0.4
And mapserver renders my maps very well (see attached photos)
Thank you all for your help!
Regards,
Adrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090617/de8a71d2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: agg.png
Type: image/png
Size: 9242 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090617/de8a71d2/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: png.png
Type: image/png
Size: 2193 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090617/de8a71d2/attachment-0001.png>
More information about the MapServer-users
mailing list