Paddle-Lite icon indicating copy to clipboard operation
Paddle-Lite copied to clipboard

With_python=ON,x86上交叉编译armv7/armv8 编译报错 fatal error: aarch64-linux-gnu/python3.5m/pyconfig.h: No such file or directory

Open markluofd opened this issue 2 years ago • 3 comments

PaddleLite v2.11 Host环境: Ubuntu16.04 交叉环境

build_linux.sh配置: ARCH=armv7 WITH_PYTHON=ON PY_VERSION="3.5"

最后报错信息如下: image

想请问交叉编译 with_python=ON,这个报错应该怎么处理?

markluofd avatar Aug 16 '22 07:08 markluofd

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

paddle-bot[bot] avatar Aug 16 '22 07:08 paddle-bot[bot]

补充,参考 https://its201.com/article/m0_57459724/124209377 这篇帖子,在容器内重新编译安装python3.7后,交叉编译armv8可以了,但是交叉编译armv7报了新的错误 image

想请问有办法在with_python=on的情况下,x86上交叉编译armv7的wheel包吗?

markluofd avatar Aug 16 '22 09:08 markluofd

我把开发板上的文件/usr/lib/aarch64-linux-gnu/python3.6m复制到主机上的相同文件夹,可以通过编译,编译出来的文件也是aarch64的,但是编译出的whl文件还是标记成了x86_64, 有一个文档里提到了一句现在还不支持交叉编译python包,要在开发板上直接编译,但是那个文件我找不到了,感觉paddle的文档有点乱。。。

Aostas avatar Aug 27 '22 07:08 Aostas