由于补丁问题,Kivy + openCV + Numpy APK无法建立

时间:2018-12-12 07:02:25

标签: android numpy opencv kivy

嗨,当我尝试使用buildozer构建android APK时遇到问题,当尝试修补Numpy时似乎出现了错误。手动尝试修补文件似乎无效。我不确定是什么问题,因为我没有看到任何人提及此事。我希望有人知道这一点。

这是错误日志:

(kivypyt3) timebomb:mainproj azharudinakasah$ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /anaconda3/envs/kivypyt3/bin/cython
# Search for Java compiler (javac)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
# Search for Java keytool (keytool)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
# Install platform
# Run "pip install -q  'appdirs' 'colorama>=0.3.3' 'jinja2' 'six'"
# Cwd None
# Apache ANT found at /Users/azharudinakasah/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /Users/azharudinakasah/.buildozer/android/platform/android-sdk-20
# Android NDK found at /Users/azharudinakasah/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/anaconda3/envs/kivypyt3/bin/python -m pythonforandroid.toolchain create --dist_name=cameraexample --bootstrap=sdl2 --requirements=kivy,android,numpy,python2,opencv,plyer,cmake,sh,setuptools --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build"'
# Cwd /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (19)
[INFO]:    Requested API target 19 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[INFO]:    Using Google NDK r9c
[INFO]:    Found virtualenv at /anaconda3/envs/kivypyt3/bin/virtualenv
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.6', '4.8', 'clang3.3']
[INFO]:    Picking the latest gcc toolchain, here 4.8
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found multiple valid dependency orders:
[INFO]:        [u'cmake', 'hostpython2', u'plyer', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'sh', 'python2', u'numpy', 'sdl2', u'setuptools', 'six', u'android', u'opencv', 'pyjnius', u'kivy']
[INFO]:        [u'cmake', 'hostpython2', u'plyer', 'pygame_bootstrap_components', u'sh', 'python2', u'numpy', 'sdl', u'setuptools', 'six', u'opencv', 'pygame', 'pyjnius', u'android', u'kivy']
[INFO]:    Using the first of these: [u'cmake', 'hostpython2', u'plyer', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'sh', 'python2', u'numpy', 'sdl2', u'setuptools', 'six', u'android', u'opencv', 'pyjnius', u'kivy']
[INFO]:    The selected bootstrap is sdl2_gradle
[INFO]:    # Creating dist with sdl2_gradle bootstrap
[INFO]:    Dist will have name cameraexample and recipes (kivy, android, numpy, python2, opencv, plyer, cmake, sh, setuptools)
[INFO]:    Dist will also contain modules (plyer, sh, cmake) installed from pip
[INFO]:    -> running cp -r /Users/azharudinakasah/D...(and 278 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Recipe build order is ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', u'numpy', 'sdl2', u'setuptools', 'six', u'android', u'opencv', 'pyjnius', u'kivy']
[INFO]:    The requirements (cmake, plyer, sh) were not found as recipes, they will be installed with pip.
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython2
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 96 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/hostpython2
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
[INFO]:    hostpython2 download already cached, skipping                       
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 95 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    sdl2_image download already cached, skipping                        
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 95 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    sdl2_mixer download already cached, skipping                        
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 93 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org...(and 48 more)
[INFO]:    sdl2_ttf download already cached, skipping                          
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading python2
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 92 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/python2
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
[INFO]:    python2 download already cached, skipping                           
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading numpy
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 90 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/numpy
[INFO]:    -> running basename https://pypi.python.or...(and 42 more)
[INFO]:    numpy download already cached, skipping                             
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 89 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org...(and 26 more)
[INFO]:    sdl2 download already cached, skipping                              
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading setuptools
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 95 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/setuptools
[INFO]:    -> running basename https://pypi.python.o...(and 56 more)
[INFO]:    setuptools download already cached, skipping                        
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 88 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/six
[INFO]:    -> running basename https://pypi.python.or...(and 40 more)
[INFO]:    six download already cached, skipping                               
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    Downloading opencv
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 91 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/opencv
[INFO]:    -> running basename https://github.com/Its...(and 31 more)
[INFO]:    opencv download already cached, skipping                            
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 92 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> running basename https://github.com/kiv...(and 27 more)
[INFO]:    pyjnius download already cached, skipping                           
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /Users/azharudinakasa...(and 89 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/packages/kivy
[INFO]:    -> running basename https://github.com/kiv...(and 25 more)
[INFO]:    kivy download already cached, skipping                              
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython2 for armeabi-v7a
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop
[INFO]:    hostpython2 is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.or...(and 52 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org...(and 48 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking python2 for armeabi-v7a
[INFO]:    -> running basename https://python.org/ftp...(and 34 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a
[INFO]:    python2 is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking numpy for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.or...(and 42 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/numpy-python2/armeabi-v7a
[INFO]:    numpy is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org...(and 26 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking setuptools for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.o...(and 56 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/setuptools/armeabi-v7a
[INFO]:    setuptools is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.or...(and 40 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    -> running rm -rf /Users/azharudinakasah/...(and 133 more)
[INFO]:    -> running cp -a /Users/azharudinakasah/D...(and 293 more)
[INFO]:    Unpacking opencv for armeabi-v7a
[INFO]:    -> running basename https://github.com/Its...(and 31 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/opencv/armeabi-v7a
[INFO]:    opencv is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kiv...(and 27 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kiv...(and 25 more)
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/kivy-python2-sdl2/armeabi-v7a
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython2 for armeabi-v7a
[INFO]:    -> running cp /Users/azharudinakasah/Desk...(and 301 more)
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    sdl2_image already patched, skipping
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    sdl2_mixer already patched, skipping
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python2 for armeabi-v7a
[INFO]:    python2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python2[armeabi-v7a]
[INFO]:    python2 already patched, skipping
[INFO]:    Prebuilding numpy for armeabi-v7a
[INFO]:    numpy has no prebuild_armeabi_v7a, skipping
[WARNING]: Numpy is built assuming the archiver name is arm-linux-androideabi-ar, which may not always be true!
[INFO]:    Applying patches for numpy[armeabi-v7a]
[INFO]:    numpy already patched, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2[armeabi-v7a]
[INFO]:    sdl2 already patched, skipping
[INFO]:    Prebuilding setuptools for armeabi-v7a
[INFO]:    setuptools has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding android for armeabi-v7a
[INFO]:    android has no prebuild_armeabi_v7a, skipping
[INFO]:    -> directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/android-python2-sdl2/armeabi-v7a/android
[INFO]:    <- directory context /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Prebuilding opencv for armeabi-v7a
[INFO]:    Applying patches for opencv[armeabi-v7a]
[INFO]:    Applying patch patches/p4a_build-2.4.10.1.patch
[INFO]:    -> running patch -t -d /Users/azharudinak...(and 319 more)
           working: 2 out of 2 hunks ignored                                   Exception in thread background thread for pid 37195:
Traceback (most recent call last):
  File "/anaconda3/envs/kivypyt3/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/anaconda3/envs/kivypyt3/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/anaconda3/envs/kivypyt3/lib/python2.7/site-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/anaconda3/envs/kivypyt3/lib/python2.7/site-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/anaconda3/envs/kivypyt3/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /usr/bin/patch -t -d /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/opencv/armeabi-v7a/opencv -p1 -i /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/opencv/patches/p4a_build-2.4.10.1.patch

  STDOUT:
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/cmake/OpenCVDetectPython.cmake b/cmake/OpenCVDetectPython.cmake
|index 31c2c1e..c890917 100644
|--- a/cmake/OpenCVDetectPython.cmake
|+++ b/cmake/OpenCVDetectPython.cmake
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/modules/python/CMakeLists.txt b/modules/python/CMakeLists.txt
|index 3c0f2fd..7ba234a 100644
|--- a/modules/python/CMakeLists.txt
|+++ b/modules/python/CMakeLists.txt
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 49
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/modules/androidcamera/src/camera_activity.cpp b/modules/androidcamera/src/camera_activity.cpp
|index 84db3e1..4222526 100644
|--- a/modules/androidcamera/src/camera_activity.cpp
|+++ b/modules/androidcamera/src/camera_activity.cpp
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored


  STDERR:


[INFO]:    STDOUT (last 10 lines of 33):                                       
	Perhaps you used the wrong -p or --strip option?	
The text leading up to this was:	
--------------------------	
|diff --git a/modules/androidcamera/src/camera_activity.cpp b/modules/androidcamera/src/camera_activity.cpp	
|index 84db3e1..4222526 100644	
|--- a/modules/androidcamera/src/camera_activity.cpp	
|+++ b/modules/androidcamera/src/camera_activity.cpp	
--------------------------	
No file to patch.  Skipping patch.	
2 out of 2 hunks ignored
[INFO]:    STDERR:
	
Traceback (most recent call last):
  File "/anaconda3/envs/kivypyt3/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/anaconda3/envs/kivypyt3/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
    main()
  File "/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 149, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "pythonforandroid/build.py", line 565, in build_recipes
    recipe.prebuild_arch(arch)
  File "/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/opencv/__init__.py", line 22, in prebuild_arch
    self.apply_patches(arch)
  File "pythonforandroid/recipe.py", line 486, in apply_patches
    arch.arch)
  File "pythonforandroid/recipe.py", line 194, in apply_patch
    "-i", filename, _tail=10)
  File "pythonforandroid/logger.py", line 175, in shprint
    for line in output:
  File "/anaconda3/envs/kivypyt3/lib/python2.7/site-packages/sh.py", line 720, in next
    self.wait()
  File "/anaconda3/envs/kivypyt3/lib/python2.7/site-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/anaconda3/envs/kivypyt3/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /usr/bin/patch -t -d /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build/build/other_builds/opencv/armeabi-v7a/opencv -p1 -i /Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/opencv/patches/p4a_build-2.4.10.1.patch

  STDOUT:
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/cmake/OpenCVDetectPython.cmake b/cmake/OpenCVDetectPython.cmake
|index 31c2c1e..c890917 100644
|--- a/cmake/OpenCVDetectPython.cmake
|+++ b/cmake/OpenCVDetectPython.cmake
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/modules/python/CMakeLists.txt b/modules/python/CMakeLists.txt
|index 3c0f2fd..7ba234a 100644
|--- a/modules/python/CMakeLists.txt
|+++ b/modules/python/CMakeLists.txt
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 49
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/modules/androidcamera/src/camera_activity.cpp b/modules/androidcamera/src/camera_activity.cpp
|index 84db3e1..4222526 100644
|--- a/modules/androidcamera/src/camera_activity.cpp
|+++ b/modules/androidcamera/src/camera_activity.cpp
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored


  STDERR:

# Command failed: /anaconda3/envs/kivypyt3/bin/python -m pythonforandroid.toolchain create --dist_name=cameraexample --bootstrap=sdl2 --requirements=kivy,android,numpy,python2,opencv,plyer,cmake,sh,setuptools --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/azharudinakasah/Desktop/DevEnv/kivy/opencvkivy/mainproj/.buildozer/android/platform/build"
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

0 个答案:

没有答案