[Gdal-dev] error in csharp bindings for ogr/gdal

Matthew Perry perrygeo at gmail.com
Fri Jan 5 14:23:47 EST 2007


Hey folks,

 Checking out the latest cvs head, I'm having troubles getting the
csharp bindings working. I'm using the Mono 1.2.2.1_1 installer on
linux.

I ran the following steps OK:
make veryclean
make interface
make

But 'make test' fails with this error:

LC_ALL=C mono createdata.exe Data pointlayer

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for OGR.ogr --->
System.TypeInitializationException: An exception was thrown by the
type initializer for OGR.ogrPINVOKE --->
System.TypeInitializationException: An exception was thrown by the
type initializer for SWIGExceptionHelper --->
System.DllNotFoundException: libogrcsharp.la
  at (wrapper managed-to-native)
SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_ogr
(OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OGR.ogrPINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at OGR.ogrPINVOKE+SWIGExceptionHelper..cctor () [0x00000] --- End of
inner exception stack trace ---

  at <0x00000> <unknown method>
  at OGR.ogrPINVOKE..cctor () [0x00000] --- End of inner exception
stack trace ---

  at <0x00000> <unknown method>
  at OGR.ogr..cctor () [0x00000] --- End of inner exception stack trace ---

make: *** [test] Error 1

Indeed "libogrcsharp.la" does not exist nor do the other *.la files
refered to in the dll config files.

Any ideas?

-- 
Matthew T. Perry
http://www.perrygeo.net



More information about the Gdal-dev mailing list