some progress building MapScript on NT

Brent Fraser bfraser at geoanalytic.com
Tue Jun 13 10:19:47 PDT 2000


Steve (and list subscribers),

    I'm using the makefile created by using the
command "perl makefile.pl" (I'm using ActivePerl,
on NT 4.0.  I then  do an "nmake" at the command
line.

 I removed the "-nodefaultlib" from the makefile
(what a hacker), and now it will compile to a DLL
using "nmake". I then did a "nmake install" and it
seemed to work (it copied files into the ActivePerl
directory and updated some other files).

  I tried the dump.pl perl script in the mapscript
examples directory, and got the following error:

Error: Parse Exception

When I use perl interactively, and type in the first
line of the dump.pl script "use mapscript;" I get
the same error as above.  So likely some perl file
has not been updated properly so it will recognize
the mapscript package.

Any perl experts out there..?

Brent Fraser

----- Original Message ----- 
From: "Stephen Lime" <steve.lime at dnr.state.mn.us>
To: <bfraser at geoanalytic.com>
Sent: Tuesday, June 13, 2000 9:11 AM
Subject: Re: some progress building MapScript on NT


Which makefiles you using and are you using the perl MakeMaker 
module to build the perl code? I'm a win32 neophyte so how to install
the dll is a mystery. A note to the list might help cause I think there are
a bunch of people trying to do this same thing.

s.

>>> "Brent Fraser" <bfraser at geoanalytic.com> 06/13/00 09:24AM >>>
Steve,

  Well, it looks like we won't have to change the variable names
(maybe).  I edited the Makefile at the line CCFLAGS (approx
line 244) and removed -TP and -DPERL_OBJECT.

Things compiled alot cleaner, but I still had some unresolved
symbols at the linking stage.  I added perlCAPI.lib to the list
of libaries in perlvars, and inserted  #include "perlCAPI.h" into
mapscript_wrap.c

  It compiles and links in the VC++ GUI.  I actually get a DLL !

However, on the command line with nmake, the linking stage
gives unresolved symbols in regex and proj of "HUGE" and 
"pctype".  I'm not sure if it's worth pursuing since I can use
the GUI to produce the DLL.

  Now that I have a mapscript.dll (the same as mapscript.so
in Unix?), what do I do with it (be nice!)?  Do I need to place 
it in the perl dir tree somewhere?

Thanks,
Brent


bfraser at geoanalytic.com 
GeoAnalytic Inc.
#300 , 700 - 4th Avenue SW Calgary, AB T2P 3J4
Tel:  (403)213-2700 Fax:  (403)213-2707
www.geoanalytic.com 







More information about the MapServer-users mailing list