-
Notifications
You must be signed in to change notification settings - Fork 96
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
Compile error MacOS: capstone.h not found #30
Comments
Compilation succeeded by changing This disables capstone support obviously. |
Unsure why that's the case on your installation. Home Brew doesn't install into /opt by default, but into /usr/local ..? Did you do something different when installing Home Brew? |
The only difference that I could thing of is that I'm on an M1 Mac. I did not alter my homebrew installation in any way. |
Oh and I tried to install capstone's latest by running |
|
|
One of these ENV variables should make sure that the build always points to the correct location:
|
Looking at your first message again... you have the
and the error message says:
and the compiler command-line included:
so maybe the compiler was looking for
instead? 🤷 (this is just a guess!) |
I don't have much familiarity with OSX, but I bought myself an i3 MacMini a couple of weeks ago so that I could help with testing Mac stuff. It's still running Catalina, I've not upgraded it to Big Sur. FYI:
and if I scroll back through the terminal I can see that some of the compiler-commands include
so perhaps the "guess" in my previous message was in fact wrong? Sorry. |
The issue you referenced has been solved. Maybe that solution works here, too: WerWolv/ImHex#145 (comment) Here's the same solution, but in more detail: #7 (comment) (+ the following two comments) (@lurch it looks like you were right on the money with #30 (comment)) |
I guess this issue can be closed as well. |
The problem is that pkg-config --cflags returns CFLAGS already suffixed with "/capstone", but the code attempts to
|
Any changes proposed here should be submitted upstream. |
Capstone is installed via homebrew:
After
The compiler errors with
The Capstone headers are installed in
/opt/homebrew/Cellar/capstone/4.0.2/include
A similar issue has occurred here WerWolv/ImHex#145
The text was updated successfully, but these errors were encountered: