From e38d6c2014348f1259c9c6da2b61b3fae71e815a Mon Sep 17 00:00:00 2001 From: Yan Wang Date: Mon, 17 Nov 2014 17:44:58 +0800 Subject: [PATCH] Fix debug build broken issue. Fix the following error: /usr/bin/ld: ../../lib/libopencv_ts.a(ts_gtest.cpp.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC ../../lib/libopencv_ts.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [lib/cv2.so] Error 1 make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2 make: *** [all] Error 2 --- modules/latentsvm/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/latentsvm/CMakeLists.txt b/modules/latentsvm/CMakeLists.txt index 99f4c952c..7c1ae441d 100644 --- a/modules/latentsvm/CMakeLists.txt +++ b/modules/latentsvm/CMakeLists.txt @@ -1,2 +1,2 @@ set(the_description "Object Detection") -ocv_define_module(latentsvm opencv_core opencv_imgproc opencv_objdetect opencv_ts OPTIONAL opencv_highgui) +ocv_define_module(latentsvm opencv_core opencv_imgproc opencv_objdetect OPTIONAL opencv_highgui)