AnsweredAssumed Answered

How to add pyaudio python package to yocto

Question asked by Vikneshwar Thandeswaran on Mar 2, 2018
Latest reply on Mar 6, 2018 by Joan Xie

I have added a recipe for pyaudio python package to yocto.

It's compiling and seems installing but it's not working. May be something is missing at installtion time.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SUMMARY = "Support for the Linux 2.6.x ALSA Sound System"
SECTION = "devel/python"
DEPENDS = "portaudio-v19 alsa-lib"
LICENSE = "PSF"
#LIC_FILES_CHKSUM = "file://LICENSE;md5=1A3B161AA0FCEC32A0C8907A2219AD9D"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1a3b161aa0fcec32a0c8907a2219ad9d"
SRCNAME = "PyAudio"

SRC_URI = "file:///home/hardik/Downloads/${SRCNAME}-${PV}.tar.gz"

S = "${WORKDIR}/${SRCNAME}-${PV}"

SRC_URI[md5sum] = "86e752bfe47036f893e9bca9abf5192b"
SRC_URI[sha256sum] = "7cbc42aa71b594918b3d385ed8a9a15a06dee4057d916b625c1ee587edf425c6"

RDEPENDS_${PN} += "libasound"

inherit distutils
#inherit pypi setuptools
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To write above recipe, I refered pyalsaaudio as given below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DESCRIPTION = "Support for the Linux 2.6.x ALSA Sound System"
SECTION = "devel/python"
DEPENDS = "alsa-lib"
LICENSE = "PSF"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1a3b161aa0fcec32a0c8907a2219ad9d"
SRCNAME = "pyalsaaudio"
PR = "ml1"

SRC_URI = "${SOURCEFORGE_MIRROR}/pyalsaaudio/${SRCNAME}-${PV}.tar.gz"
S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit distutils

SRC_URI[md5sum] = "b312c28efba7db0494836a79f0a49898"
SRC_URI[sha256sum] = "07148ce16024724b17cc24c51d0f4fb78af214b09b7dc8dcb7b06e5647f4c582"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please guide me if i am missing something.

Attachments

Outcomes