MurthySugumar / andar

Automatically exported from code.google.com/p/andar
0 stars 0 forks source link

Missing "AR" library #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey!

OpenGLCamActivity crashes. I tracked down the Exception to this line in
MarkerInfo.java:

System.loadLibrary( "ar" );

I guess this is where jni comes in handy. Could you provide some
instructions how to use the generated header files?

Thanks in advance,
Daniel

Original issue reported on code.google.com by ellion0815@googlemail.com on 14 Mar 2010 at 3:31

GoogleCodeExporter commented 9 years ago
1. Install the android NDK
2. Make a symlink from your eclipse project folder (should be called 
AndOpenGLCam) to
the ndk apps folder 
4. change line 2 of Application.mk to APP_PROJECT_PATH := $(call my-dir)
3. in the root of the NDK folder run make APP=AndOpenGLCam
4. refesh your project in eclipse
5. If everything went smoothly your libs folder will have the .so files that 
jni needs

also note that you need to put some data files on your sd card.  If you look in
arToolKit.c it it shows the files you need at the top.

camera_para.dat is the settings for your camera

the patt.hero file is the marker pattern to search for

Original comment by darre...@gmail.com on 15 Mar 2010 at 8:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
did you manage to compile the native libraries?
I'll close this issue for now.
Feel free to contact me if you got further problems.

Original comment by tdomhan on 26 Mar 2010 at 12:35