2010-03-24 19:20:46 +01:00
|
|
|
HOW TO BUILD FOR WINDOWS
|
|
|
|
========================
|
|
|
|
Actually, if you want to build r2 for windows, you can use native compiler with mingw32 or
|
|
|
|
cygwin, but there's also the possibility to crosscompile from a Linux box:
|
2010-01-15 01:32:28 +01:00
|
|
|
|
2010-03-24 19:20:46 +01:00
|
|
|
|
|
|
|
Crosscompilation
|
|
|
|
================
|
|
|
|
|
|
|
|
ArchLinux
|
|
|
|
---------
|
2013-01-23 14:50:50 +01:00
|
|
|
./configure --with-compiler=i486-mingw32-gcc --with-ostype=windows --host=i486-unknown-windows --without-ssl
|
2010-03-24 19:20:46 +01:00
|
|
|
make
|
2010-08-08 19:03:51 +02:00
|
|
|
make w32dist
|
2010-10-18 01:51:00 +02:00
|
|
|
|
|
|
|
cd swig
|
|
|
|
export CC=i486-mingw32-gcc
|
|
|
|
export CXX=i486-mingw32-g++
|
|
|
|
unset CFLAGS
|
|
|
|
unset LDFLAGS
|
|
|
|
export LDFLAGS="-L${HOME}/.wine/drive_c/Python27/libs ${LDFLAGS}"
|
|
|
|
export CFLAGS="-Wl,--enable-auto-import -L../../radare2-w32-0.5 ${CFLAGS}"
|
|
|
|
./configure --with-ostype=windows --host=i486-unknown-windows --with-cc=i486-mingw32-gcc --with-cxx=i486-mingw32-g++
|
|
|
|
|
2010-03-24 19:20:46 +01:00
|
|
|
|
|
|
|
Ubuntu
|
|
|
|
------
|
|
|
|
sudo apt-get install mingw32
|
2013-01-23 14:50:50 +01:00
|
|
|
./configure --with-compiler=i586-mingw32msvc-gcc --with-ostype=windows --host=i586-unknown-windows
|
2010-03-24 19:20:46 +01:00
|
|
|
make
|
2010-08-08 19:03:51 +02:00
|
|
|
make w32dist
|
2010-10-18 00:00:17 +02:00
|
|
|
|
|
|
|
|
2011-07-12 19:42:20 +02:00
|
|
|
Windows x86-64
|
|
|
|
==============
|
2011-07-13 18:55:16 +02:00
|
|
|
Setup toolchain
|
|
|
|
----------------
|
|
|
|
open http://mingw-w64.sourceforge.net/
|
|
|
|
wget http://switch.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-linux_20110627.tar.bz2
|
|
|
|
mkdir -p mingw64
|
|
|
|
tar xjvf mingw-w64*.bz2 -C mingw64
|
|
|
|
export PATH=$PWD/mingw64/bin:$PATH
|
|
|
|
|
|
|
|
Build radare2
|
|
|
|
--------------
|
2013-01-23 14:50:50 +01:00
|
|
|
./configure --with-compiler=x86_64-w64-mingw32-gcc --with-ostype=windows --host=x86_64-unknown-windows --without-magic --without-ssl
|
2011-07-12 19:42:20 +02:00
|
|
|
|
2010-10-18 01:51:00 +02:00
|
|
|
|
2010-10-18 00:00:17 +02:00
|
|
|
Python bindings:
|
2010-10-18 01:51:00 +02:00
|
|
|
================
|
2010-10-18 00:00:17 +02:00
|
|
|
wget http://www.python.org/ftp/python/2.7/python-2.7.msi
|
|
|
|
msiexec /i python-2.7.msi
|
2010-10-19 22:17:58 +02:00
|
|
|
|
2011-10-05 15:37:15 +02:00
|
|
|
cd r2-bindings
|
2010-10-19 22:17:58 +02:00
|
|
|
make w32
|
|
|
|
make w32dist
|