我試圖在Ubuntu 12.04 安裝OpenCV 2.4.5我嘗試下面就http://opencv.willowgarage.com/wiki/InstallGuide_Linuxopencv的2.4.5做出錯誤
步驟但是當我到達化妝步驟。我收到一個錯誤。我是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
請幫助!
我很確定這個鏈接已經過時 – 2013-05-01 16:16:23
@peterretief對,好的是[here](http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html) – StreakyCobra 2013-05-01 18:03:31