这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界» 论坛首页» 嵌入式开发» 国产MCU» 为什么RV1126buildrootpython-setuptools勾选编译会

共2条 1/1 1 跳转至

为什么RV1126buildrootpython-setuptools勾选编译会失败呢

工程师
2023-09-04 18:58:20 打赏

rv1126 buildroot文件系统下,menuconfig勾选python-setuptools之后,编译失败,失败log如下:

2022-02-21T09:59:04 File "/home/zl/firefly-workspace/rv1126_rv1109_linux_release_20210306/buildroot/output/firefly_rv1126_rv1109/target/usr/lib/python3.7/site.py", line 177
2022-02-21T09:59:04 file=sys.stderr)
2022-02-21T09:59:04 ^
2022-02-21T09:59:04 SyntaxError: invalid syntax
2022-02-21T09:59:04 package/pkg-generic.mk:256: recipe for target '/home/zl/firefly-workspace/rv1126_rv1109_linux_release_20210306/buildroot/output/firefly_rv1126_rv1109/build/python-setuptools-41.0.1/.stamp_built' failed
2022-02-21T09:59:04 make[1]: *** [/home/zl/firefly-workspace/rv1126_rv1109_linux_release_20210306/buildroot/output/firefly_rv1126_rv1109/build/python-setuptools-41.0.1/.stamp_built] Error 1
2022-02-21T09:59:04 /home/zl/firefly-workspace/rv1126_rv1109_linux_release_20210306/buildroot/output/firefly_rv1126_rv1109/Makefile:16: recipe for target '_all' failed
2022-02-21T09:59:04 make: *** [_all] Error 2
Command exited with non-zero status 1
you take 5:57.10 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 570:
/usr/bin/time -f "you take %E to build builroot" COMMON_DIR/mk-buildroot.sh BOARD_CONFIG

请问是还有别的依赖模块没勾选吗?从错误信息没看到受什么地方影响来。





关键词: RV1126 buildroot python-s

助工
2023-09-04 19:00:24 打赏
2楼

python2.几的代码:

diff --git a/configs/firefly_rv1126_rv1109_defconfig b/configs/firefly_rv1126_rv1109_defconfig
index c759bdf685..a6f1fcfb49 100644
--- a/configs/firefly_rv1126_rv1109_defconfig
+++ b/configs/firefly_rv1126_rv1109_defconfig
@@ -154,3 +154,5 @@ BR2_PACKAGE_FFMPEG_BSFS="aac_adtstoasc h264_metadata h264_mp4toannexb h264_redun
BR2_PACKAGE_FFMPEG_PROTOCOLS="file rtp srtp rtmp rtmps http https"
BR2_PACKAGE_FFMPEG_FILTERS="scale"
BR2_TARGET_GENERIC_ROOT_PASSWD="firefly"
+BR2_PACKAGE_PYTHON=y
+BR2_PACKAGE_PYTHON_SETUPTOOLS=y

修改buildroot/configs/firefly_rv1126_rv1109_defconfig文件进行编译。已验证可编译通过。

python3的代码,我已做修改:

diff --git a/configs/firefly_rv1126_rv1109_defconfig b/configs/firefly_rv1126_rv1109_defconfig
index c759bdf685..0baf0c8afb 100644
--- a/configs/firefly_rv1126_rv1109_defconfig
+++ b/configs/firefly_rv1126_rv1109_defconfig
@@ -154,3 +154,5 @@ BR2_PACKAGE_FFMPEG_BSFS="aac_adtstoasc h264_metadata h264_mp4toannexb h264_redun
BR2_PACKAGE_FFMPEG_PROTOCOLS="file rtp srtp rtmp rtmps http https"
BR2_PACKAGE_FFMPEG_FILTERS="scale"
BR2_TARGET_GENERIC_ROOT_PASSWD="firefly"
+BR2_PACKAGE_PYTHON3=y
+BR2_PACKAGE_PYTHON_SETUPTOOLS=y

修改如上。把buildroot/output/firefly_rv1126_rv1109整个文件夹删除。或者删除buildroot/output/firefly_rv1126_rv1109/build/python* 和 build/host-python* 的内容。重新编译即可通过。存在编译不通过的原因应该是/build/host-python-setuptools-41.0.1 文件夹没删除,没进行重新编译导致的一些错误。


共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册]