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 <[EMAIL PROTECTED]> 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:[email protected]] On Behalf Of Zhonghai Wang
Sent: Wednesday, June 14, 2006 5:33 PM
To: [email protected]
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

   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:

   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 makefile.vc", there are some error messages appears, the scenario is:

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

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

*C:\buildkit\gdal-1.3.2>nmake /f makefile.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 *)" ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@YA?AV?$basic_string *

*

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

 

Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also got some info from the Doc:http://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 Makefile.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 Makefile.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.


Reply via email to