2

How can I build the cryptographic library Botan for Android? I am using Mac OS 10.7 and Eclipse IDE.

Blachshma
  • 17,097
  • 4
  • 58
  • 72
Nick
  • 21
  • 1
  • 1
    have you tried anything? – Inbar Rose Nov 22 '12 at 12:16
  • [What have you tried?](http://whathaveyoutried.com) – Jean Hominal Nov 22 '12 at 12:25
  • Many Bothans died to build that library. – MLProgrammer-CiM Nov 22 '12 at 12:53
  • I am quite new in Android developement and in JNI, so I don't know how to start in order to build a c++ library from the src files. I found that answer http://stackoverflow.com/questions/5205886/undefined-reference-when-accessing-my-shared-library-using-jni , but it didn't help me. I'd really appreciate any help. – Nick Nov 24 '12 at 12:57
  • I tried to follow the steps in http://stackoverflow.com/questions/5205886/undefined-reference-when-accessing-my-shared-library-using-jni, but here it's not clear what the "botan/botan_all.h & sources/botan_all.cpp" are. – Nick Nov 27 '12 at 10:09

1 Answers1

2

Please, have a look at http://marc.info/?l=botan-devel&m=132094503031485. There it is described what the botan_all.cpp/ botan_all.h are and how they can be generated. Essentially, they contain all the functions of the Botan library in one file. They can be created by running: ./configure.py --cpu=arm --gen-amalgamation

In the next step you adjust your settings of the Android.mk according to "Undefined reference" when accessing my shared library using JNI

I'm not sure whether the procedure has changed since then. However, I hope this helps you!

Community
  • 1
  • 1
Stefan
  • 65
  • 2
  • 6