Giter Site home page Giter Site logo

Comments (16)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Thanks it work's

Original comment by [email protected] on 31 Mar 2013 at 5:37

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
How compile using Cygwin?

Original comment by [email protected] on 8 Aug 2013 at 10:00

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024


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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from ipcamera-for-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.