-
Notifications
You must be signed in to change notification settings - Fork 31
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
Unable to Load Shared Library 'capstone' or One of its Dependencies on MacOS #30
Comments
Hello. I don't have a Mac to test this one but I am pretty sure the dylib file needs to be named Can you try that? |
I am wrong about the naming convention. I found an MSDN document that suggests the dylib file can be named either Also make sure you're compiling the .NET Solution to |
I found the issue. Managed to include the dll but then I got an error for missing kernel32.dll. It looks it's not supported for MacOS :( |
That's interesting. The only code path where it would need to load Can you make sure you're linking your application against the DLL compiled for .NET Core/Standard? To be honest, I am not even sure how you are able to run the .NET Framework DLLs on Mac. |
Thank you again. I appreciate your help. Here are the steps I do.
Then when I build it, I get the missing kernel32.dll error. In a Windows laptop, when I install it through NuGet, I am able to run it without any error for the same project. |
It's no problem. I am happy to help out. Your issue is you're linking against the .NET Framework DLLs. In step 3, you're adding a reference to Instead, add a reference to As a side note, on a Mac you don't need to do step 4 because |
Thanks. I am trying again with the |
If you want to use a precompiled version of Make sure you read the full instructions, including the part about where the library is installed and setting the |
Wow. I thought that everything I need is in this repository. Didn't think about downloading manually the capstone. Doing what you said, fixed my issue. Brew install capstone and then export to the path. Thank you |
Glad you got it working. Good luck with your project. |
I am working on a MacBook and since the NuGet package does not include the Mac binaries, I try to build and add reference to it. However, I am lost in the process.
I cloned the repository, opened the Capstone.NET.sln file and ran Release. Then, in my project, I added a reference to
/Capstone.NET-master/Gee.External.Capstone/bin/Release/X/Gee.External.Capstone.dll
I tried with all net40, net45 and netstandard2.0. In all of them, I get the following error
The text was updated successfully, but these errors were encountered: