Compilation issues with gd.h on Linux 64bit
Xin
crazygecko at GMAIL.COM
Tue Dec 6 07:42:32 PST 2005
Here are the changes that were made to get mapserver compiling on my 64 bit
box. Hopefully this will help someone.
Here are the changes that needs to be made:
1. Change configure.in so that configuration file can find libgd in
/usr/lib/64
2. Set library folder to /usr/X11R6/lib64 so that libXpm.so and
libXext.so can be found
3. Prompt it to load libXext
1.1 Configuration Changes
1. Open up configure.in for editing
2. Edit file so that $GD_INCLUDE=/usr/include and
$GD_LIBDIR=/usr/lib64
1. On line 501, just before an if statement, add these lines:
i.
GD_INCLUDE=/usr/include
ii.
GD_LIBDIR=/usr/lib64
1. Parse configure.in to make configuration script.
1. %> autoconf –o configure2 configure.in
1. Run configure2 with normal options and --with-xpm=/usr/X11R6/lib64.
This will produce 'Makefile' file
1. %> ./configure2 --with-gd=/usr/local \
--with-ogr=/home/isharema/usr/bin/gdal-config \
--with-gdal=/home/isharema/usr/bin/gdal-config \
--with-proj=$HOME/usr \
--with-freetype \
--with-jpeg \
--with-xpm=/usr/X11R6/lib64
1. Open Mapfile for editing
1. Go to line *211* and *212*
2. Include –lXext to load Xext library. This will make both
CFLAGS and CXXFLAGS equal to
i. -O2
-fPIC -Wall -lXext $(FLAGS)
1. type make
1. %> make
That's it!
Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051206/86fac629/attachment.htm>
More information about the MapServer-users
mailing list