解决NDK交叉编译 selected processor does not support ARM mode libtheora的错误

来源:互联网 发布:北交大知行 编辑:程序博客网 时间:2024/06/01 08:31

下载最新的libtheora, wget http://downloads.xiph.org/releases/theora/libtheora-1.2.0alpha1.tar.gz

解压缩,然后使用如下configure来编译

#!/bin/sh

BUILD_PATH=/home/zangcf/ffmpeg/ffmpeg_arm/ffmpeg_build

CC_PATH=/opt/android-ndk-toolchain/bin/arm-linux-androideabi-gcc

CPP_PATH=/opt/android-ndk-toolchain/bin/arm-linux-androideabi-cpp

./configure \

  --prefix=$BUILD_PATH \

  --build=arm \

  CC=$CC_PATH  \

  CPP=$CPP_PATH \

  --host=arm-linux \

  --enable-static \

  --with-ogg=/home/zangcf/ffmpeg/ffmpeg_arm/ffmpeg_build \

  AS=/opt/android-ndk-toolchain/bin/arm-linux-androideabi-as \

  AR=/opt/android-ndk-toolchain/bin/arm-linux-androideabi-ar \

然后make,结果出现如下错误

selected processor does not support ARM mode

很多很多

通过对编译文件的仔细研究,发现只要加一个

--disable-asm

配置选项,就可以完全解决这个问题

0 0
原创粉丝点击