kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
759 stars 238 forks source link

Update ffmpeg/ffpyplayer versions #716

Closed tito closed 1 year ago

misl6 commented 2 years ago

@tito

Are these changes also fixing the ccache related issue we talked about on Discord?

misl6 commented 2 years ago

@tito If you're good with the suggestion and then the CI flags it as ✅ , I'm fine with it.

brentpicasso commented 1 year ago

Hi, any reason this cannot be merged?

Thanks!

AndreMiras commented 1 year ago

Hi, any reason this cannot be merged?

Thanks for the heads up, I've rebased the PR, will merge if the CI is OK

AndreMiras commented 1 year ago

The build_updated_recipes failed, the error was fatal error: 'SDL_version.h' file not found. Here's an extract with more context, for full context see the build.

2023-03-07T10:12:41.8427530Z [DEBUG   ] /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpv1azr2cn -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/libffi -O3 -miphoneos-version-min=9.0 -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/ffi -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/openssl -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64 -g -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/common/sdl2 -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer -I/Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/includes -I/Users/runner/work/kivy-ios/kivy-ios/dist/hostpython3/include/python3.10 -c /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.c -o build/temp.macosx-12.6-x86_64-cpython-310/Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.o -O3 -fno-strict-aliasing -Wno-error
2023-03-07T10:12:41.8992820Z [DEBUG   ] In file included from /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.c:1:
2023-03-07T10:12:41.8994170Z [DEBUG   ] In file included from /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.h:5:
2023-03-07T10:12:41.8995440Z [DEBUG   ] /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/../includes/ffconfig.h:5:10: fatal error: 'SDL_version.h' file not found
2023-03-07T10:12:41.8996250Z [DEBUG   ] #include "SDL_version.h"
2023-03-07T10:12:41.8996870Z [DEBUG   ]          ^~~~~~~~~~~~~~~
2023-03-07T10:12:41.9605940Z [DEBUG   ] 1 error generated.
2023-03-07T10:12:41.9707650Z [DEBUG   ] error: command '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpv1azr2cn' failed with exit code 1
2023-03-07T10:12:42.0437480Z Exception in thread background thread for pid 93873:
2023-03-07T10:12:42.0439300Z Traceback (most recent call last):
2023-03-07T10:12:42.0440370Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
2023-03-07T10:12:42.0442150Z     self.run()
2023-03-07T10:12:42.0443830Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
2023-03-07T10:12:42.0445580Z     self._target(*self._args, **self._kwargs)
2023-03-07T10:12:42.0447020Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 1540, in wrap
2023-03-07T10:12:42.0457140Z     fn(*args, **kwargs)
2023-03-07T10:12:42.0458870Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 2459, in background_thread
2023-03-07T10:12:42.0459660Z     handle_exit_code(exit_code)
2023-03-07T10:12:42.0460740Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 2157, in fn
2023-03-07T10:12:42.0466960Z     return self.command.handle_command_exit_code(exit_code)
2023-03-07T10:12:42.0467690Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-03-07T10:12:42.0468740Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 815, in handle_command_exit_code
2023-03-07T10:12:42.0469600Z     raise exc
2023-03-07T10:12:42.0470190Z sh.ErrorReturnCode_1: 
2023-03-07T10:12:42.0470670Z 
2023-03-07T10:12:42.0471370Z   RAN: /Users/runner/work/kivy-ios/kivy-ios/dist/hostpython3/bin/python setup.py build_ext -g

@brentpicasso do you have a working version of the recipe?

brentpicasso commented 1 year ago

Thanks for checking it. I don't have this building locally.

@tito - were you able to get it to build at the time you submitted this PR?

misl6 commented 1 year ago

The build_updated_recipes failed, the error was fatal error: 'SDL_version.h' file not found. Here's an extract with more context, for full context see the build.

2023-03-07T10:12:41.8427530Z [DEBUG   ] /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpv1azr2cn -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/libffi -O3 -miphoneos-version-min=9.0 -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/ffi -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/openssl -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64 -g -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/common/sdl2 -I/Users/runner/work/kivy-ios/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer -I/Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/includes -I/Users/runner/work/kivy-ios/kivy-ios/dist/hostpython3/include/python3.10 -c /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.c -o build/temp.macosx-12.6-x86_64-cpython-310/Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.o -O3 -fno-strict-aliasing -Wno-error
2023-03-07T10:12:41.8992820Z [DEBUG   ] In file included from /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.c:1:
2023-03-07T10:12:41.8994170Z [DEBUG   ] In file included from /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/misc.h:5:
2023-03-07T10:12:41.8995440Z [DEBUG   ] /Users/runner/work/kivy-ios/kivy-ios/build/ffpyplayer/x86_64/ffpyplayer-4.3.5/ffpyplayer/clib/../includes/ffconfig.h:5:10: fatal error: 'SDL_version.h' file not found
2023-03-07T10:12:41.8996250Z [DEBUG   ] #include "SDL_version.h"
2023-03-07T10:12:41.8996870Z [DEBUG   ]          ^~~~~~~~~~~~~~~
2023-03-07T10:12:41.9605940Z [DEBUG   ] 1 error generated.
2023-03-07T10:12:41.9707650Z [DEBUG   ] error: command '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpv1azr2cn' failed with exit code 1
2023-03-07T10:12:42.0437480Z Exception in thread background thread for pid 93873:
2023-03-07T10:12:42.0439300Z Traceback (most recent call last):
2023-03-07T10:12:42.0440370Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
2023-03-07T10:12:42.0442150Z     self.run()
2023-03-07T10:12:42.0443830Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
2023-03-07T10:12:42.0445580Z     self._target(*self._args, **self._kwargs)
2023-03-07T10:12:42.0447020Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 1540, in wrap
2023-03-07T10:12:42.0457140Z     fn(*args, **kwargs)
2023-03-07T10:12:42.0458870Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 2459, in background_thread
2023-03-07T10:12:42.0459660Z     handle_exit_code(exit_code)
2023-03-07T10:12:42.0460740Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 2157, in fn
2023-03-07T10:12:42.0466960Z     return self.command.handle_command_exit_code(exit_code)
2023-03-07T10:12:42.0467690Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-03-07T10:12:42.0468740Z   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/sh.py", line 815, in handle_command_exit_code
2023-03-07T10:12:42.0469600Z     raise exc
2023-03-07T10:12:42.0470190Z sh.ErrorReturnCode_1: 
2023-03-07T10:12:42.0470670Z 
2023-03-07T10:12:42.0471370Z   RAN: /Users/runner/work/kivy-ios/kivy-ios/dist/hostpython3/bin/python setup.py build_ext -g

@brentpicasso do you have a working version of the recipe?

Hi @AndreMiras !

See: https://github.com/kivy/kivy-ios/pull/716#discussion_r895145331

brentpicasso commented 1 year ago

Thanks @AndreMiras and @misl6 for the quick turnaround on this!