konstantia86 / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

Compiling Elsim requires adding paths of muParser and python to CFLAGS #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
- Take code straight from the repository
- sudo apt-get install libmuparser-dev
- ./elsim
- make

Fails to compile. The makefile can't find muParser.h and Python.h which are 
located (on my system) in:
/usr/include/muParser
/usr/include/python2.6

Adding those paths to the CFLAGS:
in elsim/elsign/formula/Makefile, add:
CFLAGS += -I/usr/include/muParser

in elsim/elsign/libelsign/Makefile, add:
CFLAGS += -I/usr/include/muParser -I/usr/include/python2.6

and it compiles.

on Linux/debian.

Original issue reported on code.google.com by aaforti...@gmail.com on 25 May 2012 at 1:33

GoogleCodeExporter commented 8 years ago
Same remark for ./androguard/core/bytecodes/libdvm/Makefile, make sure CFLAGS 
includes your Python directory:

For example, if you have Python 2.6, then change:
-CFLAGS  +=     -g -fPIC -I/usr/include/python2.7/ 
+CFLAGS  +=     -g -fPIC -I/usr/include/python2.6/ 

Original comment by aaforti...@gmail.com on 25 May 2012 at 2:17