Our library should be created outside of our project and it should be called with in our project from outside? please give any suggestion."I already know how to create so file and all.But not able to call that .so file into a different android project".please help me..
-
As far as i understand you have to have jni binding with your library(.so file) from java. In usual case you should create a jar library file along with your .so library. – saiful103a Nov 19 '13 at 04:51
-
thanks,i tried this but its still showing error,could you pls elaborate it – user2995210 Nov 19 '13 at 06:04
1 Answers
Your questions looks like this question,
"I already know how to create so file and all.But not able to call that .so file into a different android project"
In another project, you should :
1 - Add folder jni/libs/*.so
2 - Use "Right-click mouse" -> Android Tools -> Add native support -> Set name of file *.cpp
3 - Two files : *.cpp and Android.mk appeared.
4 - Use Cygwin to build & compile *.so into the project.
p/s :
You should also define content in the file Android.mk exactly before built.
Application.mk is used to build to which folder.
APP_PLATFORM also important too, should define exactly.
Follow this image for more details, about the result.
Thanks,
p/s : When you have done, you can call file **.so* from folder jni by using the following code :
static {
System.loadLibrary("ffmpeg");
}
DOWNLOAD .so FILE
It is where do you can download .so file while executing FFMPEG.
-
I tried but is not showing any .so file to be selected from choose file option... – user2995210 Nov 19 '13 at 06:07
-
-
hi alex how to exeucte command using your update ffmpeg.so file(https://www.dropbox.com/s/xtlieuxn5e5xzve/ffmpeg.so) Plz help . i m tried but getting error exit value -4 error – Sanket990 Mar 17 '14 at 18:29
-
[How to build ffmpeg](https://vec.io/posts/how-to-build-ffmpeg-with-android-ndk) – Huy Tower Mar 18 '14 at 03:31
-
Can please provide .so file for executing FFMpeg command in my android app. – Butani Vijay Mar 19 '15 at 11:00
-
@ButaniVijay Already edit the answer, please check again. Thank you. – Huy Tower Mar 20 '15 at 01:28
-
I don't have NDK can i directly use .so file in my project like adding .so file in libs folder – Butani Vijay Mar 20 '15 at 04:09
-
-
You don't know which link? http://www.mediafire.com/download/81luapelsre53fl/ffmpeg.so – Huy Tower Mar 20 '15 at 08:33
-
don't have NDK can i directly use .so file in my project like adding .so file in libs folder. – Butani Vijay Mar 20 '15 at 13:04
-
-
@HuyTower I don't understand the command screenshot you have given here? Can you explain exactly how to use or write this command? I am confused here and can't seem to move forward here. Also, I am trying to find the option you suggested in step 2. I can't seem to find that option. Sorry I am new to development and trying to develop an application that has size issues due to Writing Minds library for FFMpeg – Kartik Nov 13 '19 at 06:58
-
@Kartik : Ah you need find out about ndk first, then you know which things need to build into *.so file as the answer. – Huy Tower Nov 14 '19 at 09:23
-