[oe] jni.h included

Jaap de Jong jaap.dejong at nedap.com
Mon Oct 8 14:49:55 UTC 2012


On 10/08/2012 04:05 PM, Khem Raj wrote:
> On Mon, Oct 8, 2012 at 4:18 AM, Jaap de Jong <jaap.dejong at nedap.com> wrote:
>> Hi All!
>> probably a stupid question... my apologies!
>> If a source I'm working on #include jni.h what do I need to add in a recipe
>> to get it translated?
> DEPENDS += "openjdk" or something like that which denotes jdk
>
Tried
     DEPENDS += "openjdk"
unfortunately errors out with
     ERROR: Nothing PROVIDES 'openjdk'

Tried with
     DEPENDS += "openjdk-6"
but that errors out with
     fatal error: jni.h: No such file or directory

So finally I ended up adding this:
     CFLAGS += "-I${STAGING_LIBDIR_NATIVE}/jvm/icedtea6-native/include 
-I${STAGING_LIBDIR_NATIVE}/jvm/icedtea6-native/include/linux"
But that just looks so ugly...






More information about the Openembedded-devel mailing list