1
0
mirror of synced 2024-12-11 07:26:00 +01:00
ImHex/dist/compiling/macos.md
2024-01-27 15:05:53 +01:00

733 B

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 --no-lock --file dist/Brewfile
  3. 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                                     \
  -DCMAKE_BUILD_TYPE=Release              \
  -DCMAKE_INSTALL_PREFIX=./install        \
  -DIMHEX_GENERATE_PACKAGE=ON             \
  ..
make -j4 install