X264在龙芯3A5000的编译

修改方法

1)./configure 执行配置脚本,若出现“configure: error: cannot guess build type; you must specify one”
执行2)步骤,如果未出现报错,直接编译安装。
2)修改源码包中的配置文件config.guess。增加loongarch选项:
loongarch*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
增加位置:“mips*:Linux:*:*)”语句之前。大概838 --h
3)./configure
4) make && make install

默认是编译成静态库

编译成动态库
./configure --disable-asm --enable-shared --enable-pic

posted @ 2021-09-10 11:17  DMCF  阅读(447)  评论(0编辑  收藏  举报