./configure
make python Parser/pgen
mv python hostpython
mv Parser/pgen Parser/hostpgen
make distclean

指定编译器

CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ AR=arm-linux-gnueabihf-ar 
CC=arm-linux-gnueabihf-gcc
CXX=arm-linux-gnueabihf-g++
AR=arm-linux-gnueabihf-ar 
RANLIB=arm-linux-gnueabihf-ranlib

配置configure
./configure --host=arm-linux-gnueabihf --build=x86_64-linux-gnu --target=arm-linux-gnueabihf --prefix=/python --disable-ipv6 ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=yes
make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED="arm-linux-gnueabihf-gcc -shared" CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE_TARGET=yes HOSTARCH=arm-linux-gnueabihf BUILDARCH=x86_64-linux-gnu

打包

make -i install HOSTPYTHON=./hostpython BLDSHARED="arm-linux-gnueabihf-gcc -shared" CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE_TARGET=yes prefix=/opt/python3.8.6/Python-3.8.6/_install

python3.8.6移植到am335

如果出现此问题则删除lsb_release文件夹

find / -name lsb_release 

rm -rf /usr/bin/lsb_release

相关文章:

  • 2021-07-02
  • 2021-10-25
  • 2021-10-26
  • 2021-09-04
  • 2021-04-29
  • 2021-12-26
  • 2021-12-21
  • 2021-05-25
猜你喜欢
  • 2021-09-14
  • 2021-09-07
  • 2021-06-14
  • 2022-12-23
  • 2021-04-27
  • 2021-10-28
  • 2021-04-29
相关资源
相似解决方案