[yocto] Error including meta-oracle-java in custom image

Gaurang Shastri gmshastri at gmail.com
Tue Jun 4 01:10:05 PDT 2013


Dear Marcelo Valle,

I hope you have visited this page before adding meta-oracle-java layer:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-oracle-java/tree/README

The above link provides help how to add this into final image. May above
will help you.

//Gaurang Shastri




On Tue, Jun 4, 2013 at 1:11 PM, Marcelo Valle <mvalleavila at gmail.com> wrote:

> Hello,
>
> Sorry for last message, i send it incomplete by mistake!
>
> I'm triying to include oracle java in my custom image and i'm having some
> troubles to accomplish it.
>
> After include oracle-jse-jre-x86-64_1.7.0.bb recipe in IMAGE_INSTALL var
> and build the image the following errors appears:
>
> 1.
> Fetcher failure for URL: '
> http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jre-7u2-linux-x64.tar.gz'.
> Checksum mismatch!
>
> If this change is expected (e.g. you have upgraded to a new version
> without updating the checksums) then you can use these lines within the
> recipe:
> SRC_URI[md5sum] = "
> 81ee08846975d4b8d46acf3b6eddf103"
> SRC_URI[sha256sum] =
> "80212f7748c2671b89b6085000717c747851db004409dce3bb97f3a2aeb91cdd"
>
> To fix it i've update oracle-jse-jre-x86-64_1.7.0.bb with these checksum.
> I build the image again and new error appears
>
> --------------------------------------------
>
> 2.
> Function failed: Unpack failure for URL: '
> http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jre-7u2-linux-x64.tar.gz
> '
>
> Unpacking
> /home/mvalle/Yocto2/poky-dylan-9.0.0/build/downloads/jre-7u2-linux-x64.tar.gz
> gzip: stdin: not in gzip format
>
> So i decide to download the file directly from oracle page and copy in
> build/downloads directory.
> After that i have new error:
>
> ---------------------------------------------
>
> 3.
> ERROR: objcopy failed with exit code 1 (cmd was
> 'x86_64-poky-linux-objcopy'
> --add-gnu-debuglink='/home/mvalle/Yocto2/poky-dylan-9.0.0/build/tmp/work/x86_64-poky-linux/oracle-jse-jre-x86-64/1.7.0-r0/package/usr/jre1.7.0_02/lib/amd64/.debug/libjsig.so'
> '/home/mvalle/Yocto2/poky-dylan-9.0.0/build/tmp/work/x86_64-poky-linux/oracle-jse-jre-x86-64/1.7.0-r0/package/usr/jre1.7.0_02/lib/amd64/libjsig.so')
> ERROR: Function failed: split_and_strip_files
>
> To fix it I include INHIBIT_PACKAGE_STRIP = "1"  in
> oracle-jse-jre-x86-64_1.7.0.bb file
>
> ----------------------------------------------
>
> After that the execution "bitbake oracle-jse-jre-x86-64" -> Compile
> without errors!
>
> -----------------------------------------------
> But if I try to build my custom image and the build fails with these error:
>
> Function failed: do_rootfs
>
> | Computing transaction...error: Can't install
> oracle-jse-jre-x86-64-1.7.0-r0 at x86_64: no package provides
> libXi.so.6()(64bit)
>
>
> Am I doing the correct steps to fix the errors? Can you please give me
> some help to include jre in my custom image?
>
> Thanks a lot for your help!
> Marcelo.
>
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130604/f2b9739e/attachment.html>


More information about the yocto mailing list