Ask Your Question

rainbow-guy's profile - activity

2016-04-21 07:57:36 -0600 asked a question Undefined references

Hi

I am new to OpenCV and JNI programming and trying to integrate OpenCV SDK for android 3.1 into android project in android studio. When compiling the project I am getting the following errors below. Please advise. Thanks

Android NDK: WARNING:/home/server/WAID/android/WAID/app/src/main/jni/android-external-openssl-ndk-static/crypto/Android.mk:crypto: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:/home/server/WAID/android/WAID/app/src/main/jni/android-external-openssl-ndk-static/crypto/Android.mk:crypto_static: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:/home/server/WAID/android/WAID/app/src/main/jni/Android.mk:zmq: non-system libraries in linker flags: -lopencv_java3
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] SharedLibrary : libgl2jni.so /opt/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/mat.inl.hpp:685: error: undefined reference to 'cv::Mat::deallocate()' /opt/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/mat.inl.hpp:574: error: undefined reference to 'cv::fastFree(void)' /opt/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/mat.inl.hpp:403: error: undefined reference to 'cv::Mat::copySize(cv::Mat const&)' /opt/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/mat.inl.hpp:403: error: undefined reference to 'cv::Mat::copySize(cv::Mat const&)' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:80: error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:84: error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:97: error: undefined reference to 'cv::flip(cv::_InputArray const&, cv::_OutputArray const&, int)' /opt/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/mat.inl.hpp:646: error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const' /opt/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/mat.inl.hpp:1177: error: undefined reference to 'cv::fastFree(void)' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:248: error: undefined reference to 'cv::VideoCapture::VideoCapture(int)' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:43: error: undefined reference to 'cv::flip(cv::_InputArray const&, cv::_OutputArray const&, int)' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:142: error: undefined reference to 'cv::getTickCount()' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:199: error: undefined reference to 'cv::getTickFrequency()' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:153: error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:163: error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const' /home/server/WAID/android/WAID/app/src/main/jni/native/src/WaidCamera.cpp:168: error: undefined ...





(more)