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

2,603 views
Skip to first unread message

Andrey Pavlenko

unread,
Jul 9, 2012, 3:27:53 AM7/9/12
to android...@googlegroups.com
I'd suggest you create a new Eclipse workspace and import OpenCV with samples there.
BTW, what OS/Eclipse/ADT/SDK/NDK do you use?

NAYOSO

unread,
Jul 9, 2012, 10:27:23 PM7/9/12
to android...@googlegroups.com


UTC +7 Andrey Pavlenko 27 minutes and 53 seconds when 14 Monday, July 09, 2012:
I'd suggest you create a new Eclipse workspace and import OpenCV with samples there.
BTW, what OS / Eclipse / ADT / SDK / NDK do you use?

Hello thank you andrey I'll try it and report it to you the result, 
I'm using windows 7 64 bit Eclipse Juno ADT 20.0 SDK 11 and NDK r8 how about it?
thank you

Phenom

unread,
Jul 26, 2012, 5:30:10 AM7/26/12
to android...@googlegroups.com
Hey

I don't know if they've found a solution but there is a bug in CDT right now: Info thats been causing some people problems including myself, but there is a work around in there.

Also i had loads of problems similar until I included the following directories into my Project Properties->C/C++ general->Path and Symbols->includes... but don't know if that will help you:

${NDKROOT}/platforms/android-9/arch-arm/usr/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/include
${NDKROOT}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/lib/gcc/arm-linux-androideabi/4.4.3/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include
${OPENCVROOT}\sdk\native\jni\include

Also note that the directory structure has changed slightly in the latest NDK so if you try including the above paths you need an extra folder in there (${NDKROOT}\sources\cxx-stl\gnu-libstdc++\4.6\include).

Hope some of that helps

Will

On Wednesday, 25 July 2012 05:40:43 UTC+1, Saranga De Silva wrote:
Any Update on this issue. Cz im having the same issue.
Thanx

On Monday, July 9, 2012 6:27:03 AM UTC+5:30, NAYOSO wrote:

Hello Guys I'm trying to Learn about opencv in Android I've already given Following the instruction http://docs.opencv.org/trunk/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html # android-binary-package-with-ndk

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

NAYOSO

unread,
Jul 26, 2012, 10:53:33 PM7/26/12
to
Thank you Phenom I'll try that I hope it'll solve my problem
thanks


Niko Niko

unread,
Jul 30, 2012, 12:31:36 AM7/30/12
to android...@googlegroups.com
Finally I decide to uninstall the CDT 8.1 and change it to 8.02 
and it works!
thanks all!
Reply all
Reply to author
Forward
0 new messages