您尚未登录。

楼主 # 2022-11-22 19:47:43

rtqq
会员
注册时间: 2022-07-02
已发帖子: 11
积分: 11

全志V831 在SDK中编译python3.8 报错

在menuconfig 中 Language -> Python -> python3,make之后报错


提示无法找到Tcl/TK lib ,我找menuconfig里面没找到 这个lib,求求各位帮忙看看
错误信息:

running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_curses' extension
arm-openwrt-linux-muslgnueabi-gcc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/staging_dir/target/usr/include -I/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/staging_dir/target/include -I/home/tina/Desktop/tina-V83x/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/include -I/home/tina/Desktop/tina-V83x/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include -I/home/tina/Desktop/tina-V83x/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include/fortify -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fprofile-generate -I./Include/internal -DHAVE_NCURSESW=1 -I./Include -I. -I/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/staging_dir/target/include -I/home/tina/Desktop/tina-V83x/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include -I/home/tina/Desktop/tina-V83x/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include/fortify -I/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/staging_dir/target/usr/include -I/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Include -I/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5 -c /home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c -o build/temp.linux-arm-3.8/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.o
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c: In function '_curses_window_addch_impl':
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:621:9: error: implicit declaration of function 'setcchar' [-Werror=implicit-function-declaration]
         setcchar(&wcval, wstr, attr, attr_to_color_pair(attr), NULL);
         ^~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:623:19: error: implicit declaration of function 'mvwadd_wch' [-Werror=implicit-function-declaration]
             rtn = mvwadd_wch(self->win,y,x, &wcval);
                   ^~~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:625:19: error: implicit declaration of function 'wadd_wch' [-Werror=implicit-function-declaration]
             rtn = wadd_wch(self->win, &wcval);
                   ^~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c: In function '_curses_window_addstr_impl':
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:704:19: error: implicit declaration of function 'mvwaddwstr' [-Werror=implicit-function-declaration]
             rtn = mvwaddwstr(self->win,y,x,wstr);
                   ^~~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:706:19: error: implicit declaration of function 'waddwstr' [-Werror=implicit-function-declaration]
             rtn = waddwstr(self->win,wstr);
                   ^~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c: In function '_curses_window_addnstr_impl':
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:787:19: error: implicit declaration of function 'mvwaddnwstr' [-Werror=implicit-function-declaration]
             rtn = mvwaddnwstr(self->win,y,x,wstr,n);
                   ^~~~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:789:19: error: implicit declaration of function 'waddnwstr' [-Werror=implicit-function-declaration]
             rtn = waddnwstr(self->win,wstr,n);
                   ^~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c: In function '_curses_window_get_wch_impl':
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:1360:14: error: implicit declaration of function 'wget_wch' [-Werror=implicit-function-declaration]
         ct = wget_wch(self->win ,&rtn);
              ^~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:1363:14: error: implicit declaration of function 'mvwget_wch' [-Werror=implicit-function-declaration]
         ct = mvwget_wch(self->win, y, x, &rtn);
              ^~~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c: In function '_curses_window_insstr_impl':
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:1705:19: error: implicit declaration of function 'mvwins_wstr' [-Werror=implicit-function-declaration]
             rtn = mvwins_wstr(self->win,y,x,wstr);
                   ^~~~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:1707:19: error: implicit declaration of function 'wins_wstr' [-Werror=implicit-function-declaration]
             rtn = wins_wstr(self->win,wstr);
                   ^~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c: In function '_curses_window_insnstr_impl':
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:1790:19: error: implicit declaration of function 'mvwins_nwstr' [-Werror=implicit-function-declaration]
             rtn = mvwins_nwstr(self->win,y,x,wstr,n);
                   ^~~~~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:1792:19: error: implicit declaration of function 'wins_nwstr' [-Werror=implicit-function-declaration]
             rtn = wins_nwstr(self->win,wstr,n);
                   ^~~~~~~~~~
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c: In function '_curses_unget_wch':
/home/tina/Desktop/tina-V83x/out/v831-YuzukiIRC/compile_dir/target/Python-3.8.5/Modules/_cursesmodule.c:4243:29: error: implicit declaration of function 'unget_wch' [-Werror=implicit-function-declaration]
     return PyCursesCheckERR(unget_wch(wch), "unget_wch");
                             ^~~~~~~~~
cc1: some warnings being treated as errors

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_tkinter              _uuid                 nis                
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                  zlib                                     


Failed to build these modules:
_curses                 

离线

楼主 #1 2022-11-22 22:11:20

rtqq
会员
注册时间: 2022-07-02
已发帖子: 11
积分: 11

Re: 全志V831 在SDK中编译python3.8 报错

定位到原因,无法构建
Failed to build these modules:
_curses            _curses_panel
网上说要安装libncurses-dev,在配置里面没有这个选项,在配置中libncurses、相关的都勾选了

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn