Here are the changes that needs to be made:
- Change configure.in so that configuration file can find libgd in /usr/lib/64
- Set library folder to /usr/X11R6/lib64 so that libXpm.so and libXext.so can be found
- Prompt it to load libXext
1.1 Configuration Changes
- Open up configure.in for editing
- Edit file so that $GD_INCLUDE=/usr/include and $GD_LIBDIR=/usr/lib64
- On line 501, just before an if statement, add these lines:
i. GD_INCLUDE=/usr/include
ii. GD_LIBDIR=/usr/lib64
- Parse configure.in to make configuration script.
- %> autoconf –o configure2 configu re.in
- Run configure2 with normal options and --with-xpm=/usr/X11R6/lib64. This will produce 'Makefile' file
- %> ./ 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
- Open Mapfile for editing
- Go to line 211 and 212
- Include –lXext to load Xext library. This will make both CFLAGS and CXXFLAGS equal to
i. -O2 -fPIC -Wall -lXext $(FLAGS)
- type make
- %> make
That's it!
Xin