[mapserver-users] Mapserver compile error
Ivan Paoluzzi
tesimap at hotmail.com
Fri Sep 13 08:12:03 PDT 2002
Hi,
I have removed the gd target from the makefile, as you have told.
But I have a new error:
----------------
cl /nologo /Zi -I../gd -I../tiff/libtiff -I../libjpeg/src
-I../proj/src
-I../regex -I..\gdal/ogr/ogrsf_frmts -I..\gdal/ogr -I..\gdal/ogr/../port
-D
HAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP
-DUSE_EPPL -
DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE
_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR
-DUSE_O
GR -DUSE_WMS /c mapserv.c /Fomapserv.obj
mapserv.c
link /NODEFAULTLIB:libcd mapserv.obj mapserver.lib ../gd/gd.lib
../libjp
eg/src/libjpeg.lib ../libpng/libpng.lib ../zlib/zlib.lib
../libttf/lib/libttf.l
ib ../tiff/libtiff/libtiff.lib ../libjpeg/src/libjpeg.lib
../proj/src/proj.lib
..\gdal/ogr/ogrsf_frmts/ogrsf_frmts.lib
..\gdal/ogr/ogrsf_frmts/ogrsf_frmts_su
p.lib ..\gdal/ogr/ogr.lib ..\gdal/ogr/../port/cpl.lib
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
Creating library mapserv.lib and object mapserv.exp
mapserver.lib(regex.obj) : error LNK2001: unresolved external symbol _alloca
mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol
_gdImageWBMP
gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdCalloc
gd.lib(gd_jpeg.obj) : error LNK2001: unresolved external symbol _gdCalloc
gd.lib(gd_io_ss.obj) : error LNK2001: unresolved external symbol _gdMalloc
gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdMalloc
gd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdMalloc
gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdMalloc
gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdMalloc
gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdFree
gd.lib(gd_io_ss.obj) : error LNK2001: unresolved external symbol _gdFree
gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdFree
gd.lib(gd_jpeg.obj) : error LNK2001: unresolved external symbol _gdFree
gd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdFree
gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdFree
gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdRealloc
gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdRealloc
mapserv.exe : fatal error LNK1120: 6 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
---------------
I think to have compiled correctly gd, but I don't understand what's this
extenal symbol...
Thanks in advance
Ivan
>From: Yewondwossen Assefa <assefa at dmsolutions.ca>
>To: Ivan Paoluzzi <tesimap at hotmail.com>
>CC: mapserver-users at lists.gis.umn.edu
>Subject: Re: [mapserver-users] Mapserver compile error
>Date: Thu, 12 Sep 2002 14:05:59 -0400
>
>You actually do not need to compile gd from mapserver. It was done for
>earlier
>versions of mapserver. I have removed the gd target from the makefile.vc in
>the
>CVS version. If your are not compiling from the CVS version, just remove
>the
>whole gd target code as well as the MAKE_GD statement. (all you will need
>is to
>link it with the GD library that you have compiled. Make sur that the flags
>GD_INC and GD_LIB are set properly in the makefile)
>
>Later,
>
>Ivan Paoluzzi wrote:
>
> > Hi,
> > I want to compile MS 3.5 on Win XP, but I have this error message:
> >
> > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
> > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> >
> > cd gd
> > NMAKE : fatal error U1077: 'cd' : return code '0x1'
> > Stop.
> >
> > ------
> >
> > In makefile.vc I have changed
> > gd::
> > cd gd-1.2
> > nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"
> > cd ..
> >
> > in
> > gd:
> > cd gd
> > nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"
> > cd ..
> >
> > but I have the same problem.
> > Where is the error?
> > I have just compiled correctly gd,freetype,proj,ecc. and I have changed
>the
> > path, in makefile, of these package.
> > I use gd-1.8.4 and this is in c:\projects\gd
> >
> > Regards
> > Ivan
> >
> > _________________________________________________________________
> > Chiacchiera con gli amici online, prova MSN Messenger:
> > http://messenger.msn.it
>
>--
>----------------------------------------------------------------
>Assefa Yewondwossen
>Software Analyst
>
>Email: assefa at dmsolutions.ca
>http://www.dmsolutions.ca/
>
>Phone: (613) 565-5056 (ext 14)
>Fax: (613) 565-0925
>----------------------------------------------------------------
_________________________________________________________________
MSN Foto è il sistema più facile per condividere e stampare foto online:
http://photos.msn.it
More information about the MapServer-users
mailing list