On macOS, ImHex is built through regular GCC and LLVM clang.
- Clone the repo using
git clone https://github.com/WerWolv/ImHex --recurse-submodules
- Install all the dependencies using
brew bundle --no-lock --file dist/Brewfile
- Build ImHex itself using the following commands:
cd ImHex
mkdir -p build
cd build
CC=$(brew --prefix llvm)/bin/clang \
CXX=$(brew --prefix llvm)/bin/clang++ \
OBJC=$(brew --prefix llvm)/bin/clang \
OBJCXX=$(brew --prefix llvm)/bin/clang++ \
cmake -G "Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="./install" \
-DIMHEX_GENERATE_PACKAGE=ON \
..
ninja install