1
0
mirror of synced 2024-12-18 10:35:53 +01:00
ImHex/dist/compiling/macos.md

22 lines
730 B
Markdown
Raw Normal View History

### Compiling ImHex on macOS
2023-11-02 20:41:47 +01:00
On macOS, ImHex is built through regular GCC and LLVM clang.
2022-08-09 22:50:02 +02: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:
```sh
2022-08-09 22:50:02 +02:00
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" \
2022-10-07 13:20:29 +02:00
-DCMAKE_BUILD_TYPE=Release \
2024-02-29 20:16:03 +01:00
-DCMAKE_INSTALL_PREFIX="./install" \
-DIMHEX_GENERATE_PACKAGE=ON \
..
ninja install
```