All of lore.kernel.org
 help / color / mirror / Atom feed
* Building java
@ 2016-01-08  7:39 Mike Looijmans
  2016-01-08  9:48 ` Jens Rehsack
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Looijmans @ 2016-01-08  7:39 UTC (permalink / raw)
  To: openembedded-devel

Someone in our project decided he wanted Java on the board, so I just added 
"meta-java" to the layers and attempted to follow the README.

So without a clue as to what I'm really doing (I haven't touched Java in 15 
years) I added these to my local.conf:

# Headless java
PREFERRED_PROVIDER_classpath = "classpath-minimal"
# Possible provider: cacao-initial-native and jamvm-initial-native
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
# Possible provider: cacao-native and jamvm-native
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"

And of course added meta-java to bblayers.conf.

I added "openjdk-8" to the image's things to install, and let things build.

While building "openjdk-8-native", things went south, and I get the following 
error message:

ERROR: no configure script found at 
/home/mike/projects/.../build/tmp-glibc/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/configure


What did I do wrong?



(Note: the board does not have a display, so I don't need/want x11. I tried 
building openjdk-7 instead, but that fails to parse because it requires x11 in 
the distro)


Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Building java
  2016-01-08  7:39 Building java Mike Looijmans
@ 2016-01-08  9:48 ` Jens Rehsack
  2016-01-08 10:08   ` Mike Looijmans
  2016-01-08 10:21   ` Mike Looijmans
  0 siblings, 2 replies; 6+ messages in thread
From: Jens Rehsack @ 2016-01-08  9:48 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1561 bytes --]


> Am 08.01.2016 um 08:39 schrieb Mike Looijmans <mike.looijmans@topic.nl>:
> 
> Someone in our project decided he wanted Java on the board, so I just added "meta-java" to the layers and attempted to follow the README.
> 
> So without a clue as to what I'm really doing (I haven't touched Java in 15 years) I added these to my local.conf:
> 
> # Headless java
> PREFERRED_PROVIDER_classpath = "classpath-minimal"
> # Possible provider: cacao-initial-native and jamvm-initial-native
> PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
> # Possible provider: cacao-native and jamvm-native
> PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
> 
> And of course added meta-java to bblayers.conf.
> 
> I added "openjdk-8" to the image's things to install, and let things build.
> 
> While building "openjdk-8-native", things went south, and I get the following error message:
> 
> ERROR: no configure script found at /home/mike/projects/.../build/tmp-glibc/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/configure
> 
> 
> What did I do wrong?

meta-java is master, so you need poky on master, too - or cherry-pick the autotools.bbclass patch

> (Note: the board does not have a display, so I don't need/want x11. I tried building openjdk-7 instead, but that fails to parse because it requires x11 in the distro)

You could port the remove-x11-patches to openjdk-7, since we currently need Java8, I have no "business case" to fix openjdk-7 :/

Cheers
--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 859 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Building java
  2016-01-08  9:48 ` Jens Rehsack
@ 2016-01-08 10:08   ` Mike Looijmans
  2016-01-08 10:21   ` Mike Looijmans
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Looijmans @ 2016-01-08 10:08 UTC (permalink / raw)
  To: openembedded-devel

On 08-01-16 10:48, Jens Rehsack wrote:
>
>> Am 08.01.2016 um 08:39 schrieb Mike Looijmans <mike.looijmans@topic.nl>:
>>
>> Someone in our project decided he wanted Java on the board, so I just added "meta-java" to the layers and attempted to follow the README.
>>
>> So without a clue as to what I'm really doing (I haven't touched Java in 15 years) I added these to my local.conf:
>>
>> # Headless java
>> PREFERRED_PROVIDER_classpath = "classpath-minimal"
>> # Possible provider: cacao-initial-native and jamvm-initial-native
>> PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
>> # Possible provider: cacao-native and jamvm-native
>> PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
>>
>> And of course added meta-java to bblayers.conf.
>>
>> I added "openjdk-8" to the image's things to install, and let things build.
>>
>> While building "openjdk-8-native", things went south, and I get the following error message:
>>
>> ERROR: no configure script found at /home/mike/projects/.../build/tmp-glibc/work/x86_64-linux/openjdk-8-native/72b05-r0/jdk8u-e8bed1496ff2/configure
>>
>>
>> What did I do wrong?
>
> meta-java is master, so you need poky on master, too - or cherry-pick the autotools.bbclass patch

I was close to master already, but apparently not close enough.

Upgrading everything to current master results in:

ERROR: ParseError at 
/home/mike/projects/.../meta-oe/meta-oe/recipes-extended/sip/sip_4.16.4.bb:19: 
Could not inherit file classes/qmake2.bbclass


>
>> (Note: the board does not have a display, so I don't need/want x11. I tried building openjdk-7 instead, but that fails to parse because it requires x11 in the distro)
>
> You could port the remove-x11-patches to openjdk-7, since we currently need Java8, I have no "business case" to fix openjdk-7 :/

I don't care either, I'm happy when "helloworld.java" runs on target.



Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Building java
  2016-01-08  9:48 ` Jens Rehsack
  2016-01-08 10:08   ` Mike Looijmans
@ 2016-01-08 10:21   ` Mike Looijmans
  2016-01-08 11:06     ` Jens Rehsack
  1 sibling, 1 reply; 6+ messages in thread
From: Mike Looijmans @ 2016-01-08 10:21 UTC (permalink / raw)
  To: openembedded-devel

On 08-01-16 10:48, Jens Rehsack wrote:
...
>> What did I do wrong?
>
> meta-java is master, so you need poky on master, too - or cherry-pick the autotools.bbclass patch
>

Current master is borked, it won't parse because about a dozen recipes need 
QT4 things that have been removed.

...


Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Building java
  2016-01-08 10:21   ` Mike Looijmans
@ 2016-01-08 11:06     ` Jens Rehsack
  2016-01-08 12:51       ` Mike Looijmans
  0 siblings, 1 reply; 6+ messages in thread
From: Jens Rehsack @ 2016-01-08 11:06 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 478 bytes --]


> Am 08.01.2016 um 11:21 schrieb Mike Looijmans <mike.looijmans@topic.nl>:
> 
> On 08-01-16 10:48, Jens Rehsack wrote:
> ...
>>> What did I do wrong?
>> 
>> meta-java is master, so you need poky on master, too - or cherry-pick the autotools.bbclass patch
>> 
> 
> Current master is borked, it won't parse because about a dozen recipes need QT4 things that have been removed.

cherry-pick fe506edd from poky/master

Cheers
--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 859 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Building java
  2016-01-08 11:06     ` Jens Rehsack
@ 2016-01-08 12:51       ` Mike Looijmans
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Looijmans @ 2016-01-08 12:51 UTC (permalink / raw)
  To: openembedded-devel

On 08-01-16 12:06, Jens Rehsack wrote:
>
>> Am 08.01.2016 um 11:21 schrieb Mike Looijmans <mike.looijmans@topic.nl>:
>>
>> On 08-01-16 10:48, Jens Rehsack wrote:
>> ...
>>>> What did I do wrong?
>>>
>>> meta-java is master, so you need poky on master, too - or cherry-pick the autotools.bbclass patch
>>>
>>
>> Current master is borked, it won't parse because about a dozen recipes need QT4 things that have been removed.
>
> cherry-pick fe506edd from poky/master

Ran into too much trouble with oe-core, I'll wait until the dust has settled.

For now, I just added x11 to the DISTRO_FEATURES and built version 7 which 
runs okay on the board.

I'm puzzled by this message though:

NOTE: multiple providers are available for runtime java2-runtime (cacao, 
openjre-8, jamvm, openjdk-7-jre, openjdk-8)
NOTE: consider defining a PREFERRED_PROVIDER entry to match java2-runtime

To prevent picking another package, I tried adding:

PREFERRED_PROVIDER_java2-runtime = "openjdk-7-jre"

But that did not make the message go away.


Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-08 12:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-08  7:39 Building java Mike Looijmans
2016-01-08  9:48 ` Jens Rehsack
2016-01-08 10:08   ` Mike Looijmans
2016-01-08 10:21   ` Mike Looijmans
2016-01-08 11:06     ` Jens Rehsack
2016-01-08 12:51       ` Mike Looijmans

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.