Skip to contentSkip to conversation

jni.h included

DISCUSSION Jaap de Jong 3 participants 7 messages Oct 8, 2012 – Oct 10, 2012

lore
Share & tools
lore
#0 lore raw

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? Thanks!
Jaap

#2 lore raw
Quoted 7 lines · Khem Raj
Quoted 4 lines · Jaap de Jong

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...

#3 lore raw

As you are using icedtea6, I guess DEPENDS += "icedtea6" should do it.

- Martin

Quoted 32 lines · Jaap de Jong
Quoted 9 lines · Khem Raj
Quoted 5 lines · Jaap de Jong

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...

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 3 lines · Martin Ertsås

As you are using icedtea6, I guess DEPENDS += "icedtea6" should do it.

- Martin

I thought that might do the trick, but...
ERROR: Nothing PROVIDES 'icedtea6'
So I tried

    DEPENDS += "icedtea6-native"

and that ends with
jni.h: No such file or directory

Any other ideas?

Quoted 39 lines · Jaap de Jong
Quoted 27 lines · Khem Raj
Quoted 9 lines
Quoted 5 lines · Jaap de Jong

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...

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#5 lore raw

Assuming you use meta-java, it seems like what you are looking for is:

DEPENDS += "openjdk-6-jdk"

as that at least contains the include, lib and bin directory.

- Martin

Quoted 59 lines · Jaap de Jong
Quoted 3 lines · Martin Ertsås

As you are using icedtea6, I guess DEPENDS += "icedtea6" should do it.

- Martin

I thought that might do the trick, but...
ERROR: Nothing PROVIDES 'icedtea6'
So I tried

    DEPENDS += "icedtea6-native"

and that ends with
jni.h: No such file or directory

Any other ideas?

Quoted 33 lines · Jaap de Jong
Quoted 27 lines · Khem Raj
Quoted 9 lines
Quoted 5 lines · Jaap de Jong

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...

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 6 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 7 lines · Martin Ertsås

Assuming you use meta-java, it seems like what you are looking for is:

DEPENDS += "openjdk-6-jdk"

as that at least contains the include, lib and bin directory.

- Martin

It just looks so simple... but does not work: jni.h not found For now I will stay with changing CFLAGS; ugly, but works! Thanks all for the support!

Quoted 65 lines · Jaap de Jong
Quoted 52 lines · Martin Ertsås
Quoted 3 lines

As you are using icedtea6, I guess DEPENDS += "icedtea6" should do it.

- Martin

I thought that might do the trick, but...
ERROR: Nothing PROVIDES 'icedtea6'
So I tried

     DEPENDS += "icedtea6-native"

and that ends with
jni.h: No such file or directory

Any other ideas?

Quoted 28 lines · Jaap de Jong
Quoted 27 lines · Khem Raj
Quoted 9 lines
Quoted 5 lines · Jaap de Jong

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...

Quoted 10 lines
Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel