Closed bensasl2 closed 10 months ago
Update: Issue Resolved
I wanted to provide an update on this issue. After further investigation, I discovered that the problem was related to the Conda installation. Once I addressed the Conda setup, the DllNotFoundException for gdal_wrap was resolved.
Thanks for the issue and the update. I was about to say that this issue is almost certainly due to the conda configuration.
Using Conda does introduce some complexity - but it solves even more problems with dependencies with GDAL and with updates so it is worth it :)
Thanks for using the package
Environment:
Issue Description: I am encountering a
DllNotFoundException
when trying to use the GDAL package in Unity. The specific error is forgdal_wrap
. This issue arises when attempting to initialize GDAL usingGdal.AllRegister();
in a C# script.Error Message: DllNotFoundException: gdal_wrap assembly: type: member:(null)
OSGeo.GDAL.GdalPINVOKE+SWIGExceptionHelper..cctor () (at ./Library/PackageCache/com.virgis.gdal@e85ead4664/Runtime/Scripts/gdal/GdalPINVOKE.cs:139)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
OSGeo.GDAL.GdalPINVOKE..cctor () (at ./Library/PackageCache/com.virgis.gdal@e85ead4664/Runtime/Scripts/gdal/GdalPINVOKE.cs:159)
Rethrow as TypeInitializationException: The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception.
OSGeo.GDAL.Gdal.AllRegister () (at ./Library/PackageCache/com.virgis.gdal@e85ead4664/Runtime/Scripts/gdal/Gdal.cs:861)
S57Reader.Start () (at Assets/myscript.cs:10)
Steps to Reproduce:
I would appreciate any guidance or suggestions to resolve this issue. Thank you!