Hi,
I've been able to build GDAL 1.11.1 using nmake, but the following
error happens when attempting to build the bindings in \swig\csharp.

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd ogr
    nmake /nologo /f makefile.vc
NMAKE : fatal error U1073: don't know how to make 'ogr_wrap.obj'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 12.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.


After a make clean and a make interface I attempted the build again.
I've attached the errors but most of them seem to be related to not
finding types in System.Windows.Interop (HandleRef, IntPtr,
IDisposable)

The swig version I'm using is SWIG Version 3.0.2

Compiled with i586-mingw32msvc-g++ [i586-pc-mingw32msvc]

Configured options: +pcre

Any ideas?

Thanks,
Adam
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ogr
        nmake /nologo /f makefile.vc
        cl   /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE 
/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 
/wd4100 /wd4245 /wd4206 /wd4018 /wd4389 /DHAVE_SSE_AT_COMPILE_TIME 
-I..\..\..\port -I..\..\..\ogr -I..\..\..\gcore  -I..\..\..\alg 
-I..\..\..\ogr\ogrsf_frmts  -DOGR_ENABLED  /c ogr_wrap.cpp 
ogr_wrap.cpp
        xcopy /D  /Y *.obj ..
D:ogr_wrap.obj
1 File(s) copied
        cd ..
        cd gdal
        nmake /nologo /f makefile.vc
        cl   /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE 
/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 
/wd4100 /wd4245 /wd4206 /wd4018 /wd4389 /DHAVE_SSE_AT_COMPILE_TIME 
-I..\..\..\port -I..\..\..\ogr -I..\..\..\gcore  -I..\..\..\alg 
-I..\..\..\ogr\ogrsf_frmts  -DOGR_ENABLED  /c gdal_wrap.cpp 
gdal_wrap.cpp
        xcopy /D  /Y *.obj ..
D:gdal_wrap.obj
1 File(s) copied
        cd ..
        cd osr
        nmake /nologo /f makefile.vc
        cl   /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE 
/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 
/wd4100 /wd4245 /wd4206 /wd4018 /wd4389 /DHAVE_SSE_AT_COMPILE_TIME 
-I..\..\..\port -I..\..\..\ogr -I..\..\..\gcore  -I..\..\..\alg 
-I..\..\..\ogr\ogrsf_frmts  -DOGR_ENABLED  /c osr_wrap.cpp 
osr_wrap.cpp
        xcopy /D  /Y *.obj ..
D:osr_wrap.obj
1 File(s) copied
        cd ..
        cd const
        nmake /nologo /f makefile.vc
        cl   /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE 
/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 
/wd4100 /wd4245 /wd4206 /wd4018 /wd4389 /DHAVE_SSE_AT_COMPILE_TIME 
-I..\..\..\port -I..\..\..\ogr -I..\..\..\gcore  -I..\..\..\alg 
-I..\..\..\ogr\ogrsf_frmts  -DOGR_ENABLED  /c gdalconst_wrap.c 
gdalconst_wrap.c
        xcopy /D  /Y *.obj ..
D:gdalconst_wrap.obj
1 File(s) copied
        cd ..
        csc /platform:x86  /target:library /out:osr_csharp.dll osr\*.cs 
AssemblyInfo.cs
Microsoft (R) Visual C# Compiler version 12.0.30501.0

for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.

osr\Osr.cs(13,30): error CS0246: The type or namespace name 'IDisposable' could 
not be found (are you missing a using directive or an assembly reference?)
osr\OsrPINVOKE.cs(199,36): error CS0246: The type or namespace name 
'IDisposable' could not be found (are you missing a using directive or an 
assembly reference?)
osr\CoordinateTransformation.cs(12,11): error CS0246: The type or namespace 
name 'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
osr\CoordinateTransformation.cs(19,35): error CS0246: The type or namespace 
name 'IntPtr' could not be found (are you missing a using directive or an 
assembly reference?)
osr\CoordinateTransformation.cs(25,17): error CS0246: The type or namespace 
name 'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
osr\CoordinateTransformation.cs(28,17): error CS0246: The type or namespace 
name 'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
osr\CoordinateTransformation.cs(40,17): error CS0246: The type or namespace 
name 'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
osr\Osr.cs(58,69): error CS0246: The type or namespace name 'IntPtr' could not 
be found (are you missing a using directive or an assembly reference?)
osr\Osr.cs(59,63): error CS0246: The type or namespace name 'IntPtr' could not 
be found (are you missing a using directive or an assembly reference?)
osr\Osr.cs(59,79): error CS0246: The type or namespace name 'IntPtr' could not 
be found (are you missing a using directive or an assembly reference?)
osr\Osr.cs(42,44): error CS0246: The type or namespace name 'IntPtr' could not 
be found (are you missing a using directive or an assembly reference?)
osr\Osr.cs(53,42): error CS0246: The type or namespace name 'IntPtr' could not 
be found (are you missing a using directive or an assembly reference?)
osr\OsrPINVOKE.cs(200,21): error CS0246: The type or namespace name 'IntPtr' 
could not be found (are you missing a using directive or an assembly reference?)
osr\OsrPINVOKE.cs(189,10): error CS0111: Type 'OSGeo.OSR.OsrPINVOKE' already 
defines a member called 'OsrPINVOKE' with the same parameter types
osr\OsrPINVOKE.cs(185,10): (Location of symbol related to previous error)
osr\OsrPINVOKE.cs(218,47): error CS0246: The type or namespace name 'IntPtr' 
could not be found (are you missing a using directive or an assembly reference?)
osr\OsrPINVOKE.cs(227,24): error CS0246: The type or namespace name 'IntPtr' 
could not be found (are you missing a using directive or an assembly reference?)
osr\OsrPINVOKE.cs(230,24): error CS0246: The type or namespace name 'IntPtr' 
could not be found (are you missing a using directive or an assembly reference?)
osr\OsrPINVOKE.cs(512,116): error CS0246: The type or namespace name 'IntPtr' 
could not be found (are you missing a using directive or an assembly reference?)
osr\SpatialReference.cs(12,11): error CS0246: The type or namespace name 
'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
osr\SpatialReference.cs(19,27): error CS0246: The type or namespace name 
'IntPtr' could not be found (are you missing a using directive or an assembly 
reference?)
osr\SpatialReference.cs(25,17): error CS0246: The type or namespace name 
'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
osr\SpatialReference.cs(28,17): error CS0246: The type or namespace name 
'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
osr\SpatialReference.cs(40,17): error CS0246: The type or namespace name 
'HandleRef' could not be found (are you missing a using directive or an 
assembly reference?)
NMAKE : fatal error U1077: '"C:\Program Files (x86)\MSBuild\12.0\bin\csc.EXE"' 
: return code '0x1'
Stop.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to