2007-10-20 09:03:51 +02:00
|
|
|
----------------------------------------------------------
|
|
|
|
IDAPython - Python plugin for Interactive Disassembler Pro
|
|
|
|
----------------------------------------------------------
|
|
|
|
Building From Source
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
REQUIREMENTS
|
2008-09-01 20:55:03 +02:00
|
|
|
------------
|
2007-10-20 09:03:51 +02:00
|
|
|
|
|
|
|
[Tested versions are in brackets]
|
|
|
|
|
2010-01-05 19:24:04 +01:00
|
|
|
- IDA and IDA SDK [5.6]
|
|
|
|
http://www.hex-rays.com/idapro/
|
2007-10-20 09:03:51 +02:00
|
|
|
|
2009-05-23 18:56:26 +02:00
|
|
|
- Python [2.5.1, 2.6.1]
|
2007-10-20 09:03:51 +02:00
|
|
|
http://www.python.org/
|
|
|
|
|
2008-09-01 20:55:03 +02:00
|
|
|
- Simplified Wrapper Interface Generator (SWIG) [1.3.36]
|
2007-10-20 09:03:51 +02:00
|
|
|
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
|
|
|
|
2008-09-01 20:55:03 +02:00
|
|
|
- GCC on Linux and Mac OS X [4.0.1, 4.1.3]
|
2007-10-20 09:03:51 +02:00
|
|
|
Comes with your distribution
|
|
|
|
|
2008-09-01 20:55:03 +02:00
|
|
|
- Microsoft Visual C on Windows [Microsoft Visual C++ 2008 Express Edition]
|
2007-10-20 09:03:51 +02:00
|
|
|
http://msdn.microsoft.com/vstudio/express/visualc/
|
|
|
|
|
|
|
|
|
|
|
|
BUILDING
|
2008-09-01 20:55:03 +02:00
|
|
|
--------
|
2007-10-20 09:03:51 +02:00
|
|
|
|
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:
|
|
|
|
|
2010-01-05 19:24:04 +01:00
|
|
|
swigsdk-versions/5.6/ - version 5.4 of the IDA Pro SDK
|
2009-05-23 18:56:26 +02:00
|
|
|
idapython/ - IDAPython source code
|
2007-10-20 09:03:51 +02:00
|
|
|
|
2010-01-05 19:24:04 +01:00
|
|
|
2, On Mac OS X copy libida.dylib from the IDA install directory to
|
|
|
|
swigsdk-versions/5.6/lib/gcc32.mac/
|
2009-05-23 18:56:26 +02:00
|
|
|
and libida64.dylib to
|
2010-01-05 19:24:04 +01:00
|
|
|
swigsdk-versions/5.6/lib/gcc64.mac/
|
2007-12-06 14:56:20 +01:00
|
|
|
|
2010-01-05 19:24:04 +01:00
|
|
|
3, 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
|
2010-01-05 19:24:04 +01:00
|
|
|
running build.py with the corresponding Python binary.
|
|
|
|
|
|
|
|
Some build options:
|
|
|
|
--ea64: builds the 64-bit version
|
|
|
|
--no-early-load: builds the IDAPython plugin w/o PLUGIN_FIX plugin flag
|
|
|
|
(This flag disables the ability to write file loaders in IDAPython)
|
|
|
|
|
|
|
|
4, 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.
|