How to add pyaudio python package to yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add pyaudio python package to yocto

2,963 Views
vikneshwarthand
Contributor II

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.

Labels (3)
0 Kudos
Reply
2 Replies

2,137 Views
joanxie
NXP TechSupport
NXP TechSupport

how did you use toolchian build the new package? for more detailed information, pls refer to the yocto training, hope helpful for you

https://community.nxp.com/docs/DOC-94389 

0 Kudos
Reply

1,774 Views
unscripted1
Contributor I

I' m having similar issues.

What I am trying to do is install PortAudio Library on my nxp board

----------------------------------------------

import sounddevice as sd

File "/usr/lib/python3.9/site-packages/sounddevice.py", line 71, in <module>
raise OSError('PortAudio library not found')
OSError: PortAudio library not found

----------------------------------------------

Can i get installation guide? I cannot access joanxie's shared link. I dont have rights to access

I am working on IMX8 PLUS

0 Kudos
Reply