mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
a54f9363e4
* Use meson install instead of manual installation in meson.py * Update AppVeyor and docs to use the new meson.py flag format * Meson.py should use --prefix for install paths and --install is a boolean for Windows and Unix now. * Removed windows specific restrictions from meson.py * Ensure that the prefix path is an absolute path * Fix install options syntax * Added an optional rootdir path for the meson setup command Co-authored-by: yossizap <yossizap@users.noreply.github.com>
1.0 KiB
1.0 KiB
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.