[Mapserver-users] Mapserver 4 Makefile for VC + compile probl ems
Swaminathan, Gayathri
gayathri at ou.edu
Thu Oct 9 14:52:43 PDT 2003
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C38EAF.AABD9CC0
Content-Type: text/plain
You need to compile regex seperately nad ensure you have a regex.obj in your
regex-0.12 directory?
See if you have it compiled this and then compile mapserver.
That should help.You will need a makefile.vc for regex, which is attached
with this email.
Thanks,
Gayathri
-----Original Message-----
From: Stephen Clark [mailto:stephen.clark at focus.ca]
Sent: Thursday, October 09, 2003 4:20 PM
To: Swaminathan, Gayathri; mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC + compile
problems
Hello,
I have commented out all the optional libraries and am just left with the
basic mapserver. I have included the "makefile.vc" "nmake.opt" and the
latest compile error listing. It appears that the regex library is looking
for an external library "_printchar"
I compiled using the following steps:
1. Compiled png library Version 1.2.5
2. Compiled zlib library Version 1.1.4
3. Compiled GD version 2.0.15
I removed the reference to the JPEG library because I was getting an
error...
4. Compiled mapserver 4.0 (stable version as indicated below)
5. Got the errors I am posting.
thanks
Stephen
----- Original Message -----
From: "Swaminathan, Gayathri" <gayathri at ou.edu>
To: "'Stephen Clark'" <stephen.clark at focus.ca>;
<mapserver-users at lists.gis.umn.edu>
Sent: Thursday, October 09, 2003 11:43 AM
Subject: RE: [Mapserver-users] Mapserver 4 Makefile for VC + compile
problems
> Hello:
>
> You will certainly need to compile the required libraries before you
proceed
> compiling mapserver.
>
> Please find in the attachment my gd makefile, that should work for
> command line compilation of GD. You will need to download the version
> 2+ from, http://www.boutell.com/gd
>
> Now here is a simple solution to compiling mapserver 4,
>
> 1) Download required libraries that is (Please find links for all
> these at http://mapserver.gis.umn.edu/doc40/win32_compile-howto.html),
> a)GD Library
> b)PNG library
> c)Zlib
> d)Regex
>
> GD in turn needs,
> a) Zlib and,
> b) Freetype
> (You should be able to comment out JPEG stuff in the included makefile
> for GD and compile the same).
>
> Alternatively you can compile GD easily using the MSVC++ workspace
> too...
>
> As mentioned in the
> http://mapserver.gis.umn.edu/doc40/win32_compile-howto.html the
> following are optional,
>
> 1) Proj.4- easy compile-clean makefile
> 2) GDAL - easy compile-clean makefile
> 3) LIBTIFF- easy compile-clean makefile
> 4) LIBJPEG- kind of messy
> 5) ArcSDE - I have not tried this option
> 6) EPPL7 - included with mapserver src., you will have turn on a
> switch
for
> this to get included.
>
> Follow the instructions in mapserver docs, for compile for
> commenting/uncomenting (including, excluding) options.....
>
> Compile these libraries in your project directory first...
>
> Download mapserver source., from here,
> http://cvs.gis.umn.edu/dist/mapserver-4.0.tar.gz ( this one should not
cause
> any troubles..)
>
> You probably do not want the CVS one which is a developer version.,
certain
> things may be unstable there)...
>
> Mapserver make is a breeze too. Just turn on the required libraries
> in
the
> nmake.opt and follow instructions in makefile.vc.
>
> It should all work right...
>
> Bon Appetite!
> Gayathri
>
> PS: Please do let me know if you would like for me to help in this
process.,
> that is FTP to a site you would mention, my compiled libraries,
> makefiles etc...If yes,let me know of the FTP location, username,
> passwd...
>
>
> -----Original Message-----
> From: Stephen Clark [mailto:stephen.clark at focus.ca]
> Sent: Thursday, October 09, 2003 1:28 PM
> To: Swaminathan, Gayathri; mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC + compile
> problems
>
>
> Hi
>
> Item #1:
> Does anyone have a makefile.vc for the GD-2.x version that will
> compile
with
> Visual C 6? So far I have got to the point where the mapserver compile
stops
> at this library.
>
>
> Item #2:
>
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerCompilation
> and http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MicrosoftWindows
>
> on the wiki site does not really explain compiling very well for
> mapserver using Visual C++ Ver 6.
>
> (Specifically the use of the nmake site)
>
> I was wondering if someone could post their instructions.
>
> I believe that I may be trying to compile mapserver before the other
> supportin libraries are compiled. If it is correct to assume that the
> supportuing libraries are to be compiled before mapserver, would
> someone shed some light on their "best" solution?
>
>
>
> thanks,
> Stephen
>
>
> ----- Original Message -----
> From: "Swaminathan, Gayathri" <gayathri at ou.edu>
> To: "'Stephen Clark'" <stephen.clark at focus.ca>;
> <mapserver-users at lists.gis.umn.edu>
> Sent: Thursday, October 09, 2003 6:21 AM
> Subject: RE: [Mapserver-users] Mapserver 4 Makefile for VC
>
>
> > Stephen,
> >
> > The gdal error is coming because....you have forgot/dint comment the
> > following line in Makefile.vc
> >
> > "copy $(GDAL_DIR)\gdal.pdb ."
> >
> > Comment the same by including a "#" in the beginning of the line.
> >
> > On examining your nmake.opt, I see "c:\project" to be your working
> > directory...Is this correct? Are all the required libraries in here?
> > Have they been compiled before you proceeded to compile mapserver
> > 4.0?
> >
> > Cheers,
> > Gayathri
> >
> > -----Original Message-----
> > From: Stephen Clark [mailto:stephen.clark at focus.ca]
> > Sent: Wednesday, October 08, 2003 1:32 PM
> > To: mapserver-users at lists.gis.umn.edu
> > Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC
> >
> >
> > I have included my makefile.vc and nmake.opt files as well as the
> > compile errors foer your consideration.
> >
> > thanks,
> > Stephen
> >
> >
> >
> > ----- Original Message -----
> > From: "Stephen Clark" <stephen.clark at focus.ca>
> > To: "Swaminathan, Gayathri" <gayathri at ou.edu>; "'Yewondwossen
> > Assefa'" <assefa at dmsolutions.ca>
> > Cc: <mapserver-users at lists.gis.umn.edu>
> > Sent: Wednesday, October 08, 2003 10:23 AM
> > Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC
> >
> >
> > > Could someone post their makefile.vc and nmake.opt files.
> > >
> > > I would like a version that has the minimum set of options set
> > > whichI can then modify.
> > >
> > > thanks
> > > Stephen
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Swaminathan, Gayathri" <gayathri at ou.edu>
> > > To: "'Yewondwossen Assefa'" <assefa at dmsolutions.ca>
> > > Cc: <mapserver-users at lists.gis.umn.edu>
> > > Sent: Friday, September 19, 2003 8:03 AM
> > > Subject: RE: [Mapserver-users] Mapserver 4 Makefile for VC
> > >
> > >
> > > > :)
> > > > Missed that when looking, but after careful examination saw this
> > > > file.,
> > > >
> > > > Thanks all as always for your patience and time on this.
> > > >
> > > > Gayathri
> > > >
> > > > -----Original Message-----
> > > > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca]
> > > > Sent: Thursday, September 18, 2003 9:26 PM
> > > > To: Swaminathan, Gayathri
> > > > Cc: mapserver-users at lists.gis.umn.edu
> > > > Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC
> > > >
> > > >
> > > > Hi There,
> > > >
> > > > There are now 2 files involved in the process, makefile.vc and
> > > > nmake.opt where all the options are included. This separation
> > > > makes things clearer and the option file can be used by sub
> > > > projects like php/mapscript. All settings for necessary
> > > > libraries
> > > > + optional libraries are inside the nmake.opt.
> > > >
> > > > Later,
> > > >
> > > > Swaminathan, Gayathri wrote:
> > > > > Hi all:
> > > > >
> > > > > After being content with mapserver-3.6.5 for a long time now,
> > > > > I was getting ready to compile mapserver 4.0 and test it.
> > > > >
> > > > > There are several changes that I notice between
> > > > > mapserver-3.6.5 and mapserver-4.0. The makefile.vc in the
> > > > > package shrinked. I assumed this is not the One that I should
> > > > > be using and proceeded with alterations to my old makefile.vc
> > > > > that came from mapserver-3.6.5
> > > > >
> > > > > I was finally sucessful in building a mapserver with the
> > > > > following enabled.
> > > > >
> > > > > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > > > > SUPPORTS=PROJ INPUT=EPP L7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> > > > > INPUT=SHAPEFILE
> > > > >
> > > > > I need WMS server and WMS Client with this. I see that libcurl
> > > > > is being used somehow and keep getting errors on the same.
> > > > >
> > > > > Please, indicate to me the right corrections to makefile.vc
> > > > > (or) tell me where am I going wrong in this process.
> > > > >
> > > > > Thanks so much for your time on this.
> > > > > Gayathri _______________________________________________
> > > > > Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > >
> > > >
> > > >
> > > > --
> > > > ----------------------------------------------------------------
> > > > Assefa Yewondwossen
> > > > Software Analyst
> > > >
> > > > Email: assefa at dmsolutions.ca
> > > > http://www.dmsolutions.ca/
> > > >
> > > > Phone: (613) 565-5056 (ext 14)
> > > > Fax: (613) 565-0925
> > > > ----------------------------------------------------------------
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > >
> > >
> > > _______________________________________________
> > > Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > >
> > _______________________________________________
> > Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> _______________________________________________
> Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
------_=_NextPart_000_01C38EAF.AABD9CC0
Content-Type: application/octet-stream;
name="Makefile.vc"
Content-Disposition: attachment;
filename="Makefile.vc"
# Makefile for regex.
#
# Copyright (C) 1992, 1993 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
version = 0.12
# You can define CPPFLAGS on the command line. Aside from system-specific
# flags, you can define:
# -DREGEX_MALLOC to use malloc/realloc/free instead of alloca.
# -DDEBUG to enable the compiled pattern disassembler and execution
# tracing; code runs substantially slower.
# -DEXTRACT_MACROS to use the macros EXTRACT_* (as opposed to
# the corresponding C procedures). If not -DDEBUG, the macros
# are used.
CPPFLAGS = -DHAVE_STRING_H -DREGEX_MALLOC
# Likewise, you can override CFLAGS to optimize, use -Wall, etc.
CFLAGS = -Ox -G6
# Ditto for LDFLAGS and LOADLIBES.
LDFLAGS =
LOADLIBES =
#srcdir = @srcdir@
#VPATH = @srcdir@
CC = cl
#DEFS = @DEFS@
SHELL = /bin/sh
subdirs = doc test
default all:: regex.obj
.PHONY: default all
regex.obj: regex.c regex.h
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $*.c
clean mostlyclean::
rm -f *.obj
distclean:: clean
rm -f Makefile config.status
extraclean:: distclean
rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
configure: configure.in
autoconf
config.status: configure
sh configure --no-create
Makefile: Makefile.in config.status
sh config.status
makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
default all install \
mostlyclean clean distclean extraclean realclean \
TAGS check::
for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
.PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
# Prevent GNU make 3 from overflowing arg limit on system V.
.NOEXPORT:
distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
*.in configure regex.c regex.h
distdir = regex-$(version)
distargs = version=$(version) distdir=../$(distdir)/$$d
dist: TAGS configure
@echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
@echo " regex.c, regex.h,"
@echo " and doc/xregex.texi (if modified)."
rm -rf $(distdir)
mkdir $(distdir)
ln $(distfiles) $(distdir)
for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
tar czhf $(distdir).tar.Z $(distdir)
rm -rf $(distdir)
.PHONY: dist
------_=_NextPart_000_01C38EAF.AABD9CC0--
More information about the MapServer-users
mailing list