2022-06-27 19:11:35 +00:00
|
|
|
### Compiling ImHex on macOS
|
|
|
|
|
2023-11-02 19:41:47 +00:00
|
|
|
On macOS, ImHex is built through regular GCC and LLVM clang.
|
2022-06-27 19:11:35 +00:00
|
|
|
|
2022-08-09 20:50:02 +00:00
|
|
|
1. Clone the repo using `git clone https://github.com/WerWolv/ImHex --recurse-submodules`
|
|
|
|
2. Install all the dependencies using `brew bundle --no-lock --file dist/Brewfile`
|
|
|
|
3. Build ImHex itself using the following commands:
|
2022-06-27 19:11:35 +00:00
|
|
|
```sh
|
2022-08-09 20:50:02 +00:00
|
|
|
cd ImHex
|
2022-06-27 19:11:35 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2024-01-27 14:05:53 +00:00
|
|
|
CC=$(brew --prefix llvm)/bin/clang \
|
|
|
|
CXX=$(brew --prefix llvm)/bin/clang++ \
|
2022-06-27 19:11:35 +00:00
|
|
|
OBJC=$(brew --prefix llvm)/bin/clang \
|
|
|
|
OBJCXX=$(brew --prefix llvm)/bin/clang++ \
|
2024-02-22 19:48:15 +00:00
|
|
|
cmake -G "Ninja" \
|
2022-10-07 11:20:29 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2024-02-29 19:16:03 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX="./install" \
|
2023-11-04 00:11:50 +00:00
|
|
|
-DIMHEX_GENERATE_PACKAGE=ON \
|
2022-06-27 19:11:35 +00:00
|
|
|
..
|
2024-02-22 19:48:15 +00:00
|
|
|
ninja install
|
2024-01-27 14:05:53 +00:00
|
|
|
```
|