How to add pyaudio python package to yocto

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to add pyaudio python package to yocto

3,904件の閲覧回数
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.

ラベル(3)
0 件の賞賛
返信
2 返答(返信)

3,078件の閲覧回数
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 件の賞賛
返信

2,715件の閲覧回数
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 件の賞賛
返信