Ask Your Question
2

Errors running builder 'CDT Builder' when trying to build OpenCV for android samples

asked 2012-07-08 21:46:40 -0600

NAYOSO gravatar image

updated 2012-09-30 04:21:23 -0600

Kirill Kornyakov gravatar image

Hello guys I'm trying to learn about openCV in android I've already following the instruction given http://docs.opencv.org/doc/tutorials/introduction/androidbinarypackage/androidbinarypackageusingwith_NDK.html

but when I'm trying to compile I'm only getting

01:50:14 ** Auto Build of configuration Default for project org.opencv.samples.fd.FdActivity 
** "C:\Android\android-ndk-r8\ndk-build.cmd" 
Install: libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so

01:50:14 Build Finished (took 184ms)

in the console and I'm also get an error

Errors occurred during the build. Errors running builder 'CDT Builder' on project 
org.opencv.samples.fd.FdActivity. Internal error building project 
org.opencv.samples.fd.FdActivity configuration Default java.lang.NullPointerException Internal 
error building project org.opencv.samples.fd.FdActivity configuration Default 
java.lang.NullPointerException

anyone ever encountered this problem before? please help me to solve this problem

thank you

edit retag flag offensive close merge delete

Comments

Hello andrey pavlenko thank you for your answer,sorry I didn't know how to comment in your answer but I've tried it and I'm still getting the same error,I'm using windows 7 64 bit Eclipse Juno ADT 20.0 SDK 11 and NDK r8 how about it? I can run the other samples except face detection,sample 3 and sample 4 that use C code,thanks

NAYOSO gravatar imageNAYOSO ( 2012-07-09 21:46:47 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-07-29 23:34:01 -0600

NAYOSO gravatar image

Finally I found a way to this problem I uninstall my eclipse CDT 8.1 and manually install eclipse CDT 8.0.2 there is a bug in the CDT 8.1 -> http://code.google.com/p/android/issues/detail?id=33788 thanks all!

edit flag offensive delete link more

Comments

Updating to 8.1.1.2 fix the error too

Vgoni gravatar imageVgoni ( 2012-10-29 06:26:03 -0600 )edit
0

answered 2012-07-09 03:47:16 -0600

Andrey Pavlenko gravatar image

I faced similar issue when modified Eclipse workspace outside Eclipse and then opened it in Eclipse again. So I suggest you create a new workspace and import OpenCV library with samples there.

Also you'd better specify your environment - OS/Eclipse/SDK/ADT/NDK versions.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-08 21:46:40 -0600

Seen: 5,305 times

Last updated: Jul 29 '12