frondeur
September 7th, 2011, 03:15 PM
Hi,
I am trying to compile OpenCV2.3.1 but highgui doesn't compile. The error is as following:
Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/bin/ld: /usr/local/lib/libavcodec.a(kbdwin.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.so.2.3.1] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
I think it is due to ffmpeg. I have tried to compile x264 and ffmpeg multiple times with --enable-static and --enable-pic but all in vain. Would anyone kindly help in this regard?
Thanks in Advance.
I am trying to compile OpenCV2.3.1 but highgui doesn't compile. The error is as following:
Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/bin/ld: /usr/local/lib/libavcodec.a(kbdwin.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.so.2.3.1] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
I think it is due to ffmpeg. I have tried to compile x264 and ffmpeg multiple times with --enable-static and --enable-pic but all in vain. Would anyone kindly help in this regard?
Thanks in Advance.