0

Using pip in Pydroid 3 (running under Win10 Memu) I am trying to install pyalsaaudio. The build fails with "no such file" for "alsa/asoundlib.h".

Other Linux distros suggest installing libasound2-dev but I cannot find an Android package?

Has anyone else had success in installing pyalsaaudio, please?

UPDATE:

Almost succeeded, here is where I am at now (version sort replacement to get around incorrect Android compiler setting)(a few repeated compiler warnings as per normal). No errors in build but some incompatibility somewhere:

1.  With Multi-MEmu create new Android 5.1 device instance and login to playstore
2.  Default settings, except tablet -> mobile
3.  Settings, others, root mode: open
4.  Install termux from playstore and open
5.  apt update
6.  apt install nano
7.  apt install clang
8.  apt install make
9.  apt install python-dev
10. apt install proot
11. termux-chroot
12. wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.8.tar.bz2
13. tar -xjf alsa-lib-1.1.8.tar.bz2
14. cd alsa-lib-1.1.8
15. nano src/conf.c then (replace versionsort with alphasort) and save
16. nano src/ucm/parser.c then (replace versionsort with alphasort) and save
17. ./configure
18. make
19. make install
20. pip install --upgrade pip
21. pip install pyalsaaudio
22. python

import alsaaudio

WARNING: linker: alsaaudio.cpython-37m.so: unused DT entry: type 0x6ffffef5 arg 0x5c0

WARNING: linker: alsaaudio.cpython-37m.so: unused DT entry: type 0x6ffffffe arg 0x1fe0

WARNING: linker: alsaaudio.cpython-37m.so: unused DT entry: type 0x6fffffff arg 0x1

WARNING: linker: libasound.so.2: unused DT entry: type 0x6ffffef5 arg 0x2d98

Traceback (most recent call last):

 File "stdin", line 1, in module

ImportError: dlopen failed: cannot locate symbol "rint" referenced by "alsaaudio.cpython-37m.so"...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.