Comments (16)
It seems that you need to build the jni libraries in the jni folder using the
Android NDK.
Original comment by [email protected]
on 31 Mar 2013 at 5:21
from ipcamera-for-android.
Thanks it work's
Original comment by [email protected]
on 31 Mar 2013 at 5:37
from ipcamera-for-android.
I have successfully compiled the build jni libraries. But after doing that,
when I install the app on my phone i get:
W/dalvikvm(30891): threadid=1: thread exiting with uncaught exception
(group=0x40a351f8)
E/AndroidRuntime(30891): FATAL EXCEPTION: main
E/AndroidRuntime(30891): java.lang.UnsatisfiedLinkError: Couldn't load
mp3encoder: findLibrary returned null
E/AndroidRuntime(30891): at java.lang.Runtime.loadLibrary(Runtime.java:365)
E/AndroidRuntime(30891): at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime(30891): at
teaonly.droideye.MainActivity.onCreate(MainActivity.java:108)
E/AndroidRuntime(30891): at
android.app.Activity.performCreate(Activity.java:4465)
E/AndroidRuntime(30891): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/AndroidRuntime(30891): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
E/AndroidRuntime(30891): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/AndroidRuntime(30891): at
android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime(30891): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime(30891): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(30891): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(30891): at
android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(30891): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(30891): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(30891): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
E/AndroidRuntime(30891): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
E/AndroidRuntime(30891): at dalvik.system.NativeStart.main(Native Method)
Thanks!
Original comment by [email protected]
on 11 Jun 2013 at 8:59
from ipcamera-for-android.
hwy how to compile jni libraries using ndk ? im new to this please help
Original comment by [email protected]
on 21 Jul 2013 at 11:01
from ipcamera-for-android.
[deleted comment]
from ipcamera-for-android.
How compile using Cygwin?
Original comment by [email protected]
on 8 Aug 2013 at 10:00
from ipcamera-for-android.
[deleted comment]
from ipcamera-for-android.
I am new to NDK When I am trying to compile the library its giving me error
C:\Users\PWDC9615\git\android-eye>ndk-build
"Compile thumb : mp3encoder <= bitstream.c
jni/libmp3lame/bitstream.c: In function 'do_gain_analysis':
jni/libmp3lame/bitstream.c:992:24: warning: unused variable 'rov'
[-Wunused-variable]
jni/libmp3lame/bitstream.c:991:32: warning: unused variable 'rsv'
[-Wunused-variable]
jni/libmp3lame/bitstream.c:990:34: warning: unused variable 'cfg'
[-Wunused-variable]
"Compile thumb : mp3encoder <= fft.c
"Compile thumb : mp3encoder <= id3tag.c
"Compile thumb : mp3encoder <= mpglib_interface.c
"Compile thumb : mp3encoder <= presets.c
In file included from jni/libmp3lame/presets.c:29:0:
jni/libmp3lame/set_get.h:24:18: fatal error: lame.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi/objs/mp3encoder/libmp3lame/presets.o] Error 1
C:\Users\PWDC9615\git\android-eye>
Original comment by [email protected]
on 22 Sep 2013 at 11:20
from ipcamera-for-android.
[deleted comment]
from ipcamera-for-android.
In set_get.h replace
#include <lame.h>
with
#include “lame.h”
Original comment by [email protected]
on 15 Jan 2014 at 9:59
from ipcamera-for-android.
hi im new to android having a similar problem .. i have installed ndk but dont
know how to instantiate it with application im getting the following error any
help would be gratefully appreciated ..
03-22 17:32:01.280: E/AndroidRuntime(12214): java.lang.UnsatisfiedLinkError:
Couldn't load mp3encoder from loader
dalvik.system.PathClassLoader[dexPath=/data/app/teaonly.droideye-2.apk,libraryPa
th=/data/app-lib/teaonly.droideye-2]: findLibrary returned null
Original comment by [email protected]
on 22 Mar 2014 at 5:34
from ipcamera-for-android.
[deleted comment]
from ipcamera-for-android.
I resolved this issue by rebuild the JNI code for all those beginners like me
who are not NDK friendly,
All you need to install the NDK from below URL:
http://developer.android.com/tools/sdk/ndk/index.html
Please make sure that you have set the environment variables like
NDK_HOME -- \android-ndk-r9 {directory must contain `ndk-build` file}
Path -- %NDK_HOME%
open the command prompt go to the directory where JNI code exist, mine under
the below path
cd C:{rootpath}\android-eye-master\jni
C:{rootpath}\android-eye-master\jni>ndk-build
Then refresh your android project in eclipse and run as Android Application.
Original comment by [email protected]
on 16 Jul 2014 at 6:08
from ipcamera-for-android.
[deleted comment]
from ipcamera-for-android.
[deleted comment]
from ipcamera-for-android.
I had the same issue and I solved it by building JNI with ndk. The following
link shows how to setup the project properties to build with ndk-build. Note
that you might replace ndk-build shown in the tutorial with the executable
ndk-build.cmd if you are running eclipse on windows.
http://mobilepearls.com/labs/ndk-builder-in-eclipse/
Hope Y'all find it helpful.
Best,
Muhammed
Original comment by [email protected]
on 21 Jul 2014 at 3:15
from ipcamera-for-android.
Related Issues (20)
- Nexus 7 - Streaming Issues HOT 4
- NDK Library Issue HOT 2
- Cannot build lib .so
- .
- NEED THE WORKING SOURCE CODE OF THIS APPLICATION
- Patch for /wiki/tested_phone.wiki
- Super Bowl47 live Baltimore Ravens vs San Francisco 49ers live Stream NFL Super Bowl XLVII Online On PC HOT 1
- HOT LINK!@!Baltimore Ravens vs San Francisco 49ers live Stream NFL Super Bowl XLVII Online On PC
- KHALI MOSA San Francisco 49ers vs Baltimore Ravens live Stream NFL Super Bowl XLVII Online On PC HOT 2
- What is the matter? Your phone do not support MP4 ...
- Error in AndroidManifest.xml String types not allowed at configChanges
- Audio is not playing on Nexus 7
- Not Streaming on 2.3 and up
- Camera does not work for 3G/4G when Wi-Fi is off
- I want to disable shutter sound, cause i can't make timelapse video silently
- Stream Not found error on server.How to pass the packet data of live.flv to server
- Not compile Eclipse-NDK7
- Video Recording Problem
- JNI failure on CTS test version r1.95
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipcamera-for-android.