Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PortAudio on Pi Zero W #56

Open
thomarse-ef opened this issue Aug 1, 2021 · 1 comment
Open

PortAudio on Pi Zero W #56

thomarse-ef opened this issue Aug 1, 2021 · 1 comment

Comments

@thomarse-ef
Copy link

Hi. I thought I'd open this as an issue. This seems to be the same issue as this one, I've been trying but can't apply it to fix my issue.

I'm trying to use the PortAudio package, I get this error:

signal (4): Illegal instruction
in expression starting at /home/pi/.julia/packages/FFMPEG_jll/xCSqL/src/wrappers/armv7l-linux-gnueabihf.jl:12
_GLOBAL__sub_I_motion.cpp at /home/pi/.julia/artifacts/4aa3a4154795fad4cba5fdb55d9be30840315788/lib/libx265.so (unknown line)
Allocations: 4518096 (Pool: 4517769; Big: 327); GC: 14
ERROR: LoadError: LoadError: Failed to precompile FFMPEG_jll [b22a6f82-2f65-5046-a5b2-351ab43fb4e5] to /home/pi/.julia/compiled/v1.5/FFMPEG_jll/uSD0T_djzcu.ji.
Stacktrace:
...
in expression starting at /home/pi/.julia/packages/alsa_plugins_jll/hnVoe/src/wrappers/armv7l-linux-gnueabihf.jl:4
in expression starting at /home/pi/.julia/packages/alsa_plugins_jll/hnVoe/src/alsa_plugins_jll.jl:8
ERROR: LoadError: Failed to precompile alsa_plugins_jll [5ac2f6bb-493e-5871-9171-112d4c21a6e7] to /home/pi/.julia/compiled/v1.5/alsa_plugins_jll/psNhV_djzcu.ji.
Stacktrace:
...
in expression starting at /home/pi/.julia/packages/PortAudio/iJ74y/src/PortAudio.jl:3
ERROR: Failed to precompile PortAudio [80ea8bcb-4634-5cb3-8ee8-a132660d1d2d] to /home/pi/.julia/compiled/v1.5/PortAudio/Q9ZEe_djzcu.ji.
Stacktrace:
...

In the solution here it seems to be straightforward to copy the files to the correct place but I can't find the correct files in /usr/lib/arm-linux-gnueabihf and I'm not sure exactly where to copy them to. Also for the second and third errors it's not clear which files need to be copied. Any advice would be much appreciated.

@terasakisatoshi
Copy link
Member

Hello @thomarse-ef. I'm sorry to late reply for you.

As for PortAudio.jl, it depends on alsa_plugins_jll and libportaudio_jll according to
https://github.com/JuliaAudio/PortAudio.jl/blob/master/Project.toml#L7-L8

where foo_jll is a JLL pakages (a pun on Dynamic-Link Library).
Julia manages dependencies which are created by e.g. C/C++/Fortran library on Yggdrasil.

For example, alsa_plugins_jll is created via https://github.com/JuliaPackaging/Yggdrasil/blob/master/A/alsa_plugins/build_tarballs.jl
. When one tries to use PortAudio, it will call alsa_plugins_jll and this JLL tries to load shared libraries such as

https://github.com/JuliaPackaging/Yggdrasil/blob/master/A/alsa_plugins/build_tarballs.jl#L28-L43

Therefore, this is an answer regarding alsa_plugins_jll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants