Skip to content

Commit 015f000

Browse files
committed
Because audiostream can't link against audiostream yet, raise an error with more helpful message
1 parent 290237d commit 015f000

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pythonforandroid/recipes/audiostream/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ def get_recipe_env(self, arch):
1818
elif 'sdl2' in self.ctx.recipe_build_order:
1919
sdl_include = 'SDL'
2020
sdl_mixer_include = 'SDL2_mixer'
21+
22+
#note: audiostream library is not yet able to judge whether it is being used with sdl or with sdl2.
23+
#this causes linking to fail against SDL2 (compiling against SDL2 works)
24+
#need to find a way to fix this in audiostream's setup.py
25+
raise RuntimeError('Audiostream library is not yet able to configure itself to link against SDL2. Patch on audiostream library needed - any help much appreciated!')
2126

22-
#note: audiostream library is not yet able to judge whether it is being used with sdl or with sdl2.
23-
#this causes linking to fail against SDL2 (compiling against SDL2 works)
24-
#need to find a way to fix this in audiostream's setup.py
25-
2627
env = super(AudiostreamRecipe, self).get_recipe_env(arch)
2728
env['CFLAGS'] += ' -I{jni_path}/{sdl_include}/include -I{jni_path}/{sdl_mixer_include}'.format(
2829
jni_path = join(self.ctx.bootstrap.build_dir, 'jni'),

0 commit comments

Comments
 (0)