Using CodeBlocks in Ubuntu, trying to build an Android Example: jni.h not found

Hi all,

I’m currently trying to build one of the Android examples that come with oF. The problem is, I totally fail telling CodeBlocks where jni.h is living (after having installed openjdk 7 via apt-get). I’ve looked over at Stackoverflow and found some related threads, especially this one. I tried this solution someone suggested there: Settings–>Compiler and debugger–>Search directories–>add the path to the jdk include directory (containg jni.h). But that didn’t have any effect. There are a few of other suggestions too, e.g. adding -I/usr/lib/jvm/jdk1.7.0_07/include to compiler flags but honestly I don’t know how and where to do that (I’m very new to C++…).

Has anyone of you got a hint on how to accomplish what I’m after?

Thanks a lot, Stefan

Please read the setup guide to know how to use OF on android, it doesn’t even work with codeblocks:

http://openframeworks.cc/setup/android-eclipse/

Ah, ok. Thanks!

Hi Arturo,
is it possible compile using make without Eclipse??
just wondering if I can around eclipse adt