Skip to content
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

building on macOS is tricky due to capstone.h inclusion #342

Open
emidoots opened this issue May 2, 2023 · 1 comment
Open

building on macOS is tricky due to capstone.h inclusion #342

emidoots opened this issue May 2, 2023 · 1 comment

Comments

@emidoots
Copy link

emidoots commented May 2, 2023

Almost the same issue as raspberrypi/openocd#30 - on macOS bloaty's cmake file fails to find capstone.h due to the fact that Homebrew stores capstone headers in a different location than bloaty's cmake file expects (see the linked issue for details)

I am just creating this issue to mention it is a problem; and also to let other macOS users know the workaround:

export CXXFLAGS=-isystem\ /opt/homebrew/Cellar/capstone/4.0.2/include 
cmake -B build -G Ninja -S .
cmake --build build
@max0x53
Copy link

max0x53 commented Jul 18, 2023

I believe the following cmake option will also resolve your issue on MacOS.

cmake -B build -DBLOATY_PREFER_SYSTEM_CAPSTONE=NO -G Ninja -S .
cmake --build build

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

2 participants