Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.04 KB

windows.md

File metadata and controls

34 lines (20 loc) · 1.04 KB

How to Build for Windows

You can follow the r2book for a more complete guide.

Native

You will need:

  • Python 3
  • Meson (pip3 install meson)
  • Visual Studio 2015 (or later)

First, call vcvarsall.bat with your architecture (x86, x64, arm) to setup the compilation environment.

cd radare2	
python3 sys\meson.py --release --backend vs2019 --shared --install --prefix="%cd%\radare2_dist" --webui

You can change --backend to your VS version (vs2015, vs2017), ninja buildsystem is also supported.

For XP support, append --xp to the command (not compatible with VS2019).

You can then add radare2_dist to your PATH to make radare2 accessible from everywhere.

Crosscompilation

As building with mingw is no longer officially supported in radare2, crosscompilation isn't (easily) possible.

You can check the official Meson documentation.

Good luck.