我正在尝试在 Ubuntu 12.04 上安装 opencv 2.4.5 我尝试按照http://opencv.willowgarage.com/wiki/InstallGuide_Linux上的步骤进行操作
但是,当我到达制作步骤时。我收到一个错误。我是 linux 新手。
错误是
Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' 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.4.5] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
请帮忙!!!