[Mapserver-users] Mapserver 4 Makefile for VC + compile probl ems

Pericles S. Nacionales nacional at cbs.umn.edu
Fri Oct 10 15:42:13 EDT 2003


I'll try to post an updated HOW-TO with some of the suggestions here over the 
weekend.

Thanks all for the suggestions/recommendations and sorry for the delays.

-Perry N.

On Friday 10 October 2003 01:52 pm, Swaminathan, Gayathri wrote:
> Agreed.
> May be update the wiki for Mapserver windows Compile :)
>
> Cheers
> Gayathri
>
> -----Original Message-----
> From: Stephen Clark [mailto:stephen.clark at focus.ca]
> Sent: Friday, October 10, 2003 12:52 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC + compile
> problems
>
>
> Brent and others,
>
> Thanks for the effort with my compilation problems.
> We should post an update to the WIKI and the DOCS for MS 4.0 and the
> supporting libraries that have changes since:
>
> http://mapserver.gis.umn.edu/doc40/win32_compile-howto.html
>
> was originally written.
>
> thanks,
> Stephen
>
> ----- Original Message -----
> From: "Brent Fraser" <bfraser at geoanalytic.com>
> To: "Stephen Clark" <stephen.clark at focus.ca>;
> <mapserver-users at lists.gis.umn.edu>
> Sent: Thursday, October 09, 2003 3:43 PM
> Subject: Re: [Mapserver-users] Mapserver 4 Makefile for VC + compile
> problems
>
> > Stephen (and others who would like to compile with VC++),
> >
> >   I attached instructions for building Mapserver and the dependencies
> > with
> > VC++.  It's not THE way, just MY way.  (Now that there is an excellent
> > nmake.opt file with Mapserver,  I'll have to update my doc to use
> > it...)
> >
> > Hope it helps...
> >
> > Brent
> >
> >
> > ----- Original Message -----
> > From: "Stephen Clark" <stephen.clark at focus.ca>
> > To: "Swaminathan, Gayathri" <gayathri at ou.edu>;
> > <mapserver-users at lists.gis.umn.edu>
> > Sent: Thursday, October 09, 2003 3:19 PM
> > 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
>
> _______________________________________________
> 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

-- 
Pericles S. Nacionales
Dept. of Ecology, Evolution & Behavior
College of Biological Sciences
University of Minnesota

e-mail: nacional at cbs.umn.edu
phone: 612 624 6713




More information about the mapserver-users mailing list