In my application https://github.com/sameermahajan/PaadasML I need SpeechRecognition package. Since it depends on pyaudio, I am trying to install it (specified in requirements of my buildozer.spec file).
However while building apk (using github actions) it is giving an error of:
/usr/include/limits.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
34939 #include <bits/libc-header-start.h>
34940 ^~~~~~~~~~~~~~~~~~~~~~~~~~
34941 1 error generated.
34942 error: command '/usr/bin/ccache' failed with exit code 1
34943 error: subprocess-exited-with-error
34944
34945 × Building wheel for pyaudio (pyproject.toml) did not run successfully.
34946 │ exit code: 1
ERROR: Failed building wheel for pyaudio
34954Failed to build pyaudio
34955ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects
You can see the error and other details in my latest build under Actions tab of my repo shared above. Some posts suggest to apt install gcc-multilib for such issues. However I don't know how I can do that as a part of my buildozer build. I could not find any other python package that I can add to my requirements list to fix this issue. Some other posts point to 32 vs 64 bit system incompatibility. But I don't know how I can control that in github actions.
Here is a summary of my problem after trying out a few suggestions by Azeem.
After applying a number of fixes on my local system, I am stuck at the exact same place there as well.