Re: KeyPoint.pt could not be resolved and size_t is ambiguous

406 views
Skip to first unread message

Andrey Pavlenko

unread,
Nov 21, 2012, 9:50:16 AM11/21/12
to android...@googlegroups.com
These are problems of Eclipse CDT sources parser and doesn't affect code compilation.
I'd suggest you update the include folders list for C and C++ sources (Project Properties -> C/C++ General -> Paths and Symbols -> GNU C and GNU C++)
  • ${NDKROOT}/platforms/android-9/arch-arm/usr/include
  • ${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/include
  • ${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include
  • ${ProjDirPath}/../../sdk/native/jni/include

Борис Васильев

unread,
Nov 21, 2012, 5:33:31 AM11/21/12
to android...@googlegroups.com
I have the same problem now, so I've created a question on stackoverflow: 


2012/11/21 Dávid Pásztor <pasz...@gmail.com>
Hi,
I am usening opencv 2.4.2 with eclipse and android ndk r8c on win7. Eclipse found some problems in the jni_part.cpp file of Tutorial 3:

    for( size_t i = 0; i < v.size(); i++ )circle(mbgra, Point(v[i].pt.x, v[i].pt.y), 10, Scalar(0,0,255,255));

The problems:

'size_t' is ambiguous '
Field 'pt' could not be resolved
Field 'x' could not be resolved
Field 'y' could not be resolved

I think it is a linking problem, or I have to include something, but I don't know what. Any idea?

--
 
 
 



--
С уважением,
Борис Васильев
GlowByte Consulting

Reply all
Reply to author
Forward
0 new messages