[yocto] Creating a recipe for python3-pillow

Burton, Ross ross.burton at intel.com
Fri Jul 6 07:29:29 PDT 2018


So the native recipe-sysroot-native is used for stuff that is actually
ran during the build, like Python, or gcc.  The target recipe-sysroot
is target libraries.

Note how it started by saying it found jpeglib.h in /usr/include, you
certainly don't want that so this auto-detection is really badly
coded.  Can you tell it where to look explicitly?

Ross

On 6 July 2018 at 14:53, Oliver Westermann <owestermann at gmail.com> wrote:
> Am Fr., 6. Juli 2018 um 15:13 Uhr schrieb Burton, Ross
> <ross.burton at intel.com>:
>>
>> Move your DEPENDS up, as the inherits are setting up DEPENDS with
>> python3-native python3-setuptools-native, and you're overwriting it.
>>
>> Put the DEPENDS after PYI_PACKAGE but before inherit.
>>
>> Ross
>
>
> One step further :) It now compiles...and fails. Interestingly it raises an
> Exception missing the jpeg library. I found the libjpeg.so and header files,
> so i enabled the debug info of setup.py. This reveals some strange-for-me
> details:
>
> | [other messages where it searched for libjpeg.h]
> | Checking for include file jpeglib.h in /usr/include
> | Found jpeglib.h
> | Couldn't find library jpeg in
> ['/data/workspace/yocto-build/build/mysys/tmp/work/aarch64-poky-linux/python3-pillow/5.2.0-r0/recipe-sysroot-native/usr/lib',
> '/usr/local/lib', '/usr/lib', '/lib']
>
> So a find | grep jpeg revealed that the library files for jpeg are placed in
> recipe-sysroot/usr/lib/, while zlib places librarys in
> recipe-sysroot/usr/lib and recipe-sysroot-native/usr/lib.
> Some googling didn't provide an answer, just more confusion :O
>
> Olli
>


More information about the yocto mailing list