[mapserver-users] Problem Compiling MapServer and GD 1.8.4 on win32

Eduin Yesid Carrillo yecarrillo at hotmail.com
Mon May 21 06:59:16 PDT 2001


In my experience, you need make this changes to get a successful 
compilation:


COMPILING MAPSERVER3.5 APLHA /WIN32

This info applies to:
---------------------
MAPSERVER 3.5 ALPHA without php.

And suppose this file structure:
C:\mapserver\ARCSDE
C:\mapserver\freetype-2.0.1
C:\mapserver\gd-1.8.4
C:\mapserver\gdft
C:\mapserver\JPEG-6B
C:\mapserver\libpng-1.0.9
C:\mapserver\PROJ
C:\mapserver\REGEX-0.12
C:\mapserver\tiff-v3.5.6
C:\mapserver\zlib-1.1.3

Changes in /mapserver/makefile.vc
---------------------------------
***Note one sole dot instead of two dots in all relative paths.

*LINES 38 y 39
PROJ_LIB=../proj/src/proj.lib
PROJ_INC=-I../proj/src
With:
PROJ_LIB=./proj-4.4.3/src/proj.lib
PROJ_INC=-I./proj-4.4.3/src

*LINES 61-63
GD_INC=	-I./gd-1.8.4
GD_LIB=	../gd-1.8.4/gd.lib ../jpeg-6b/libjpeg.lib ../libpng-1.0.8/libpng.lib 
\
	../zlib-1.1.3/zlibstat.lib ../freetype/lib/freetype.lib
With:
GD_INC=	-I./gd-1.8.4
GD_LIB=	./gd-1.8.4/gd.lib ./jpeg-6b/libjpeg.lib ./lpng109/libpng.lib \
	./zlib-1.1.3/zlibstat.lib ./freetype-2.0.1/lib/freetype200b8.lib

*LINE 69-70
TIFF_INC=-I../tiff-v3.5.4/libtiff
TIFF_LIB=../tiff-v3.5.4/libtiff/libtiff.lib
With:
TIFF_INC=-I./tiff-v3.5.6-beta/libtiff
TIFF_LIB=./tiff-v3.5.6-beta/libtiff/libtiff.lib

*LINE 85
GDAL_DIR= ../gdal
With:
GDAL_DIR= ./gdal-1.1.4

*LINE 91-93:
#SDE_OPT=-DUSE_SDE
#SDE_INC=-I../arcsde/include
#SDE_LIB=../arcsde/lib/sde80.lib ../arcsde/lib/sg80.lib 
../arcsde/lib/pe80.lib
With:
SDE_OPT=-DUSE_SDE
SDE_INC=-I./arcsde/include
SDE_LIB=./arcsde/lib/sde80.lib ./arcsde/lib/sg80.lib ./arcsde/lib/pe80.lib

*LINES 125 A 129: Comentarlas
PHP_REGEX=..\php-4.0.4\regex
REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \
          $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj
REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES
With:
#PHP_REGEX=..\php-4.0.4\regex
#REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \
#         $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj
#REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES


*LINE 160:
LIBS	=	$(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) $(TTF_LIB) \
With:
LIBS	=	$(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) $(TTF_LIB) $(SDE_LIB) \

*LINE 163:
INCLUDES =	$(GD_INC) $(TIFF_INC) $(JPEG_INC) $(TTF_INC) \
With:
INCLUDES =	$(GD_INC) $(TIFF_INC) $(JPEG_INC) $(TTF_INC) $(SDE_INC) \

*LINE 157:
CFLAGS =	$(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS)  \
With:
CFLAGS =	$(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS) $(SDE_OPT) \

*LINE 182:
	cd gd-1.2
With:
	cd gd-1.8.4

*LINE 183:
	nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"
With:
	nmake /f makefile.nt gd.lib OPTFLAGS="$(OPTFLAGS)"


Changes in /gd-1.8.4/makefile.nt
--------------------------------
*LINE 21:
#CFLAGS=-O -DHAVE_LIBXPM -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBTTF
With:
CFLAGS=-O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBFREETYPE

*LINE 27:
LIBS=gd.lib libpng.lib zlib.lib
With:
LIBS=gd.lib ../lpng109/libpng.lib ../zlib-1.1.3/zlibstat.lib 
../jpeg-6b/libjpeg.lib

*LINE 31:
GDLIBS=libpng.lib zlib.lib
With:
GDLIBS=../lpng109/libpng.lib ../zlib-1.1.3/zlibstat.lib 
../jpeg-6b/libjpeg.lib ../freetype-2.0.1/lib/freetype200b8.lib

*LINE 36:
INCLUDEDIRS=-I d:\zlib -I d:\libpng -I d:\libjpeg -I d:\libttf
With:
INCLUDEDIRS=-I../zlib-1.1.3 -I../lpng109 -I../jpeg-6b 
-I../freetype-2.0.1/lib -I../freetype-2.0.1/include/freetype 
-I../freetype-2.0.1/include

*LINE 46:
LIB=d:\devstudio\vc\lib;d:\zlib;d:\libpng;d:\libjpeg;d:\libttf
With:
LIBDIRS=

*LINE 66:
LINK=$(CC) $(LIBS)
With:
LINK=$(CC) $(LIB) $(LIBS)

*LINE 124:
	gdfontg.obj gdtables.obj gdttf.obj gdft.c gdcache.obj gdkanji.obj 
gd_jpeg.obj
With:
	gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj 
gd_jpeg.obj


Changes in /gd-1.8.4/gdft.c
--------------------------
*LINE 15:
#include <unistd.h>
With:
#define R_OK 2


----------------------------
Eduin Yesid Carrillo
Ingeniero Civil
CIUDAD DIGITAL
Central de Información Regional Georefenciada
Bucaramanga - Colombia
yecarrillo at hotmail.com
yecarrillo at condorito.uis.edu.co
#ICQ 14323531

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




More information about the MapServer-users mailing list