Search code examples
jpegyoctobitbakejpegtran

Install a binary from a third party package in yocto


I am trying to have jpegtran command in my custom linux image built by yocto. I have added IMAGE_INSTALL += jpeg in my image.bb file for that. I checked build directory as well to check whether jpegtran is being generated by jpeg package build or not, and it is there. But jpegtran is not being installed in image. What am I missing here? Do I need to write .bbappend for this usecase?


Solution

  • Have a look ${WORKDIR}/packages-split for libjpeg-turbo or libjpeg (depending on which version of OpenEmbedded you're using). There you should find jpegtrans in the package jpgeg-tools. See also recipe for details on how the packaging is being done for `libjpeg(-turbo).

    All applications that libjep(-turbo) installs, gets package into libjeg-tools by the following lines:

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