-
Notifications
You must be signed in to change notification settings - Fork 65
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
Error when installing via pip on CoreElec (aarch64) #198
Comments
This seems to be a problem with you compiler installation. What is the output of |
I am so sorry. Yes, it is compiler depends problem. Resolved. |
No problem. Glad you could get it working. |
Not yet. I resolve a problem compiler installation. But can't install python-rtmidi. I have opkg packet manager, and i not have a package libasound2-dev or jack. But i have libasound.so.2. And i have a alsactl. find / -name "alsactl" Any workaround for install python-rtmidi. Current ERROR:
|
You need not only the ALSA libraries, but also the header files, which are usually installed in In don't know which package on your distro (openwrt?) provides these files. Maybe alsa-lib? |
Distro: CoreElec. opkg install alsa-lib |
Nope, these are not the droids...err...headers we're looking for. |
It seems the header files are not included in the https://github.com/openwrt/packages/blob/openwrt-22.03/libs/alsa-lib/Makefile#L71 So, if you want to compile python-rtmidi on this system, you need to find way to provide these headers and an |
@SpotlightKid i built alsa libs from sources and copy to directory files to "include" dir such as asoundlib.h, asoundef.h etc... I got a new error. Please, tell me what i can investigation for this error:
Exact:
P.s. i now, that this hardest method for install rtmidi, but i don't know other... |
You also need the Python header files, so I thought that meson would detect this when checking for Python's presence, but obviously it doesn't and I should have included a more thorough check that the Python headers are present. I will add this in future python-rtmidi versions. I think your distro is not really meant for building software directly on the device. In the long run, you're probably better off setting up a cross-compilation build environment on your PC. |
How i can check it? Because directory have a Python header files:
|
Sorry, my assessment was a bit hasty. It seems that your system has the Python headers installed after all. So it is probably a problem with the C++ code generated by Cython. I'm not sure if it is using the generated C++ code from the source distribution or if it is generating it on your system. Are you compiling from the source distribution (e.g. by using |
From PyPi, like a manual. https://spotlightkid.github.io/python-rtmidi/installation.html Section "From PyPI" |
Can you try installing from the git repo as described here?
|
@kamulchik Any luck compiling python-rtmidi on CoreElec yet? |
You are right. So I lost a lot of time for tries. At now, i have beautiful error: |
Python version:
Python 3.10.7
Binutils info:
Error when trying pip install python-rtmidi
The text was updated successfully, but these errors were encountered: