2022-06-27 21:11:35 +02:00
### Compiling ImHex on Windows
2022-08-09 22:50:02 +02:00
On Windows, ImHex is built through [msys2 / mingw ](https://www.msys2.org/ )'s gcc.
2022-06-27 21:11:35 +02:00
2022-08-09 22:50:02 +02:00
1. Download and install msys2 from their [website ](https://www.msys2.org/ ).
2. Open the `MSYS2 MinGW x64` shell
3. Clone the repo using `git clone https://github.com/WerWolv/ImHex --recurse-submodules`
4. Install all the dependencies using `./ImHex/dist/get_deps_msys2.sh`
5. Build ImHex itself using the following commands:
2023-09-16 13:09:24 +02:00
2022-06-27 21:11:35 +02:00
```sh
2022-08-09 22:50:02 +02:00
cd ImHex
2022-06-27 21:11:35 +02:00
mkdir build
cd build
2023-09-05 13:43:29 +02:00
cmake -G "Ninja" \
2022-06-27 21:11:35 +02:00
-DCMAKE_BUILD_TYPE=Release \
2024-02-29 20:16:03 +01:00
-DCMAKE_INSTALL_PREFIX="./install" \
2023-09-05 13:43:29 +02:00
-DIMHEX_USE_DEFAULT_BUILD_SETTINGS=ON \
2022-06-27 21:11:35 +02:00
..
2023-09-05 13:43:29 +02:00
ninja install
2022-06-27 21:11:35 +02:00
```
2022-07-25 12:08:41 +02:00
ImHex will look for any extra resources either in various folders directly next to the executable or in `%localappdata%/imhex`
2023-09-16 13:09:24 +02:00
For low RAM-usage system, you can use `mingw32-make -j N install` instead, to reduce RAM usage at compile time. Where `N` is amount of jobs you are willling to run at once. Roughly ~1 GB of RAM usage per job.