went all good
I was playing around with the idapython again
i managed to build with ida revision 365 with sdk 6.2
then i replaced the ida.lib(ida.WLL) and pro lib from ida sdk 6.1
no wonder it didnt build, but i got the reason why it cant build.
Code:
link /nologo /dll /export:PLUGIN /out:python.plw idaapi.obj python.obj /LIBPATH:
C:\Python27\libs /LIBPATH:C:\idasdk61\lib\x86_win_vc_32 python27.lib ida.lib
Creating library python.lib and object python.exp
idaapi.obj : error LNK2019: unresolved external symbol _qvector_reserve@16 refer
enced in function __wrap_qvector_reserve
python.obj : error LNK2001: unresolved external symbol _qvector_reserve@16
idaapi.obj : error LNK2019: unresolved external symbol _op_adds_xrefs@8 referenc
ed in function __wrap_op_adds_xrefs
idaapi.obj : error LNK2019: unresolved external symbol _visit_patched_bytes@16 r
eferenced in function "int __cdecl py_visit_patched_bytes(unsigned int,unsigned
int,struct _object *)" (?py_visit_patched_bytes@@YAHIIPAU_object@@@Z)
idaapi.obj : error LNK2019: unresolved external symbol _get_ascii_contents2@28 r
eferenced in function "struct _object * __cdecl py_get_ascii_contents2(unsigned
int,unsigned int,int,int)" (?py_get_ascii_contents2@@YAPAU_object@@IIHH@Z)
idaapi.obj : error LNK2019: unresolved external symbol _is_debugger_memory@4 ref
erenced in function __wrap_is_debugger_memory
idaapi.obj : error LNK2019: unresolved external symbol _qfsize@4 referenced in f
unction __wrap_qfsize
idaapi.obj : error LNK2019: unresolved external symbol _find_extlang_by_name@4 r
eferenced in function __wrap_find_extlang_by_name
idaapi.obj : error LNK2019: unresolved external symbol _run_statements@16 refere
nced in function __wrap_run_statements
idaapi.obj : error LNK2019: unresolved external symbol _visit_stroff_fields@20 r
eferenced in function __wrap_visit_stroff_fields
python.plw : fatal error LNK1120: 9 unresolved externals
so i dig into the ida.lib
the sdk 6.1 dosent have the symbols lets say the
symbol _qvector_reserve@16 refer
enced in function __wrap_qvector_reserve
but they are in ida.lib 6.2 wonder if there is any way to patch a lib somehow and add these functions.(maybe hex edit)
you can unzip ida.lib and pro.lib offcouse its gonna take forever to patch if its possible , but could be fun too
Also there must be some kind off version check in the ida.lib