Ask Your Question

Revision history [back]

couldn't link successfully when i use ndk-build to complile my opencv code on android platform

hi, i use ndk-build to compile my opencv code for android.I have successful experience on the

work.but,today i fail to success.this is my log under ndk-build:

/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_highgui.a(cap_android.o): In

function `CvCapture_Android::convertYUV420i2BGR(int, int, unsigned char const*, cv::Mat&,

bool, bool)': cap_android.cpp:(.text._ZN17CvCapture_Android18convertYUV420i2BGREiiPKhRN2cv3MatEbb+0x124):

undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int,

int)' /cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_androidcamera.a(camera_activity.o):

In function `CameraWrapperConnector::getPathLibFolder()': camera_activity.cpp:(.text._ZN22CameraWrapperConnector16getPathLibFolderEv+0x38): undefined

reference to `dladdr' collect2: ld returned 1 exit status /cygdrive/d/android-ndk-r4-crystax/build/core/build-shared-library.mk:38: recipe for target

`/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so' failed make: * [/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so] Error 1

could any expert tell me what is problem?several weeks ago,i compile opencv code successfully

which include no cvcapture func .My current c++ code uses cvcapture func and could not link

successfully.any message would be appreciated.i uses D:\OpenCV-2.3.1-beta1-android-bin.Is it a

bug in beta?

couldn't link successfully when i use ndk-build to complile my opencv code on android platform

hi, i use ndk-build to compile my opencv code for android.I have successful experience on the

work.but,today i fail to success.this is my log under ndk-build:

/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_highgui.a(cap_android.o): In

function `CvCapture_Android::convertYUV420i2BGR(int, int, unsigned char const*, cv::Mat&,

bool, bool)': cap_android.cpp:(.text._ZN17CvCapture_Android18convertYUV420i2BGREiiPKhRN2cv3MatEbb+0x124):

undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int,

int)' /cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_androidcamera.a(camera_activity.o):

In function `CameraWrapperConnector::getPathLibFolder()': camera_activity.cpp:(.text._ZN22CameraWrapperConnector16getPathLibFolderEv+0x38): undefined

reference to `dladdr' collect2: ld returned 1 exit status /cygdrive/d/android-ndk-r4-crystax/build/core/build-shared-library.mk:38: recipe for target

`/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so' failed make: * [/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so] Error 1

could any expert tell me what is problem?several weeks ago,i compile opencv code successfully

which include no cvcapture func .My current c++ code uses cvcapture func and could not link

successfully.any message would be appreciated.i uses D:\OpenCV-2.3.1-beta1-android-bin.Is D:\OpenCV-2.3.1-android-bin.Is it a

bug in beta??

click to hide/show revision 3
No.3 Revision

couldn't link successfully when i use ndk-build to complile my opencv code on android platform

hi, i use ndk-build to compile my opencv code for android.I have successful experience on the

work.but,today i fail to success.this is my log under ndk-build:

/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_highgui.a(cap_android.o):  In 

function `CvCapture_Android::convertYUV420i2BGR(int, 'CvCapture_Android::convertYUV420i2BGR(int, int, unsigned char const*, cv::Mat&,

bool, bool)': cap_android.cpp:(.text._ZN17CvCapture_Android18convertYUV420i2BGREiiPKhRN2cv3MatEbb+0x124):

cap_android.cpp:(.text._ZN17CvCapture_Android18convertYUV420i2BGREiiPKhRN2cv3MatEbb+0x124): undefined reference to `cv::cvtColor(cv::_InputArray 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int,

int)' /cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_androidcamera.a(camera_activity.o):

/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_androidcamera.a(camera_activity.o):

In function `CameraWrapperConnector::getPathLibFolder()': 'CameraWrapperConnector::getPathLibFolder()': camera_activity.cpp:(.text._ZN22CameraWrapperConnector16getPathLibFolderEv+0x38): undefined

reference to `dladdr' 'dladdr' collect2: ld returned 1 exit status status /cygdrive/d/android-ndk-r4-crystax/build/core/build-shared-library.mk:38: recipe for target

`/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so' '/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so' failed make: * [/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so] Error 1

could any expert tell me what is problem?several weeks ago,i compile opencv code successfully

which include no cvcapture func .My current c++ code uses cvcapture func and could not link

successfully.any message would be appreciated.i uses D:\OpenCV-2.3.1-android-bin.Is it a

bug ?

click to hide/show revision 4
No.4 Revision

couldn't link successfully when i use ndk-build to complile my opencv code on android platform

hi, i use ndk-build to compile my opencv code for android.I have successful experience on the work.but,today i fail to success.this is my log under ndk-build:

/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_highgui.a(cap_android.o): 
In function 'CvCapture_Android::convertYUV420i2BGR(int, int, unsigned char const*, cv::Mat&, bool, bool)':
cap_android.cpp:(.text._ZN17CvCapture_Android18convertYUV420i2BGREiiPKhRN2cv3MatEbb+0x124):
undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_androidcamera.a(camera_activity.o):

In function 'CameraWrapperConnector::getPathLibFolder()': camera_activity.cpp:(.text._ZN22CameraWrapperConnector16getPathLibFolderEv+0x38): camera_activity.cpp: (.text._ZN22CameraWrapperConnector16getPathLibFolderEv+0x38): undefined reference to 'dladdr' collect2: ld returned 1 exit status /cygdrive/d/android-ndk-r4-crystax/build/core/build-shared-library.mk:38: recipe for target '/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so' failed make: * *** [/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so] Error 1

1

could any expert tell me what is problem?several weeks ago,i compile opencv code successfully which include no cvcapture func .My current c++ code uses cvcapture func and could not link successfully.any message would be appreciated.i uses D:\OpenCV-2.3.1-android-bin.Is it a bug ?

couldn't link successfully when i use ndk-build to complile my opencv code on android platform

hi, i use ndk-build to compile my opencv code for android.I have successful experience on the work.but,today i fail to success.this is my log under ndk-build:

/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_highgui.a(cap_android.o): 
In function 'CvCapture_Android::convertYUV420i2BGR(int, int, unsigned char const*, cv::Mat&, bool, bool)':
cap_android.cpp:(.text._ZN17CvCapture_Android18convertYUV420i2BGREiiPKhRN2cv3MatEbb+0x124):
undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
 /cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libopencv_androidcamera.a(camera_activity.o):
In function 'CameraWrapperConnector::getPathLibFolder()': camera_activity.cpp:
(.text._ZN22CameraWrapperConnector16getPathLibFolderEv+0x38): 
undefined reference to 'dladdr' 
collect2: ld returned 1 exit status /cygdrive/d/android-ndk-r4-crystax/build/core/build-shared-library.mk:38: 
recipe for target '/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so' failed
make: *** [/cygdrive/e/EclipseSomkeDetect/obj/local/armeabi/libSmokeDetect.so] Error 1

could any expert tell me what is problem?several weeks ago,i compile opencv code successfully which include no cvcapture func .My current c++ code uses cvcapture func and could not link successfully.any message would be appreciated.i uses D:\OpenCV-2.3.1-android-bin.Is it a bug ?appreciated. someone tells you should add app_platform:=android-8 in application.mk,i try,but i fail.