1
0
mirror of synced 2024-11-28 17:40:51 +01:00
ImHex/dist/compiling/windows.md
Imron jehleh 64a30a45d5
fix: Error popup now showing up immediately after click (#1272)
From #1265, Looks like Error Popup doesn't handle properly in some
circumstances.

---------

Co-authored-by: iTrooz <hey@itrooz.fr>
Co-authored-by: WerWolv <werwolv98@gmail.com>
2023-09-16 13:09:24 +02:00

1014 B

Compiling ImHex on Windows

On Windows, ImHex is built through msys2 / mingw's gcc.

  1. Download and install msys2 from their website.
  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:
cd ImHex
mkdir build
cd build
cmake -G "Ninja"                          \
  -DCMAKE_BUILD_TYPE=Release              \
  -DCMAKE_INSTALL_PREFIX="$PWD/install"   \
  -DIMHEX_USE_DEFAULT_BUILD_SETTINGS=ON   \
  ..
ninja install

ImHex will look for any extra resources either in various folders directly next to the executable or in %localappdata%/imhex

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.