python3.8.6移植到am335
./configuremake python Parser/pgenmv python hostpythonmv Parser/pgen Parser/hostpgenmake distclean指定编译器CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ AR=arm-linux-gnueabihf-arCC=arm-linux-gnue
./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
如果出现此问题则删除lsb_release文件夹
find / -name lsb_release
rm -rf /usr/bin/lsb_release
更多推荐
所有评论(0)