2007-10-20 09:03:51 +02:00
|
|
|
----------------------------------------------------------
|
|
|
|
IDAPython - Python plugin for Interactive Disassembler Pro
|
|
|
|
----------------------------------------------------------
|
|
|
|
Building From Source
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
REQUIREMENTS
|
|
|
|
|
|
|
|
[Tested versions are in brackets]
|
|
|
|
|
|
|
|
- IDA and IDA SDK [5.1]
|
|
|
|
http://www.datarescue.com/idabase/
|
|
|
|
|
2007-12-06 14:56:20 +01:00
|
|
|
- Python [2.4.4, 2.5.1]
|
2007-10-20 09:03:51 +02:00
|
|
|
http://www.python.org/
|
|
|
|
|
|
|
|
- Simplified Wrapper Interface Generator (SWIG) [1.3.31]
|
|
|
|
http://www.swig.org/
|
|
|
|
|
|
|
|
- Unix utilities (GNU patch on Windows):
|
|
|
|
http://www.research.att.com/sw/tools/uwin/ or
|
2007-12-06 14:56:20 +01:00
|
|
|
http://unxutils.sourceforge.net/ or
|
|
|
|
http://www.cygwin.com/
|
2007-10-20 09:03:51 +02:00
|
|
|
|
2007-12-06 14:56:20 +01:00
|
|
|
- GCC on Linux and Mac OS X [4.1.3]
|
2007-10-20 09:03:51 +02:00
|
|
|
Comes with your distribution
|
|
|
|
|
|
|
|
- Microsoft Visual C on Windows [Microsoft Visual C++ 2005 Express Edition]
|
|
|
|
http://msdn.microsoft.com/vstudio/express/visualc/
|
|
|
|
|
|
|
|
|
|
|
|
BUILDING
|
|
|
|
|
2007-12-06 14:56:20 +01:00
|
|
|
Make sure all the needed tools (compiler, swig) are on the PATH.
|
2007-10-20 09:03:51 +02:00
|
|
|
|
|
|
|
1, Unpack the IDAPython source and IDA Pro SDK into the following
|
|
|
|
directory structure:
|
|
|
|
|
2007-12-06 14:56:20 +01:00
|
|
|
swigsdk-versions/5.1/ - version 5.1 of the IDA Pro SDK
|
2007-10-20 09:03:51 +02:00
|
|
|
idapython/ - IDAPython source code
|
|
|
|
|
|
|
|
2, Patch the SDK using GNU Patch with one of patches from patches/ directory.
|
|
|
|
You will have to use the -P option depending on which directory you
|
|
|
|
patch from.
|
|
|
|
|
2007-12-06 14:56:20 +01:00
|
|
|
3, On Mac OS X copy libida.dylib from the IDA install directory to
|
|
|
|
swigsdk-versions/5.1/libgcc32.mac/
|
|
|
|
|
|
|
|
4, Build the plugin
|
2007-10-20 09:03:51 +02:00
|
|
|
|
|
|
|
python build.py
|
|
|
|
|
|
|
|
It is possible to build the plugin for different Python versions by
|
|
|
|
running build.py with the corresponding Python binary.
|
|
|
|
|
2007-12-06 14:56:20 +01:00
|
|
|
5, Install the components as described in README.txt
|
2007-10-20 09:03:51 +02:00
|
|
|
|
2007-12-06 14:56:20 +01:00
|
|
|
See build.py for build details and possible tweaks.
|