Hello While installing OpenCV-2.4.9 on my CentOS 6.6 x86_64 machine, I met with this error. ... Linking CXX shared library ../../lib/libopencv_highgui.so /usr/bin/ld: /usr/local/lib/libavcodec.a(vc1dsp_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pw_9' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [lib/libopencv_highgui.so.2.4.9] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: *** [all] Error 2
The message seems to tell me to recompile ffmpeg library (libavcodec.a) with -fPIC option. But when I built ffmpeg I used(under build directory) '../configure --enable-pic' (pic is for position independent code). I also later tried --extrac-cflags="-fPIC -m64" for the configure option. But I get the same result. What is wrong with my situation? Any suggestion would be deeply appreciated. How can I recompile ffmpeg with -fPIC option? Thanks in advance. Chan Kim _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
