mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 15:57:03 -05:00
24 lines
845 B
Markdown
24 lines
845 B
Markdown
### Compiling ImHex on macOS
|
|
|
|
On macOS, ImHex is built through regular GCC and LLVM clang.
|
|
|
|
1. Clone the repo using `git clone https://github.com/WerWolv/ImHex --recurse-submodules`
|
|
2. Install all the dependencies using `brew bundle --file dist/macOS/Brewfile`
|
|
3. Build ImHex itself using the following commands:
|
|
```sh
|
|
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
|
|
```
|
|
|
|
If your MacOS installation doesn't have graphic acceleration, you can check the [MacOS NoGPU guide](./macos_nogpu.md) |