-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Kivy doesn't compile with SDL_mixer v2.0.2 #5457
Comments
This is the new definition in typedef enum
{
MIX_INIT_FLAC = 0x00000001,
MIX_INIT_MOD = 0x00000002,
MIX_INIT_MP3 = 0x00000008,
MIX_INIT_OGG = 0x00000010,
MIX_INIT_MID = 0x00000020
} MIX_InitFlags; |
And the prior one for comparison: typedef enum
{
MIX_INIT_FLAC = 0x00000001,
MIX_INIT_MOD = 0x00000002,
MIX_INIT_MODPLUG = 0x00000004,
MIX_INIT_MP3 = 0x00000008,
MIX_INIT_OGG = 0x00000010,
MIX_INIT_FLUIDSYNTH = 0x00000020
} MIX_InitFlags; |
I'm 100% sure nobody use fluidsynth. If you provide a patch directly, we'll merge it. |
Where do you enter in the new definitions? Please bare with me. I am new to this. |
Looks like someone took a crack at a fix here: #5459 |
The ArchLinux Kivy package somehow manages to get around this compilation issue:
The python-kivy 1.10.0 package depends on sdl2_mixer 2.0.2 and it works without the patch mentioned. I was trying to install Kivy in a Python 3 virtual environment with a requirements.txt file containing: After installing the package from the repository: |
That's interesting. Unfortunately I need to compile the latest master branch because I'm running Arch on a Raspberry Pi, and if I use the 1.10.0 version from the repository performance is dreadful. |
Indeed, building a python-kivy Arch package from master branch, via Applying the the patch to the PKGBUILD works for building master Kivy on x86_64 desktop Building for ARM should work the same as for the desktop, just need to update the respective PKGBUILD file: Replace 'arm' in the URL with the ARM version of the Raspberry Pi you have: Raspberry Pi 1 - armv6 However, I see that the package for sdl_mixer in ArchLinux for ARM is 1.2.12-5 , would need to update that as well. |
Closed by #5459 |
This still exists on MacOS High Sierra |
@duaneking |
Not an option for me; I'm looking for non-kiva options now since HS has been around long enough that if the community doesn't care to ship/maintain this, then I shouldn't let myself depend on it. |
Is there any change that you could release a Kivy version with this fix? Since Ubuntu 18.04 just got released this will affect practically 95% of our Linux user base. |
installing Kivy Development Version worked on High Sierra. Thanks fantastechit! |
Versions
Description
Kivy fails to compile with the error listed below. The reason is that some flags were removed/renamed in
SDL2_mixer
release 2.0.2, specificallyMIX_INIT_MODPLUG
andMIX_INIT_FLUIDSYNTH
were removed fromSDL_mixer.h
.I'm willing to take a crack at a fix, but presumably we want to maintain backwards compatibility, so my thought is to redefine these flags locally if they don't exist in the header.
Code and Logs
The text was updated successfully, but these errors were encountered: