banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

Annonce

GEODATA DAYS 2024

#1 Fri 17 September 2010 20:04

cro
Juste Inscrit !
Date d'inscription: 17 Sep 2010
Messages: 2

gdal_csharp sous Ubuntu ?

Bonjour, j'essaie de compiler un programme avec Mono en utilisant gdal_csharp. Le programme compile sans problème, mais a l'exécution je reçois cette exception:

Code:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OSGeo.GDAL.GdalPINVOKE ---> System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> System.DllNotFoundException: gdal_wrap
  at (wrapper managed-to-native) OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_Gdal (OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.GDAL.GdalPINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at OSGeo.GDAL.GdalPINVOKE+SWIGExceptionHelper..cctor () [0x00000] 
  --- End of inner exception stack trace ---
  at OSGeo.GDAL.GdalPINVOKE..cctor () [0x00000] 
  --- End of inner exception stack trace ---
  at OSGeo.GDAL.Gdal.AllRegister () [0x00000] 
  at gdal_demo1.MainClass.Main (System.String[] args) [0x00000]

Alors comment faire pour utiliser gdal_csharp sous Linux ?

Hors ligne

 

#2 Mon 20 September 2010 12:07

LionelR
Participant occasionnel
Date d'inscription: 13 Apr 2010
Messages: 44

Re: gdal_csharp sous Ubuntu ?

Bonjour,
jamais codé en C# mais vu le "System.DllNotFoundException: gdal_wrap", me dis qu'il y a de grandes chances que ca puisse venir de là smile

Hors ligne

 

#3 Mon 20 September 2010 13:53

Sylvain33
Participant assidu
Lieu: Mauritius
Date d'inscription: 13 Feb 2007
Messages: 320
Site web

Re: gdal_csharp sous Ubuntu ?

Bonjour,

Quel est l'intérêt d'utiliser le C# ?

Hors ligne

 

#4 Mon 20 September 2010 13:56

LionelR
Participant occasionnel
Date d'inscription: 13 Apr 2010
Messages: 44

Re: gdal_csharp sous Ubuntu ?

Sylvain33 a écrit:

Bonjour,

Quel est l'intérêt d'utiliser le C# ?


Certainement autant que d'utiliser Java : aucun :-D

<mode troll=off>

Hors ligne

 

#5 Mon 20 September 2010 14:19

Sylvain33
Participant assidu
Lieu: Mauritius
Date d'inscription: 13 Feb 2007
Messages: 320
Site web

Re: gdal_csharp sous Ubuntu ?

Non mais je voulais insinuer que le C# c'est orienté Windows ...

Hors ligne

 

#6 Mon 20 September 2010 14:32

LionelR
Participant occasionnel
Date d'inscription: 13 Apr 2010
Messages: 44

Re: gdal_csharp sous Ubuntu ?

Ah bin deux trolls dans un topic, manque plus qu'à faire pousser la forêt big_smile

Hors ligne

 

#7 Mon 20 September 2010 14:42

ThomasG
Membre
Lieu: Nantes
Date d'inscription: 9 Sep 2005
Messages: 946
Site web

Re: gdal_csharp sous Ubuntu ?

Bonjour,

Hors trolls, plusieurs pistes:
http://gdalnet.codeplex.com/
ou
bien envoyer un mail sur la mailing-list gdal-dev http://lists.osgeo.org/mailman/listinfo/gdal-dev (l'auteur du blog http://szekerest.blogspot.com/ qui maintient le "binding" csharp pour gdal devrait pouvoir aider, étant sur la mailing-list précitée)

Edit : deux suppléments éventuels:
http://lists.osgeo.org/pipermail/gdal-d … 19729.html
http://go-mono.com/forums/#nabble-td1533739

Cordialement

ThomasG

PS : Juste des pistes, je ne suis pas un utilisateur C#

Dernière modification par ThomasG (Mon 20 September 2010 14:55)

Hors ligne

 

#8 Tue 21 September 2010 13:51

rouault
Participant assidu
Date d'inscription: 26 Apr 2009
Messages: 166

Re: gdal_csharp sous Ubuntu ?

Comme l'exception l'indique, il faut placer les .so/.dll générés lors de la compilation du binding C# de GDAL (quelque chose du genre [lib]gdal_wrap.dll/so, [lib]ogr_wrap.dll/so, [lib]gdalconst_wrap.dll/so, [lib]ogr_warp.dll), ainsi que le libgdal.so dans un chemin accessible par ton PATH et ça devrait rentrer dans l'ordre

Hors ligne

 

#9 Tue 21 September 2010 14:44

cro
Juste Inscrit !
Date d'inscription: 17 Sep 2010
Messages: 2

Re: gdal_csharp sous Ubuntu ?

Notre logiciel est sous Windows, mais si j'arrive à le faire fonctionner sous Linux sans trop de modification ça serait vraiment une bonne chose. Merci pour les pistes.

Hors ligne

 

Pied de page des forums

Powered by FluxBB