提问者:小点点

如何修复构建失败并显示 cmake 错误


我正在尝试使用构建器构建一个Kivy应用程序。我已经升级到构建器 0.39。生成失败,并显示:

File "~/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1: 


RAN: /bin/rm -f CMakeCache.txt CMakeFiles/

STDOUT:
/bin/rm: cannot remove 'CMakeFiles/': Is a directory

我已经安装了 cmake 版本 3.5.1

已安装 cython 版本 0.21。

我已经卸载了cmake并使用此处的说明重新安装了3.14.2版。

我已经删除了 .buildozer 目录。当我现在运行构建器I时,遇到问题:

RAN: ./autogen.sh

STDOUT:
./autogen.sh: 2: exec: autoreconf: not found

sudo apt install autoconf libtool

我现在收到错误:

STDOUT:
File "setup.py", line 159
print "--- using Tcl/Tk libraries at", TCL_ROOT
                                    ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("--- using Tcl/Tk libraries at", TCL_ROOT)?

如果我卸载构建器,它似乎是python 2.7

/usr/local/lib/python2.7/dist-packages/buildozer-0.39.dist-info/*

我已经从python版本为2.7.12的目录中安装了buildozer

如何将构建器定位到 python 2.7?

我怎样才能知道它是如何定位的?

如何使用这些信息?

我尝试在 python 3 的 virtualenv 中使用 buildozer,但我得到了同样的错误。

我迷路了。我已经查看了Docker,但我不知道如何安装或使用它。它是否假设构建器的工作版本?这是什么?它会解决我的问题吗?

当我跑步时

docker run --volume "$HOME/.buildozer":/home/user/.buildozer --volume "$PWD":/home/user/hostcwd kivy/buildozer --version

'Buildozer 0.40.dev0'.

但是,当我尝试运行时

docker run --volume "$HOME/.buildozer":/home/user/.buildozer --volume "$PWD":/home/user/hostcwd kivy/buildozer android debug

我收到错误:

将 /home/user/.buildozer/android/platform/android-ndk-r17c 重命名为 /home/jeff/.buildozer/crystax-ndk/crystax-ndk-10.3.2 失败,因为 /home/jeff/.buildozer/crystax-ndk/crystax-ndk-10.3.2 不是目录

我现在已经注释掉了

#android.ndk_path 

来自 buildozer.spec

我现在收到错误:


共1个答案

匿名用户

我删除了这个包的CMakeFiles dir并重新运行buildozer build,它通过了(在dir .buildozer/android/platform/build/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg中)