<div dir="ltr">PR proposed related to this <a href="https://github.com/OSGeo/gdal/pull/6843">https://github.com/OSGeo/gdal/pull/6843</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Dec 2022 at 13:18, Paul Harwood <<a href="mailto:runette@gmail.com">runette@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">BTW - I am fairly certain that the error messages are because the .NET SDK release default is still set as .NET 5 and reading your email - you don't have .NET 5. Since you did not set the .NET release - it is trying to use the default.<br><br>I think the error messages could be a lot better! I can have a look at that.<br><br>I guess that defaulting to .NET 5 is no longer ideal. I can have a look at that as well.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Dec 2022 at 12:58, Paul Harwood <<a href="mailto:runette@gmail.com" target="_blank">runette@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">sorry - cut and paste error. That should have been<div><br></div><div>-DBUILD_CSHARP_BINDINGS=OFF<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Dec 2022 at 12:53, Paul Harwood <<a href="mailto:runette@gmail.com" target="_blank">runette@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I can have a think about what is causing the problem - but the simplest fix if you don't want the c# bindings is to build with -DBUILD_CSHARP_BINDINGS:BOOLOFF<br><br>More on the compile switches here <a href="https://gdal.org/development/building_from_source.html#cmdoption-arg-BUILD_CSHARP_BINDINGS-BOOL" target="_blank">https://gdal.org/development/building_from_source.html#cmdoption-arg-BUILD_CSHARP_BINDINGS-BOOL</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Dec 2022 at 12:45, Rob Stevens <<a href="mailto:phlebas@cantab.net" target="_blank">phlebas@cantab.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am very new to building out GIS tools on the MacOS platform,<br>
so I apologize for my rather turgid description below.<br>
<br>
I am trying to build gdal 3.6.0 (git cloned)<br>
on macos catalina 10.15.7 on a macbook pro 2017<br>
On this machine I have various versions of Msoft dotnet core sdks installed<br>
(7.0.100, 6.0.403, 6.0.401, 2.1.500)<br>
All goes well until the build gets 88% done.<br>
Then I see:<br>
<br>
======= Building .NET project OSGeo.OSR [Release ]<br>
Determining projects to restore...<br>
/usr/local/share/dotnet/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): <br>
warning NETSDK1138: The target framework 'net5.0' is out of support and <br>
will not receive security updates in the future. Please refer to <br>
<a href="https://aka.ms/dotnet-core-support" rel="noreferrer" target="_blank">https://aka.ms/dotnet-core-support</a> for more information about the <br>
support policy. <br>
[/Users/rob/tmp/git_checkouts/gdal/build/swig/csharp/osr/osr_csharp.csproj]<br>
Writing /var/folders/15/nt94jgd930z_z6zr5gc081y00000gr/T/tmpUJ1Fvw.tmp<br>
info : X.509 certificate chain validation will use the fallback <br>
certificate bundle at <br>
'/usr/local/share/dotnet/sdk/7.0.100/trustedroots/codesignctl.pem'.<br>
info : X.509 certificate chain validation will use the fallback <br>
certificate bundle at <br>
'/usr/local/share/dotnet/sdk/7.0.100/trustedroots/timestampctl.pem'.<br>
info : Restoring packages for <br>
/Users/rob/tmp/git_checkouts/gdal/build/swig/csharp/osr/osr_csharp.csproj...<br>
info : GET <br>
<a href="https://api.nuget.org/v3-flatcontainer/osgeo.gdal.core/index.json" rel="noreferrer" target="_blank">https://api.nuget.org/v3-flatcontainer/osgeo.gdal.core/index.json</a><br>
info : NotFound <br>
<a href="https://api.nuget.org/v3-flatcontainer/osgeo.gdal.core/index.json" rel="noreferrer" target="_blank">https://api.nuget.org/v3-flatcontainer/osgeo.gdal.core/index.json</a> 1316ms<br>
error: NU1101: Unable to find package OSGeo.GDAL.Core. No packages exist <br>
with this id in source(s): <a href="http://nuget.org" rel="noreferrer" target="_blank">nuget.org</a><br>
error: Package 'OSGeo.GDAL.Core' is incompatible with 'all' frameworks <br>
in project <br>
'/Users/rob/tmp/git_checkouts/gdal/build/swig/csharp/osr/osr_csharp.csproj'<br>
<br>
It is not my intent to build any dotnet components/interfaces<br>
but the cmake build seems to want to do this just by virtue<br>
of my having dotnet SDKs installed. The cmake build files<br>
are very difficult to understand, and I have not yet been<br>
able to figure out how to prevent these unneeded<br>
components being built.<br>
<br>
1. How do I prevent these dotnet components being built?<br>
2. It seems as though I am trying to build against all versions of the <br>
dotnet<br>
SDK installed, but some of those versions do not have nuget packages<br>
for OSGeo.GDal.Core.<br>
Regardless of my needs, is this not a larger problem in the build?<br>
<br>
Thanks for any help.<br>
<br>
Rob Stevens<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>