Compile MapSevrer with VS2005 (MapServer BuiltKit source code)

Tamas Szekeres szekerest at GMAIL.COM
Wed Jun 14 14:06:39 PDT 2006


You are right. Don’t be confused about the comments MSVC 8.0  have not been
widely used so far, and the comment was not be updated ;-)

 

Tamas

 

   _____  

From: Zhonghai Wang [mailto:zhonghaiw at gmail.com] 
Sent: Wednesday, June 14, 2006 10:52 PM
To: Tamas Szekeres
Cc: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] Compile MapSevrer with VS2005 (MapServer
BuiltKit source code)

 

Hi Tamas,

I really appreciate your help. 

and in my case, I uncomment also several options, but for my application
Oracle Spatial support is needed, so I use the latest version BuiltKit from
Howard Butler. I will try to compile all the needed libraries with VS2005. 

BTW: to compile CSharp/MapScript with MapServer, what I need to do is to
umcomment the DOTNET option in the nmake.opt file in the mapserver-4.8.3
folder, which is:

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



# .NET/C# MapScript


# ----------------------------------------------------------------------


# .NET will of course only work with MSVC 7.0 and 7.1.  Also note that


# you will definitely want USE_THREAD defined.



#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


DOT_NET = YES





is that right? but the MSVC 7.0 and 7.1.seems for VS2003.





thank you very much.





zhonghai

 

On 6/14/06, Tamas Szekeres <HYPERLINK
"mailto:szekerest at gmail.com"szekerest at gmail.com> wrote: 

Zhonghai,

The buildkit was compiled originally with VS2003, compiling with VS2005 is
not so straightforward.

 

When compiling gdal you probably link against several   libs compiled with
VS2003 previously so you should compile those libraries with VS2005 first.

See nmake.opt and search for the .lib references to locate those libraries.

I suggest to disable the libraries not really needed for your application.
(Even with mapserver and gdal)

I cannot confirm if all of the libraries could be enabled easily. In my
application ORACLE, SDE, XERCES, GEOS, ECW were disabled. (however these are
enabled by default). 

However some folks might have gone forward with the libraries mentioned
previously as well.

 

 

Best Regards,

 

Tamas Szekeres

 

   _____  

From: UMN MapServer Users List [mailto:HYPERLINK
"mailto:MAPSERVER-USERS at LISTS.UMN.EDU" \nMAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Zhonghai Wang
Sent: Wednesday, June 14, 2006 5:33 PM
To: HYPERLINK "mailto:MAPSERVER-USERS at LISTS.UMN.EDU"
\nMAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Compile MapSevrer with VS2005 (MapServer
BuiltKit source code)

 

hi guys,

 

I am trying to compile MapServer with VS2005 now, and I've struggle with it
for almost one day, but I am still in the dark...the following is done for
the compilation, and any ideas from you will be so helpful.

 

1.source code download: -- the MapServer BuildKit from Howard Butler

   HYPERLINK "http://hobu.stat.iastate.edu/mapserver/build_output/"
\nhttp://hobu.stat.iastate.edu/mapserver/build_output/ 

   and I have downloaded the latest package version
"mapserver-4.8.3-2-msvc71-buildk-kit.zip"

2.and I follow the compilation guide here: 

   HYPERLINK
"http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024
"
\nhttp://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a299702
4 

   to compile MapServer, according to this doc, I should at first compile
the GDAL package, and then come to the MapServer package. But when I am
trying to compile the GDAL   

   package under VS2005 command prompt with the command "nmake /f HYPERLINK
"http://makefile.vc" \nmakefile.vc", there are some error messages appears,
the scenario is:

********************************

*C:\buildkit\gdal-1.3.2>nmake /f HYPERLINK "http://makefile.vc"
\nmakefile.vc clean

*C:\buildkit\gdal-1.3.2>nmake /f HYPERLINK "http://makefile.vc"
\nmakefile.vc 

*

*

*

*and here come the error messages, I paste only the first one here, because
I think if I fix this problem, the other error may be fixed at the same
time:

*

*msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_string<char,struct s
*td::char_traits<char>,class std::allocator<char> > __cdecl
std::operator+<char,s
*truct std::char_traits<char>,class std::allocator<char> >(class
std::basic_strin 
*g<char,struct std::char_traits<char>,class std::allocator<char> > const
&,char c
*onst *)" (HYPERLINK
"mailto:??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_stri
ng" \n??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_string
*

*HYPERLINK "mailto:*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z"
\n at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z ) already defined
in geos
*.lib(WKTReader.obj)

*

*********************************

 

Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also
got some info from the Doc:HYPERLINK
"http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile"
\nhttp://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile , it says that
I should compile MapServer and the related libraries using VS2005 for .NET
FW 2.0, I begin with the VS2005 command prompt instead of following the
compilation guide in the mapserver README.WIN32, which gives: 

***

To build the package using the HYPERLINK "http://Makefile.vc" \nMakefile.vc
and NMAKE:

 - Edit nmake.opt to select (or deselect) optional components of 
   the MapServer.  Please read the notes below about each component
   before you move ahead with the compilation.

 - Open a DOS prompt window

 - Run the VCVARS32.BAT script to initialize the VC++ environment
   variables.  VCVARS32.BAT is automatically generated by the MSVC++
   install procedure and should be located in the BIN sub-directory of
   your MSVC++ installation. 

 - Then start the build with: 
     nmake /f HYPERLINK "http://Makefile.vc" \nMakefile.vc 

This will create "mapserv.exe" (the main MapServer CGI program), the
other command-line utilities, "mapserver.lib" and "libmap.dll" that is 
used by theMapScript modules.

***

I am now just wondering if it's possible to compile MapServer and related
libraries with VS2005, since the MSVCP80.dll can always not be found. Did
anyone have some experiences about that?

I would really appreciate it if you give me some HINTS for my compilation.

zhonghai

 

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 2006.06.14.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060614/2810f01d/attachment.htm>


More information about the MapServer-users mailing list