Skip to content

Cannot use on OS X #117

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

Closed
RichardB01 opened this issue Feb 1, 2020 · 4 comments
Closed

Cannot use on OS X #117

RichardB01 opened this issue Feb 1, 2020 · 4 comments

Comments

@RichardB01
Copy link

Hi,

After installing ClangSharp from the nuget package managaer using Visual Studio for Mac, the program throws errors.

/Users/richardbamford/.nuget/packages/clangsharp/3.8.0/build/ClangSharp.targets(5,5): Error: ClangSharp requires the platform target for the solution and/or project to be either x86 or x64 to PInvoke appropriately. (rr)

Any idea how to fix this?

@tannergooding
Copy link
Member

3.8.0 was the last "stable" release but it is over 3 years old at this point and there have been many changes, improvements, etc since then.

I would recommend trying the 8.0.0-beta or 9.0.0-beta package (which correspond to Clang v8.0.0 and v9.0.0, respectively) and seeing if the issue still reproduces.

@RichardB01
Copy link
Author

Hi,

v9.0.0 works great, the only issue is that i can't seem to find a libclang.dylib when i install this package: https://www.nuget.org/packages/libclang

See attached:
Screenshot 2020-02-09 at 21 11 19

I had to use the dylib packaged with this nuget package instead:
https://www.nuget.org/packages/clang.sharp/

@aspcompiler
Copy link

aspcompiler commented Feb 15, 2020

If you publish, the publish directory will include all the .dylib, for example, run from the ClangSharpPInvokeGenerator directory:

dotnet publish -r osx-x64

@tannergooding
Copy link
Member

The issue is likely the same as described in #118 (comment). Going to close as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants