UbuntuでPythonプログラムをapk化するためにbuildozerを使っています。
Ubuntu:16.04
buildozer:1.1.1.dev0
以前に発生したエラーのためにいろいろやってみたのですが
違うエラーになりました。
以前のエラー
configure.ac:41: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:7697: error: possibly undefined macro: AC_PROG_LD autoreconf: /usr/bin/autoconf failed with exit status: 1
試したこと
- シンボリックリンクの追加 参考
ln -s /usr/share/aclocal /usr/local/share/aclocal
- .m4ファイルがあるaclocalディレクトリをオプションで指定 参考
$ autoreconf -f -i -Wall,no-obsolete -I/usr/share/aclocal
- configure が必要と言われたのでautoconf(2.10)をダウンロード、解凍、展開されたフォルダに移動しコマンド実行
$ autoreconf -f -i -Wall,no-obsolete -I/usr/share/aclocal
./configure
make
sudo make install
- 再度実行
$ sudo buildozer distclean
$ sudo rm -fr ~/.buildozer
$ sudo -H buildozer android debug deploy
エラー発生
$ sudo -H buildozer android debug deploy # Check configuration tokens Buildozer is running as root! This is not recommended, and may lead to problems later. Are you sure you want to continue [y/n]? y # WARNING: Config token app android.sdk is deprecated and ignored, but you set value 26 # Ensure build layout # Check configuration tokens : : [INFO]: -> directory context /home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi [INFO]: -> running autogen.sh working: [-l dir] [--localdir=dir] [--force]...(and 24 more) Exception in thread background thread for pid 16501: Traceback (most recent call last): File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/local/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.8/site-packages/sh.py", line 1662, in wrap fn(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/sh.py", line 2606, in background_thread handle_exit_code(exit_code) File "/usr/local/lib/python3.8/site-packages/sh.py", line 2304, in fn return self.command.handle_command_exit_code(exit_code) File "/usr/local/lib/python3.8/site-packages/sh.py", line 877, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/autogen.sh STDOUT: Usage: autoreconf [-f] [-h] [--help] [-m dir] [--macrodir=dir] [-l dir] [--localdir=dir] [--force] [--verbose] [--version] STDERR: Traceback (most recent call last): File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1260, in <module> main() File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main ToolchainCL() File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 709, in __init__ getattr(self, command)(args) File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func build_dist_from_args(ctx, dist, args) File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 213, in build_dist_from_args build_recipes(build_order, python_modules, ctx, File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 577, in build_recipes recipe.build_arch(arch) File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/__init__.py", line 40, in build_arch shprint(sh.Command('./autogen.sh'), _env=env) File "/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint for line in output: File "/usr/local/lib/python3.8/site-packages/sh.py", line 925, in next self.wait() File "/usr/local/lib/python3.8/site-packages/sh.py", line 849, in wait self.handle_command_exit_code(exit_code) File "/usr/local/lib/python3.8/site-packages/sh.py", line 877, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/autogen.sh STDOUT: Usage: autoreconf [-f] [-h] [--help] [-m dir] [--macrodir=dir] [-l dir] [--localdir=dir] [--force] [--verbose] [--version] STDERR: # Command failed: /usr/local/bin/python3.8 -m pythonforandroid.toolchain create --dist_name=pyknptest --bootstrap=sdl2 --requirements=python3,kivy,pyknp --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/ubun/ProgramFiles/kivyTest/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21 # ENVIRONMENT: # TERM = 'xterm-256color' # LS_COLORS = 'rs=0:di=01;34: ... # PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' # LANG = 'ja_JP.UTF-8' # HOME = '/root' # LANGUAGE = 'ja' # DISPLAY = ':0' # XAUTHORITY = '/home/ubun/.Xauthority' # MAIL = '/var/mail/root' # LOGNAME = 'root' # USER = 'root' # USERNAME = 'root' # SHELL = '/bin/bash' # SUDO_COMMAND = '/usr/local/bin/buildozer android debug deploy' # SUDO_USER = 'ubun' # SUDO_UID = '1000' # SUDO_GID = '1000' # PACKAGES_PATH = '/root/.buildozer/android/packages' # ANDROIDSDK = '/media/sf_VM-share' # ANDROIDNDK = '/media/sf_VM-share/android-ndk-r19c/android-ndk-r19c' # ANDROIDAPI = '26' # ANDROIDMINAPI = '21' # # 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
autoreconfの使用法が表示されてしまっているのですが何が原因でしょうか?
改善するアドバイスなどお願いします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。