Ask Your Question
1

OpenCV4Android sample: "Type 'DetectionBasedTracker' could not be resolved"

asked 2012-09-29 09:11:31 -0600

ddd gravatar image

updated 2012-10-01 08:37:07 -0600

Hi guys... I've tried the solution posted here, but I still get the above error that the std symbol isn't found. Also "Type 'DetectionBasedTracker' could not be resolved". Building the .so works. As long as I don't open anything in 'jni'

my paths & symbols are:

${ProjDirPath}/../../sdk/native/jni/include
${NDKROOT}/platforms/android-14/arch-arm/usr/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.4.3/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi-v7a/include

I have ndk-r8 (also tried with r7) and I also have tried to use "android-9" or "/gnu-libstdc++/4.4.3" eclipse indigo

any suggestions? thx in advance

EDIT: i have now installed a fresh version of eclipse (since i wasn't able to remove cdt completely) - the JUNO 32bit Version JavaEE and reinstalled ADT and CDT. I changed to MinGW GCC Toolchain and included the above Includes.

NOW it resolves the std but the Type 'DetectionBasedTracker' could not be resolved" is still there.. What to do?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2012-10-01 15:50:45 -0600

ddd gravatar image

i changed smthg in the detection_based_tracker file .. the compiler i use seems to have problems with the pragma once

//#pragma once
//#if defined(__linux__) || defined(LINUX) || defined(__APPLE__) || defined(ANDROID)

#ifndef __OPENCV_DETECTION_BASED_TRACKER_H_
#define __OPENCV_DETECTION_BASED_TRACKER_H_

after i had renewed the index with the modified file the symbol could be resolved.

edit flag offensive delete link more
0

answered 2013-10-10 04:28:21 -0600

Try defining symbol ANDROID=1

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-09-29 09:11:31 -0600

Seen: 2,616 times

Last updated: Oct 10 '13