2010-03-24 18:20:46 +00: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 00:32:28 +00:00
|
|
|
|
2010-03-24 18:20:46 +00:00
|
|
|
|
|
|
|
Crosscompilation
|
|
|
|
================
|
|
|
|
|
|
|
|
ArchLinux
|
|
|
|
---------
|
2010-07-24 10:44:19 +00:00
|
|
|
./configure --without-gmp --without-openssl --with-compiler=i486-mingw32-gcc --with-ostype=windows --host=i486-unknown-windows
|
2010-03-24 18:20:46 +00:00
|
|
|
make
|
2010-08-08 17:03:51 +00:00
|
|
|
make w32dist
|
2010-10-17 23:51:00 +00: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 18:20:46 +00:00
|
|
|
|
|
|
|
Ubuntu
|
|
|
|
------
|
|
|
|
sudo apt-get install mingw32
|
2010-07-24 10:44:19 +00:00
|
|
|
./configure --without-gmp --without-openssl --with-compiler=i586-mingw32msvc-gcc --with-ostype=windows --host=i586-unknown-windows
|
2010-03-24 18:20:46 +00:00
|
|
|
make
|
2010-08-08 17:03:51 +00:00
|
|
|
make w32dist
|
2010-10-17 22:00:17 +00:00
|
|
|
|
|
|
|
|
2010-10-17 23:51:00 +00:00
|
|
|
|
2010-10-17 22:00:17 +00:00
|
|
|
Python bindings:
|
2010-10-17 23:51:00 +00:00
|
|
|
================
|
2010-10-17 22:00:17 +00:00
|
|
|
wget http://www.python.org/ftp/python/2.7/python-2.7.msi
|
|
|
|
msiexec /i python-2.7.msi
|
2010-10-19 20:17:58 +00:00
|
|
|
|
|
|
|
cd swig
|
|
|
|
make w32
|
|
|
|
make w32dist
|