Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error: undefined reference to 'sincos' in android jb4.2.2

opencv tag :2.4.6, 2.4.6.1, 2.4.6.2 android 4.2.2_r1.2 ANDROID_NDK="/home/thomas/build/aosp/jb-4.2.2_r1.2/prebuilts/ndk/current" I have refered to http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk ,but I got many sincos error. I tried -lm, but failed.

How to build openCV successfully?

Linking CXX executable ../../bin/opencv_perf_imgproc /home/thomas/build/aosp/jb-4.2.2_r1.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../lib/armeabi-v7a/libopencv_imgproc.a(imgwarp.cpp.o): in function cv::getRotationMatrix2D(cv::Point_<float>, double, double):imgwarp.cpp(.text._ZN2cv19getRotationMatrix2DENS_6Point_IfEEdd+0x2a): error: undefined reference to 'sincos'

click to hide/show revision 2
opencv 2.4.6 with ndk r8e

error: undefined reference to 'sincos' in android jb4.2.2

opencv tag :2.4.6, 2.4.6.1, 2.4.6.2 android 4.2.2_r1.2 ANDROID_NDK="/home/thomas/build/aosp/jb-4.2.2_r1.2/prebuilts/ndk/current" I have refered to http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk ,but I got many sincos error. I tried -lm, but failed.

How to build openCV successfully?

Linking CXX executable ../../bin/opencv_perf_imgproc /home/thomas/build/aosp/jb-4.2.2_r1.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../lib/armeabi-v7a/libopencv_imgproc.a(imgwarp.cpp.o): in function cv::getRotationMatrix2D(cv::Point_<float>, double, double):imgwarp.cpp(.text._ZN2cv19getRotationMatrix2DENS_6Point_IfEEdd+0x2a): error: undefined reference to 'sincos'

click to hide/show revision 3
retagged

updated 2013-10-23 02:42:55 -0500

berak gravatar image

error: undefined reference to 'sincos' in android jb4.2.2

opencv tag :2.4.6, 2.4.6.1, 2.4.6.2 android 4.2.2_r1.2 ANDROID_NDK="/home/thomas/build/aosp/jb-4.2.2_r1.2/prebuilts/ndk/current" I have refered to http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk ,but I got many sincos error. I tried -lm, but failed.

How to build openCV successfully?

Linking CXX executable ../../bin/opencv_perf_imgproc /home/thomas/build/aosp/jb-4.2.2_r1.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: ../../lib/armeabi-v7a/libopencv_imgproc.a(imgwarp.cpp.o): in function cv::getRotationMatrix2D(cv::Point_<float>, double, double):imgwarp.cpp(.text._ZN2cv19getRotationMatrix2DENS_6Point_IfEEdd+0x2a): error: undefined reference to 'sincos'