Again c# Unable to load DLL (mapscript)
Paolo Corti
pcorti at GMAIL.COM
Fri Jul 21 03:19:34 PDT 2006
Thank you very much for helping me Tamas,
now seems to work:
This is what I did, according to your suggestion:
*****************************************************
cd C:\cvs\buildkit\mapserver-4.8.3
nmake -f makefile.vc install
cd mapscript\python
c:\cvs\buildkit\mapserver-4.8.3\..\SWIG-1.3.27\swig -python -shadow -o
mapscript_wrap.c ../mapscript.i
"c:\cvs\buildkit\mapserver-4.8.3\..\Python-2.4.2"\PCBuild\python.exe
setup.py bdist
running bdist
running bdist_dumb
running build
running build_py
copying mapscript.py -> build\lib.win32-2.4
running build_ext
building '_mapscript' extension
C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox
/MD /W3 /GX /DNDEBUG -DHAVE_STRING_H
-DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT
-DUSE_POSTGIS -DWIN32 -D_WIN32 -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT
-DGD_HAS_GETBITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD -DUSE_WMS_LYR
-DUSE_MING_FLASH -DIGNORE_MISSING_DATA
-DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR
-DUSE_PDF -DUSE_GD_ANTIALIAS -DUSE_ICONV
-DUSE_GEOS -DUSE_ZLIB -Ic:\cvs\buildkit\Python-2.4.2\include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33
-Ic:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b
-Ic:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src
-Ic:\cvs\buildkit\mapserver-4.8.3\..\regex-0.12
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr/ogrsf_frmts
-Ic:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src
-Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a
-Ic:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib
-Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq
-Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers
-Ic:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3
-Ic:\cvs\buildkit\Python-2.4.2\include -Ic:\cvs\buildkit\Python-2.4.2\PC
/Tcmapscript_wrap.c
/Fobuild\temp.win32-2.4\Release\mapscript_wrap.obj
mapscript_wrap.c
c:\cvs\buildkit\gdal-1.3.2\port\cpl_config.h(8) : warning C4005:
'HAVE_SNPRINTF' : macro redefinition
c:\cvs\buildkit\Python-2.4.2\Include\pyerrors.h(220) : see previous
definition of 'HAVE_SNPRINTF'
C:\Programmi\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo
/INCREMENTAL:NO
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\freetype-2.1.10/objs
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\lib
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\libpng-1.2.8\projects\visualc71\Win32_LIB_Release
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib/Release_DLL
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33
/LIBPATH:c:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq/release
/LIBPATH:c:\cvs\buildkit\Python-2.4.2\libs
/LIBPATH:c:\cvs\buildkit\Python-2.4.2\PCBuild libpqdll.lib iconv.lib
libcurl.lib mapserver_i.lib libming.lib geos.lib proj_i.lib libjpeg.lib
gd.lib freetype2110.lib pdflib.lib libpng.lib
gdal_i.lib zdll.lib /EXPORT:init_mapscript
build\temp.win32-2.4\Release\mapscript_wrap.obj
build\temp.win32-2.4\Release\pygdioctx/pygdioctx.obj
/OUT:build\lib.win32-2.4\_mapscript.pyd
/IMPLIB:build\temp.win32-2.4\Release\_mapscript.lib
Creating library build\temp.win32-2.4\Release\_mapscript.lib and object
build\temp.win32-2.4\Release\_mapscript.exp
installing to build\bdist.win32\dumb
running install
running install_lib
creating build\bdist.win32\dumb
creating build\bdist.win32\dumb\cvs
creating build\bdist.win32\dumb\cvs\buildkit
creating build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2
creating build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib
creating build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages
copying build\lib.win32-2.4\mapscript.py ->
build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages
copying build\lib.win32-2.4\_mapscript.pyd ->
build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages
byte-compiling
build\bdist.win32\dumb\cvs\buildkit\Python-2.4.2\Lib\site-packages\mapscript.py
to mapscript.pyc
creating
'C:\cvs\buildkit\mapserver-4.8.3\mapscript\python\dist\mapscript-4.8.3.win32.zip'
and adding '.' to it
adding 'cvs\buildkit\Python-2.4.2\Lib\site-packages\mapscript.py'
adding 'cvs\buildkit\Python-2.4.2\Lib\site-packages\mapscript.pyc'
adding 'cvs\buildkit\Python-2.4.2\Lib\site-packages\_mapscript.pyd'
removing 'build\bdist.win32\dumb' (and everything under it)
cd ..\..
cd mapscript\csharp
nmake /f makefile.vc
c:\cvs\buildkit\mapserver-4.8.3\..\SWIG-1.3.27\swig -csharp -o
mapscript_wrap.c ../mapscript.i
cl /nologo /Ox /MD /W3 /DDEBUG /EHsc -DWIN32 -D_WIN32
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33
-Ic:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b
-Ic:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src
-Ic:\cvs\buildkit\mapserver-4.8.3\..\regex-0.12
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr/ogrsf_frmts
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port
-Ic:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src
-Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a
-Ic:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib
-Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq
-Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers
-Ic:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3
-DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP
-DNEED_STRLCAT -DUSE_POSTGIS -DWIN32 -D_WIN32
-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR
-DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD
-DUSE_WMS_LYR -DUSE_MING_FLASH
-DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR
-DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_PDF
-DUSE_GD_ANTIALIAS -DUSE_ICONV -DUSE_GEOS -DUSE_ZLIB -I../..
/DCOMPILE_DL=1 /c mapscript_wrap.c
/Fomapscript_wrap.obj
mapscript_wrap.c
link /dll /debug /out:mapscript.dll mapscript_wrap.obj
../../mapserver_i.lib
c:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33/gd.lib
c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib
c:\cvs\buildkit\mapserver-4.8.3\..\libpng-1.2.8\projects\visualc71\Win32_LIB_Release\libpng.lib
c:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3/zdll.lib
c:\cvs\buildkit\mapserver-4.8.3\..\freetype-2.1.10/objs/freetype2110.lib
c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib
c:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src/proj_i.lib
c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib
c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib
c:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/libcurl.lib
c:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src/libming.lib
c:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib/Release_DLL/pdflib.lib
"C:\Programmi\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\Lib\WS2_32.Lib"
c:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq/release/libpqdll.lib
c:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\lib\iconv.lib
c:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/geos.lib
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
csc /t:library /out:mapscript_csharp.dll *.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
csc /r:mapscript_csharp.dll examples\shpdump.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
csc /r:mapscript_csharp.dll examples\drawmap.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
csc /r:mapscript_csharp.dll examples\shapeinfo.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
cd ..\..
cd mapscript\java
nmake /f makefile.vc
mkdir edu\umn\gis\mapscript
c:\cvs\buildkit\mapserver-4.8.3\..\SWIG-1.3.27\swig -java -package
edu.umn.gis.mapscript -outdir
edu/umn/gis/mapscript -o mapscript_wrap.c ../mapscript.i
"C:\j2sdk1.4.2_06"\bin\javac edu\umn\gis\mapscript\*.java
cl /MD -I"C:\j2sdk1.4.2_06"\include -I"C:\j2sdk1.4.2_06"\include\win32
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33
-Ic:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b
-Ic:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src
-Ic:\cvs\buildkit\mapserver-4.8.3\..\regex-0.12
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gcore
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/alg
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr/ogrsf_frmts
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/ogr
-Ic:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/port
-Ic:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src
-Ic:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a
-Ic:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib
-Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq
-Ic:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\include
-Ic:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/headers
-Ic:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3
-DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP
-DNEED_STRLCAT -DUSE_POSTGIS -DWIN32 -D_WIN32
-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR
-DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_OGR -DUSE_WMS_SVR -DUSE_THREAD
-DUSE_WMS_LYR -DUSE_MING_FLASH
-DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL -DUSE_WFS_SVR
-DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_PDF
-DUSE_GD_ANTIALIAS -DUSE_ICONV -DUSE_GEOS -DUSE_ZLIB -DWIN32 -D_WIN32 /c
mapscript_wrap.c /Fomapscript_wrap.obj
mapscript_wrap.c
link /dll /debug mapscript_wrap.obj
c:\cvs\buildkit\mapserver-4.8.3\..\gd-2.0.33/gd.lib
c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib
c:\cvs\buildkit\mapserver-4.8.3\..\libpng-1.2.8\projects\visualc71\Win32_LIB_Release\libpng.lib
c:\cvs\buildkit\mapserver-4.8.3\..\zlib-1.2.3/zdll.lib
c:\cvs\buildkit\mapserver-4.8.3\..\freetype-2.1.10/objs/freetype2110.lib
c:\cvs\buildkit\mapserver-4.8.3\..\jpeg-6b/libjpeg.lib
c:\cvs\buildkit\mapserver-4.8.3\..\proj-4.4.9/src/proj_i.lib
c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib
c:\cvs\buildkit\mapserver-4.8.3\..\gdal-1.3.2/gdal_i.lib
c:\cvs\buildkit\mapserver-4.8.3\..\curl-7.15.0/libcurl.lib
c:\cvs\buildkit\mapserver-4.8.3\..\ming-0.2a/src/libming.lib
c:\cvs\buildkit\mapserver-4.8.3\..\PDFlib-Lite-6.0.2/libs/pdflib/Release_DLL/pdflib.lib
"C:\Programmi\Microsoft Visual
Studio .NET 2003\Vc7\PlatformSDK\Lib\WS2_32.Lib"
c:\cvs\buildkit\mapserver-4.8.3\..\postgresql-8.1.2/src/interfaces/libpq/release/libpqdll.lib
c:\cvs\buildkit\mapserver-4.8.3\..\libiconv-1.9.1\lib\iconv.lib
c:\cvs\buildkit\mapserver-4.8.3\..\geos-2.2.2/source/geos.lib
..\..\mapserver_i.lib /NODEFAULTLIB:"MSVCRTD"
/NODEFAULTLIB:libcd /NODEFAULTLIB:libcmtd /NODEFAULTLIB:msvcrtd
/NODEFAULTLIB:LIBC /DEBUG /def:..\..\mapserver.def
/out:mapscript.dll /implib:mapscript_i.lib
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\j2sdk1.4.2_06"\bin\jar cf mapscript.jar edu
cd ..\..
cd mapscript\php3
nmake /f makefile.vc
cd ..\..
mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin
xcopy /y /r /d /f libmap.dll c:\cvs\buildkit\mapserver-4.8.3\..\bin
C:\cvs\buildkit\mapserver-4.8.3\libmap.dll -> C:\cvs\buildkit\bin\libmap.dll
1 File copiati
copy *.exe c:\cvs\buildkit\mapserver-4.8.3\..\bin
legend.exe
mapserv.exe
scalebar.exe
shp2img.exe
shptree.exe
shptreevis.exe
sortshp.exe
tile4ms.exe
8 file copiati.
mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\python
xcopy /y /r /d /f .\mapscript\python\dist\*.zip
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\python
C:\cvs\buildkit\mapserver-4.8.3\mapscript\python\dist\mapscript-4.8.3.win32.zip
->
C:\cvs\buildkit\bin\mapscript\python\mapscript-4.8.3.win32.zip
1 File copiati
mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp
xcopy /y /r /d /f .\mapscript\csharp\*.dll
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp
C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\mapscript.dll ->
C:\cvs\buildkit\bin\mapscript\csharp\mapscript.dll
C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\mapscript_csharp.dll ->
C:\cvs\buildkit\bin\mapscript\csharp\mapscript_csharp.dll
2 File copiati
xcopy /y /r /d /f .\mapscript\csharp\*.exe
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp
C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\drawmap.exe ->
C:\cvs\buildkit\bin\mapscript\csharp\drawmap.exe
C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\shapeinfo.exe ->
C:\cvs\buildkit\bin\mapscript\csharp\shapeinfo.exe
C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\shpdump.exe ->
C:\cvs\buildkit\bin\mapscript\csharp\shpdump.exe
3 File copiati
xcopy /y /r /d /f .\mapscript\csharp\*.manifest
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp
0 File copiati
xcopy /y /r /d /f .\mapscript\csharp\*.config
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\csharp
C:\cvs\buildkit\mapserver-4.8.3\mapscript\csharp\mapscript_csharp.dll.config
->
C:\cvs\buildkit\bin\mapscript\csharp\mapscript_csharp.dll.config
1 File copiati
mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\java
xcopy /y /r /d /f .\mapscript\java\*.dll
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\java
C:\cvs\buildkit\mapserver-4.8.3\mapscript\java\mapscript.dll ->
C:\cvs\buildkit\bin\mapscript\java\mapscript.dll
1 File copiati
xcopy /y /r /d /f .\mapscript\java\*.jar
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\java
C:\cvs\buildkit\mapserver-4.8.3\mapscript\java\mapscript.jar ->
C:\cvs\buildkit\bin\mapscript\java\mapscript.jar
1 File copiati
mkdir c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\php
xcopy /y /r /d /f .\mapscript\php3\*.dll
c:\cvs\buildkit\mapserver-4.8.3\..\bin\mapscript\php
C:\cvs\buildkit\mapserver-4.8.3\mapscript\php3\php_mapscript.dll ->
C:\cvs\buildkit\bin\mapscript\php\php_mapscript.dll
1 File copiati
*****************************************************
now the unable to load dll error went away, and I could finally start with
C# map server progamming.
But...
this is a very simple sample code I did:
//mapObj
mapObj map = new mapObj(@"C:\ms4w\apps\sample\sample1.map");
Console.WriteLine("xmin: " + map.extent.minx.ToString() + ", ymin: " +
map.extent.miny.ToString() + ", xmax: " + map.extent.maxx.ToString() + ",
ymax: " + map.extent.maxy.ToString());
//shapefileObj
shapefileObj shapefile = new shapefileObj(@"C:\temp\province",5);
Console.WriteLine ("Num shapes = " + shapefile.numshapes);
Console.WriteLine("Num Layers:" + map.numlayers);
for (int i=0; i<map.numlayers; i++)
{
//layerObj
layerObj layer = map.getLayer(i);
Console.WriteLine("Layer [" + i + "] name: " + layer.name);
}
map.setImageType("jpeg");
map.setSize(400,400);
//imageObj
imageObj image = map.draw();
image.save(@"c:\temp\out4.jpg", map);
Console.WriteLine("Image URL = " + image.imageurl + "; Image path = " +
image.imagepath);
and this is the output:
xmin: 0, ymin: 0, xmax: 0, ymax: 0
Num shapes = 0
Num Layers:1
Layer [0] name: province
Image URL = ; Image path =
why the initial extent is 0 for each coordinate? (in the map file is not
so...)
Why numShapes is 0? (it should be 103...)
why the generated blank map is not inserted in the imageurl and imagepath
properties of the mapObj?
Is there anywhere a C# API to MapServer?
Whate are your future plans for using C# library in ASP .NET projects?
(somewhere in this forum I was reading that the library is not usable from
ASP .NET)
Thanks in advance for your precious help
Paolo
--
View this message in context: http://www.nabble.com/Again-c--Unable-to-load-DLL-%28mapscript%29-tf1975214.html#a5431443
Sent from the Mapserver - User forum at Nabble.com.
More information about the MapServer-users
mailing list