billmccord / OpenCV-Android

A project for porting and optimizing OpenCV for Google's Android OS
http://billmccord.github.com/OpenCV-Android/
444 stars 159 forks source link

undefined reference #21

Open jija opened 13 years ago

jija commented 13 years ago

I'm new in NDK and I see this problem

E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvcolor.o): In function icvBGRx2Lab_32f_CnC3R': E:/android-opencv/testOpenCV/jni/cv/src/cvcolor.cpp:1880: undefined reference tocvCbrt' E:/android-opencv/testOpenCV/jni/cv/src/cvcolor.cpp:1885: undefined reference to cvCbrt' E:/android-opencv/testOpenCV/jni/cv/src/cvcolor.cpp:1891: undefined reference tocvCbrt' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvcolor.o): In function icvBGRx2Luv_32f_CnC3R': E:/android-opencv/testOpenCV/jni/cv/src/cvcolor.cpp:2012: undefined reference tocvCbrt' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvsurf.o): In function cvExtractSURF': E:/android-opencv/testOpenCV/jni/cv/src/cvsurf.cpp:299: undefined reference tocvMinS' E:/android-opencv/testOpenCV/jni/cv/src/cvsurf.cpp:384: undefined reference to cvCartToPolar' E:/android-opencv/testOpenCV/jni/cv/src/cvsurf.cpp:408: undefined reference tocvFastArctan' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvimgwarp.o): In function cvWarpPerspective': E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:1395: undefined reference tocvInvert' E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:1446: undefined reference to cvInvert' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvimgwarp.o): In functioncvWarpAffine': E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:1122: undefined reference to cvInvert' E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:1123: undefined reference tocvGEMM' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvimgwarp.o): In function cvGetAffineTransform': E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:1595: undefined reference tocvSolve' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvimgwarp.o): In function cvGetPerspectiveTransform': E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:1534: undefined reference tocvSolve' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvimgwarp.o): In function cvLogPolar': E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:2228: undefined reference tocvCartToPolar' E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:2233: undefined reference to cvLog' E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:2228: undefined reference tocvCartToPolar' E:/android-opencv/testOpenCV/jni/cv/src/cvimgwarp.cpp:2233: undefined reference to cvLog' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvtemplmatch.o): In functionicvCrossCorr(void const, void const, void, CvPoint)': E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:119: undefined reference to cvGetOptimalDFTSize' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:122: undefined reference tocvGetOptimalDFTSize' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:134: undefined reference to cvGetNumThreads' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:122: undefined reference tocvGetOptimalDFTSize' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:184: undefined reference to cvDFT' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:198: undefined reference tocvGetThreadNum' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:253: undefined reference to cvDFT' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:257: undefined reference tocvMulSpectrums' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:258: undefined reference to cvDFT' E:/android-opencv/testOpenCV/obj/local/armeabi/libcv.a(cvtemplmatch.o): In functioncvMatchTemplate': E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:439: undefined reference to cvAvgSdv' E:/android-opencv/testOpenCV/jni/cv/src/cvtemplmatch.cpp:430: undefined reference tocvAvg' collect2: ld returned 1 exit status make: ** [/cygdrive/e/android-opencv/testOpenCV/obj/local/armeabi/libopencv.so] Error 1

How to solve this problem.

PS. I use run cygwin in Eclipse to build