ITeye博客

linbpng 开启neon指令优化

HEXLee · 2013-04-10 18:35 · 开发工具 Shell · 移动开发 · Markdown

libpng version: 1.6.1

Ref: http://mortoray.com/2012/08/21/android-ndk-cross-compile-setup-libpng-and-freetype/

-----------------------------------------------------------------------------------------

 

export PLATFORM_PREFIX=/tmp/opt/android-ext

 

# armv5

export NDK_PLATFORM=android-5

# armv7

export NDK_PLATFORM=android-8

# x86

export NDK_PLATFORM=android-9

 

# arm5 armv7

$NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=$NDK_PLATFORM  --install-dir=$PLATFORM_PREFIX

# x86

$NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=$NDK_PLATFORM  --install-dir=$PLATFORM_PREFIX --toolchain=x86-4.6

 

export PATH=$PLATFORM_PREFIX/bin:$PATH

 

# armv5 x86

./configure --host=arm-linux-androideabi --prefix=$PLATFORM_PREFIX

# armv7

./configure --host=arm-linux-androideabi --enable-arm-neon=on --prefix=$PLATFORM_PREFIX 

Edit arm/filter_neon.S(armv7 only): delete line 19-20, delete last line

 

make

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。