简体   繁体   English

移植C ++库-openSMILE到Android

[英]Porting a C++ library - openSMILE to Android

I want guidance on how to port the opensource openSMILE http://opensmile.sourceforge.net/ library which is in C++ to Android. 我想要有关如何将C ++的开源openSMILE http://opensmile.sourceforge.net/库移植到Android的指导。 Specifically how should I use SWIG to create the caller code in JAVA and how should I use the Android-NDK to create the JNI in my android app? 具体来说,我该如何使用SWIG在JAVA中创建调用者代码,以及如何在我的android应用中使用Android-NDK创建JNI? I have absolutely no experience with Android programming so I am not sure of how to start. 我完全没有Android编程方面的经验,所以我不确定如何开始。

 how to port the opensource openSMILE.?

You can download whole source code of that library and then cross compile it for your platform then install it in android stack or use it in jni 您可以下载该库的全部源代码,然后针对您的平台进行交叉编译,然后将其安装在android堆栈中或在jni中使用

 Specifically how should I use SWIG to create the caller code in JAVA..?

Here you need to write wrapper for each API of that library in jni c then you will have java exported API of that library which you can use in your android application. 在这里,您需要在jni c中为该库的每个API编写包装程序,然后将获得该库的Java导出API,您可以在android应用程序中使用该API。

Please see Version 2.3. 请参阅2.3版。 of openSMILE from http://opensmile.audeering.com/ . 可以从http://opensmile.audeering.com/获得openSMILE。

It contains an Android Studio example project with JNI interface and build scripts to compile library and binary for Android with NDK. 它包含一个具有JNI界面的Android Studio示例项目,并构建了脚本以编译具有NDK的Android的库和二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM