在 Eclipse 里调试 Speex
来源:互联网 发布:淘宝侵权投诉 编辑:程序博客网 时间:2024/05/17 23:31
在 Android 里面可以编译 libspeex 的 jni 库文件,然后在 App 里调试,有时调试一些小的模块时并不方便。
可以在 Eclipse 里写一些小的java程序来测试,这时要使用 speex jni 怎么办呢?
因为本来就有 speex 的android jni 代码,在 linux 下直接 g++ 编译那些源文件成 so 就可以了,然后复制到 /usr/lib/jni 目录下,就可以引入java文件测试了,是不是很简单呢。
例子: Speex jni 编译命令: 你可以修改speex_jni.c里的java类路径。
gcc -fPIC -DFIXED_POINT -DUSE_KISS_FFT -DEXPORT="" -UHAVE_CONFIG_H -I /usr/lib/jvm/java-8-openjdk-amd64/include/ -I /usr/lib/jvm/java-8-openjdk-amd64/include/linux/ -I ./include -shared -o libspeex_jni.so speex_jni.c \
./libspeex/bits.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/filters.c \
./libspeex/gain_table_lbr.c \
./libspeex/gain_table.c \
./libspeex/hexc_10_32_table.c \
./libspeex/hexc_table.c \
./libspeex/high_lsp_tables.c \
./libspeex/kiss_fft.c \
./libspeex/kiss_fftr.c \
./libspeex/lpc.c \
./libspeex/lsp_tables_nb.c \
./libspeex/lsp.c \
./libspeex/ltp.c \
./libspeex/modes_wb.c \
./libspeex/modes.c \
./libspeex/nb_celp.c \
./libspeex/quant_lsp.c \
./libspeex/sb_celp.c \
./libspeex/smallft.c \
./libspeex/speex_callbacks.c \
./libspeex/speex_header.c \
./libspeex/speex.c \
./libspeex/stereo.c \
./libspeex/vbr.c \
./libspeex/vorbis_psy.c \
./libspeex/vq.c \
./libspeex/window.c \
- 在 Eclipse 里调试 Speex
- 在Eclipse里调试UiAutomator
- 在Eclipse里调试JSP文件
- 编绎调试HotSpot JVM及在Eclipse里调试
- 编绎调试 HotSpot JVM 及在 Eclipse 里调试
- 在eclipse里使用Genymotion模拟器进行调试
- [Android基础知识] 如何在eclipse里设置真机调试
- 在SharpDevelop里调试程序
- 在Eclipse里调试javaApplication时出现UnsupportedClassVersionError 错误的原因
- 在eclipse中的调试
- 在eclipse调试方法
- eclipse上调试android里的程序。
- eclipse里使用tomcat调试web
- 在eclipse里连接数据库
- 在eclipse里安装pydev
- 在 Eclipse 里使用 PlantUML
- 在Eclipse里修改端口
- 在eclipse里配置structs2
- 浅析学会搭建内核Kbuild
- 跨浏览器tab页互动,localStorage
- 前缀、中缀、后缀表达式转换
- 用jquer ajax获取多选框的值 传到后台实现删除功能
- 第四周项目二建设“单链表”算法库
- 在 Eclipse 里调试 Speex
- ssm
- bootstrap-datetimepicker.js的兼容性问题(IE10兼容模式无法弹出窗口)
- Python3 SM3 encoder
- js中获取时间new date()的用法
- 安卓Eclipse项目导入Android Studio完美解决方案
- 12.1 第一个Spirng应用:HelloSpirng
- 第四周项目三(3)—判断单链表是否递增
- hibernate案例数据库增加数据