Ошибка установки подушки на Yocto core-base-image - PullRequest
0 голосов
/ 11 ноября 2019

Я пытаюсь установить Pillow в Yocto core-base-image, но когда я использую pip3, установите Pillow, я получаю следующее сообщение об ошибке:

Running setup.py install for Pillow ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/var/volatile/tmp/pip-install-n_gnb4rr/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/volatile/tmp/pip-record-1mienill/install-record.txt --single-version-externally-managed --compile:

    .
    .
    .

      File "/var/volatile/tmp/pip-install-n_gnb4rr/Pillow/setup.py", line 687, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: jpeg

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/var/volatile/tmp/pip-install-n_gnb4rr/Pillow/setup.py", line 903, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:

    The headers or library files could not be found for jpeg,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html



    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/var/volatile/tmp/pip-install-n_gnb4rr/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/volatile/tmp/pip-record-1mienill/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/volatile/tmp/pip-install-n_gnb4rr/Pillow/

Я включаю jpeg и libjpeg-turbo в loca. Conf файл выглядит следующим образом:

CONF_VERSION = "1"
MACHINE ?= "raspberrypi2"
INHERIT += "rm_work"
DL_DIR ?= "/home/<user>/poky-warrior-21.0.1/downloads"
CORE_IMAGE_EXTRA_INSTALL += " python3 python3-pip python3-dev git libjpeg-turbo jpeg libpng"
IMAGE_INSTALL_append = " opencv"
IMAGE_INSTALL_append = " cmake"
IMAGE_INSTALL_append = " nano"
IMAGE_INSTALL_append = " packagegroup-core-buildessential"

Но это не работает, и вот мой файл bblayers.conf:

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/adrian/poky-warrior-21.0.1/meta \
  /home/adrian/poky-warrior-21.0.1/meta-poky \
  /home/adrian/poky-warrior-21.0.1/meta-yocto-bsp \
  /home/adrian/poky-warrior-21.0.1/meta-raspberrypi \
  /home/adrian/poky-warrior-21.0.1/meta-opencv \
  /home/adrian/poky-warrior-21.0.1/meta-cmake \
  /home/adrian/poky-warrior-21.0.1/meta-nano \
  "
...