-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to resolve libClang or libClangSharp on fresh build on M1/Arm-64 Mac #411
Comments
As described on other issues (such as #46) this is an issue with .NET Tools and there not being a way to ship RID specific versions of a tool. Because of that, there is no way to provide If we were to do this in a non-RID specific way, the .NET tool NuGet package (that is the compressed zip) would be 70MB just to support Please upvote issues such as NuGet/Home#10571 if the scenario is important to you. |
Ah okay gotcha. For what it's worth, I'd be happy to pay the price of the full download in the meantime to get a "just works" option. My use case is generating bindings locally and intermittently, so one local 300mb download isn't that bad. I recognize for cloud/CI scenarios that isn't great, but the issue comes up enough here that it is worth considering releasing a package that is that that people could opt into using, with the necessary caveats. People with specific RID scenarios can resolve them on their own to reduce the overhead, which is already what's happening now anyways. |
It's not possible due to NuGet upload size restrictions. The easiest thing is to either build locally, which should "just work" or to copy the one required binary from NuGet into the dotnet tool install. Instructions were updated in the readme to try and make this clearer. |
Trying to jump into this project again and again failing to run the project. Tried as a global tool first but encountered all the "normal" issues that seem to crop up with arm-64.
Decided to build managed from source, and running ClangSharpPinvokeGenerator from the output bin resulted in the following:
Failed to resolve libClang or libClangSharp.
Here's the build output, with libClang and libClangSharp hanging out right next to the output program. Worth noting
zstd
is installed with brew.The text was updated successfully, but these errors were encountered: