All of lore.kernel.org
 help / color / mirror / Atom feed
* problem .so files in my image.
@ 2011-03-12  8:29 kubera samrat
  2011-03-12  8:38 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: kubera samrat @ 2011-03-12  8:29 UTC (permalink / raw)
  To: poky

Hi,

        I have added jpeg_6b to my recipe. When I build it It got
succesful stating " Tasks Summary: Attempted 3879 tasks of which 3863
didn't need to be rerun and 0 failed."
But When I mount my image I am unable to see ".so" files. But I can
see those files created in ".libs" folder. even I tried to copy those
files from .libs to image folder but I can't see.
Can you please suggest me the solution. my jpeg_6b.bb file looks like
as shown below.

************************************************************************************************************************************************************
SUMMARY = "library for jpeg"
DESCRIPTION = "Libraries that allow compression of image files based
on the Joint Photographic Experts"
HOMEPAGE = "http://www.ijg.org/"
SECTION = "libs"
LICENSE = "jpeg"
DEPENDS = "libtool-cross"
DEPENDS_virtclass-native = "libtool-native"

PR = "r0"
S = "${WORKDIR}/jpeg-${PV}"

SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz"
inherit pkgconfig autotools
EXTRA_OECONF="--enable-static --enable-shared"
EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool"'

#CFLAGS_append = " -D_REENTRANT"
#INSTALL_PREFIX="${D}"
do_configure_prepend(){
#               rm -f ${D}/ltconfig
                rm -f ${D}/ltmain.sh
#               rm -f ${D}${includedir}/jconfig.h
}
do_configure(){
        oe_runconf PREFIX=${D}
}
do_compile(){
        oe_runmake "LIBTOOL=$LIBTOOL"
}
do_install(){
        install -d ${D}${bindir} ${D}${includedir}\
                ${D}${mandir}/man1 ${D}${libdir}

#       install -m 0755 .libs/libjpeg.so ${STAGING_LIBDIR}
#       install -m 0755 .libs/libjpeg.so.62 ${STAGING_LIBDIR}
#       install -m 0755 .libs/libjpeg.so.62.0.0 ${STAGING_LIBDIR}

        oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}'
'libdir=${D}${libdir}'install
        install -m 0755 .libs/libjpeg.so ${D}${libdir}
        install -m 0755 .libs/libjpeg.so.62 ${D}${libdir}
        install -m 0755 .libs/libjpeg.so.62.0.0 ${D}${libdir}
}

PACKAGES =+             "jpeg-tools "
DESCRIPTION_jpeg-tools = "The jpeg-tools package includes the client
programs for access libjpeg functionality.  These tools allow for the
compression, decompression, transformation and display of JPEG files."
FILES_jpeg-tools =      "${bindir}/*"

BBCLASSEXTEND = "native"

***************************************************************************************************************************************
Thanks and regards,
V kubera Samrat


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

* Re: problem .so files in my image.
  2011-03-12  8:29 problem .so files in my image kubera samrat
@ 2011-03-12  8:38 ` Khem Raj
  2011-03-12  8:56   ` Darren Hart
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2011-03-12  8:38 UTC (permalink / raw)
  To: poky

On 3/12/2011 12:29 AM, kubera samrat wrote:
> Hi,
>
>          I have added jpeg_6b to my recipe. When I build it It got
> succesful stating " Tasks Summary: Attempted 3879 tasks of which 3863
> didn't need to be rerun and 0 failed."
> But When I mount my image I am unable to see ".so" files. But I can
> see those files created in ".libs" folder. even I tried to copy those
> files from .libs to image folder but I can't see.

you should add the packages to your image one way is
in local.conf add
IMAGE_INSTALL += "jpeg-tools ..."

basically find the package names from deploy directory and use them in 
above construct.

> Can you please suggest me the solution. my jpeg_6b.bb file looks like
> as shown below.
>
> ************************************************************************************************************************************************************
> SUMMARY = "library for jpeg"
> DESCRIPTION = "Libraries that allow compression of image files based
> on the Joint Photographic Experts"
> HOMEPAGE = "http://www.ijg.org/"
> SECTION = "libs"
> LICENSE = "jpeg"
> DEPENDS = "libtool-cross"
> DEPENDS_virtclass-native = "libtool-native"
>
> PR = "r0"
> S = "${WORKDIR}/jpeg-${PV}"
>
> SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz"
> inherit pkgconfig autotools
> EXTRA_OECONF="--enable-static --enable-shared"
> EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool"'
>
> #CFLAGS_append = " -D_REENTRANT"
> #INSTALL_PREFIX="${D}"
> do_configure_prepend(){
> #               rm -f ${D}/ltconfig
>                  rm -f ${D}/ltmain.sh
> #               rm -f ${D}${includedir}/jconfig.h
> }
> do_configure(){
>          oe_runconf PREFIX=${D}
> }
> do_compile(){
>          oe_runmake "LIBTOOL=$LIBTOOL"
> }
> do_install(){
>          install -d ${D}${bindir} ${D}${includedir}\
>                  ${D}${mandir}/man1 ${D}${libdir}
>
> #       install -m 0755 .libs/libjpeg.so ${STAGING_LIBDIR}
> #       install -m 0755 .libs/libjpeg.so.62 ${STAGING_LIBDIR}
> #       install -m 0755 .libs/libjpeg.so.62.0.0 ${STAGING_LIBDIR}
>
>          oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}'
> 'libdir=${D}${libdir}'install
>          install -m 0755 .libs/libjpeg.so ${D}${libdir}
>          install -m 0755 .libs/libjpeg.so.62 ${D}${libdir}
>          install -m 0755 .libs/libjpeg.so.62.0.0 ${D}${libdir}
> }
>
> PACKAGES =+             "jpeg-tools "
> DESCRIPTION_jpeg-tools = "The jpeg-tools package includes the client
> programs for access libjpeg functionality.  These tools allow for the
> compression, decompression, transformation and display of JPEG files."
> FILES_jpeg-tools =      "${bindir}/*"
>
> BBCLASSEXTEND = "native"
>
> ***************************************************************************************************************************************
> Thanks and regards,
> V kubera Samrat
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



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

* Re: problem .so files in my image.
  2011-03-12  8:38 ` Khem Raj
@ 2011-03-12  8:56   ` Darren Hart
  0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2011-03-12  8:56 UTC (permalink / raw)
  To: Khem Raj; +Cc: poky

On 03/12/2011 12:38 AM, Khem Raj wrote:
> On 3/12/2011 12:29 AM, kubera samrat wrote:
>> Hi,
>>
>> I have added jpeg_6b to my recipe. When I build it It got
>> succesful stating " Tasks Summary: Attempted 3879 tasks of which 3863
>> didn't need to be rerun and 0 failed."
>> But When I mount my image I am unable to see ".so" files. But I can
>> see those files created in ".libs" folder. even I tried to copy those
>> files from .libs to image folder but I can't see.
>
> you should add the packages to your image one way is
> in local.conf add
> IMAGE_INSTALL += "jpeg-tools ..."

Preferably with:

POKY_EXTRA_INSTALL = "jpeg-tools"

also in local.conf. The handbook covers this briefly:

http://www.yoctoproject.org/docs/poky-ref-manual/poky-ref-manual.html

Using IMAGE_INSTALL can have some nasty, hard to debug side-effects if 
used improperly. (I managed to obliterate half of /etc by using it in a 
machine.conf file).

--
Darren Hart

>
> basically find the package names from deploy directory and use them in
> above construct.
>
>> Can you please suggest me the solution. my jpeg_6b.bb file looks like
>> as shown below.
>>
>> ************************************************************************************************************************************************************
>>
>> SUMMARY = "library for jpeg"
>> DESCRIPTION = "Libraries that allow compression of image files based
>> on the Joint Photographic Experts"
>> HOMEPAGE = "http://www.ijg.org/"
>> SECTION = "libs"
>> LICENSE = "jpeg"
>> DEPENDS = "libtool-cross"
>> DEPENDS_virtclass-native = "libtool-native"
>>
>> PR = "r0"
>> S = "${WORKDIR}/jpeg-${PV}"
>>
>> SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz"
>> inherit pkgconfig autotools
>> EXTRA_OECONF="--enable-static --enable-shared"
>> EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool"'
>>
>> #CFLAGS_append = " -D_REENTRANT"
>> #INSTALL_PREFIX="${D}"
>> do_configure_prepend(){
>> # rm -f ${D}/ltconfig
>> rm -f ${D}/ltmain.sh
>> # rm -f ${D}${includedir}/jconfig.h
>> }
>> do_configure(){
>> oe_runconf PREFIX=${D}
>> }
>> do_compile(){
>> oe_runmake "LIBTOOL=$LIBTOOL"
>> }
>> do_install(){
>> install -d ${D}${bindir} ${D}${includedir}\
>> ${D}${mandir}/man1 ${D}${libdir}
>>
>> # install -m 0755 .libs/libjpeg.so ${STAGING_LIBDIR}
>> # install -m 0755 .libs/libjpeg.so.62 ${STAGING_LIBDIR}
>> # install -m 0755 .libs/libjpeg.so.62.0.0 ${STAGING_LIBDIR}
>>
>> oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}'
>> 'libdir=${D}${libdir}'install
>> install -m 0755 .libs/libjpeg.so ${D}${libdir}
>> install -m 0755 .libs/libjpeg.so.62 ${D}${libdir}
>> install -m 0755 .libs/libjpeg.so.62.0.0 ${D}${libdir}
>> }
>>
>> PACKAGES =+ "jpeg-tools "
>> DESCRIPTION_jpeg-tools = "The jpeg-tools package includes the client
>> programs for access libjpeg functionality. These tools allow for the
>> compression, decompression, transformation and display of JPEG files."
>> FILES_jpeg-tools = "${bindir}/*"
>>
>> BBCLASSEXTEND = "native"
>>
>> ***************************************************************************************************************************************
>>
>> Thanks and regards,
>> V kubera Samrat
>> _______________________________________________
>> poky mailing list
>> poky@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/poky
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


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

end of thread, other threads:[~2011-03-12  8:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-12  8:29 problem .so files in my image kubera samrat
2011-03-12  8:38 ` Khem Raj
2011-03-12  8:56   ` Darren Hart

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.