NDK 编译 SPEEX
来源:互联网 发布:mac mini 蓝牙 天线 编辑:程序博客网 时间:2024/05/29 02:38
原文地址:http://www.badlogicgames.com/wordpress/?p=1726&cpage=1#comment-109782
下载最新的SPEEX源代码,我的是1.21RC1
1 创建一个 jni目录,将libspeex与include放在jni目录下,即$jni/libspeex ,$jni/include
2 新建Android.mk
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libspeexLOCAL_CFLAGS = -DFIXED_POINT -DUSE_KISS_FFT -DEXPORT="" -UHAVE_CONFIG_HLOCAL_C_INCLUDES := $(LOCAL_PATH)/include LOCAL_SRC_FILES := \./libspeex/bits.c \./libspeex/buffer.c \./libspeex/cb_search.c \./libspeex/exc_10_16_table.c \./libspeex/exc_10_32_table.c \./libspeex/exc_20_32_table.c \./libspeex/exc_5_256_table.c \./libspeex/exc_5_64_table.c \./libspeex/exc_8_128_table.c \./libspeex/fftwrap.c \./libspeex/filterbank.c \./libspeex/filters.c \./libspeex/gain_table.c \./libspeex/gain_table_lbr.c \./libspeex/hexc_10_32_table.c \./libspeex/hexc_table.c \./libspeex/high_lsp_tables.c \./libspeex/jitter.c \./libspeex/kiss_fft.c \./libspeex/kiss_fftr.c \./libspeex/lpc.c \./libspeex/lsp.c \./libspeex/lsp_tables_nb.c \./libspeex/ltp.c \./libspeex/mdf.c \./libspeex/modes.c \./libspeex/modes_wb.c \./libspeex/nb_celp.c \./libspeex/preprocess.c \./libspeex/quant_lsp.c \./libspeex/resample.c \./libspeex/sb_celp.c \./libspeex/scal.c \./libspeex/smallft.c \./libspeex/speex.c \./libspeex/speex_callbacks.c \./libspeex/speex_header.c \./libspeex/stereo.c \./libspeex/vbr.c \./libspeex/vq.c \./libspeex/window.c include $(BUILD_SHARED_LIBRARY)
3 jni目录下新建Application.mk
APP_ABI := armeabi armeabi-v7a
4 在jni/include/speex 目录下 将speex_config_type.h修改为如下
#ifndef __SPEEX_TYPES_H__#define __SPEEX_TYPES_H__typedef short spx_int16_t;typedef unsigned short spx_uint16_t;typedef int spx_int32_t;typedef unsigned int spx_uint32_t;#endif
5 然后在shell终端中到你的jni目录下,运行ndk-build,就可以开始编译了
6 然后就可以看到下图,生成了我们要的libspeex.so啦
7 写一个jni包裹文件,去调用编码和解码函数
8 最后享受吧。。。
这个大牛还上传了自己的工程,在这里下载
I zipped up my jni folder, you can download it here. Just fire up your shell, make sure your NDK is in your $PATH and ndk-build the shit out of it. Enjoy.
- NDK 编译 SPEEX
- 编译speex
- 使用Eclipse+NDK编译arm64-v8a CPU架构的speex.so文件
- 使用Eclipse+NDK编译arm64-v8a CPU架构的speex.so文件
- 使用Eclipse+NDK编译arm64-v8a CPU架构的speex.so文件
- speex 编译(转)
- 编译speex-1.2rc
- 编译speex过程
- iOS编译Speex
- Android studio Gradle使用NDK 示例Speex
- GM8126上交叉编译speex
- Android Speex编译及使用
- VC2010 + speex-1.2rc1 编译
- 编译Speex生成so库文件(android-speex)
- vc2012编译speex (编译通过)
- speex
- speex
- speex
- javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building f
- dentry与inode、dentry_cache
- Lucene.Net系列学习(4)
- Google的免费DNS服务器
- java递归算法参考
- NDK 编译 SPEEX
- linux 枚举网卡IP地址
- 15款提高表格操作的jQuery插件
- Collection(四) Set
- Android 4.0设计规范10大改变
- 获取文件属性
- 如何给Sqlite添加复合主键
- Silverlight - 无畏前行之刀锋战士
- DSP BF531 SLAVE SPI程序引导方式