[gdal-dev] Missing GDALMemDataset , GDALDatasetRasterIOEx , VSIMem when GDAL is built with CSHARP Bindings
Paul Harwood
runette at gmail.com
Fri Jan 31 05:38:22 PST 2025
https://github.com/OSGeo/gdal/blob/master/swig/csharp/CMakeLists.txt
On Fri, 31 Jan 2025 at 13:36, Parveen Sharma <sharma1981 at outlook.com> wrote:
> Thanks
>
> Could you please point me to the relevant scripts?
> ------------------------------
> *From:* Paul Harwood <runette at gmail.com>
> *Sent:* Friday, January 31, 2025 9:31 PM
> *To:* Parveen Sharma <sharma1981 at outlook.com>
> *Cc:* Michał Kowalczuk via gdal-dev <gdal-dev at lists.osgeo.org>
> *Subject:* Re: [gdal-dev] Missing GDALMemDataset , GDALDatasetRasterIOEx
> , VSIMem when GDAL is built with CSHARP Bindings
>
> I have checked and the three .csproj projects that you listed are NOT
> currently being build by the build scripts - because they are not needed
> for the test scripts. You will need to build them yourself.
>
> On Fri, 31 Jan 2025 at 13:23, Paul Harwood <runette at gmail.com> wrote:
>
> The first question that I would ask is what are you trying to achieve?
>
> DBUILD_APPS=ON will build the standard GDAL apps but does not affect the
> C# trial apps. I think this is the default anyway
>
> DBUILD_CSHARP_BINDINGS=ON will build the c# bindings and the c# trial
> apps. If that is what you are trying to do this should be sufficient.
>
> The directory structure is actually dependent on what is created by
> `dotnet` and can vary a little between platforms but sounds about right.
>
> I have a feeling that when we went to cmake builds, the three apps you
> mentioned mighted have been removed from the build scripts since they are
> not used by the test scripts. I will check but, since they are csproj
> projects you should anyway be able to just build them on top of the
> bindings using `dotnet`.
>
> On Fri, 31 Jan 2025 at 12:56, Parveen Sharma via gdal-dev <
> gdal-dev at lists.osgeo.org> wrote:
>
> Hi
>
> I am building GDAL Master branch (
> https://github.com/OSGeo/gdal/tree/master/swig/csharp/apps) using CMAKE.
> I am using below flags to build the CSHARP Bindings
>
> <arg value="-DBUILD_CSHARP_BINDINGS=ON"/>
> <arg value="-DBUILD_APPS=ON"/>
>
> However,
>
>
> 1. I notice that in "*RelWithDebInfo*" build mode there is NO "*apps*"
> folder generated in "RelWithDebInfo\swig\csharp" folder. I do see
> individual apps folder like "GDALCreateCopy", "GDALDatasetWrite",
> "GDALInfo" generated though. Is this expected?
>
>
> 2. I DO NOT see the any folder corresponding to *GDALMemDataset ,
> GDALDatasetRasterIOEx , VSIMem *in my "RelWithDebInfo\swig\csharp"
> folder even though the source file is present at
>
> https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALMemDataset.cs
>
> https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/GDALDatasetRasterIOEx.cs
> https://github.com/OSGeo/gdal/blob/master/swig/csharp/apps/VSIMem.cs
>
>
> *Am I missing any additional CMAKE Flags. Can you please let me know?*
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250131/1a5ad4fb/attachment.htm>
More information about the gdal-dev
mailing list