Ask Your Question

Revision history [back]

I just can't install OpenCV on Ubuntu 10.04 x86_64

Hi all I am trying to install opencv on a ubuntu 10.04 x86_64. I followed these instructions link text but when I run make I got this message

make [ 0%] Built target opencv_core_pch_dephelp [ 0%] Built target pch_Generate_opencv_core [ 3%] Built target opencv_core [ 4%] Built target opencv_ts_pch_dephelp [ 4%] Built target pch_Generate_opencv_ts [ 4%] Built target opencv_imgproc_pch_dephelp [ 4%] Built target pch_Generate_opencv_imgproc [ 9%] Built target opencv_imgproc [ 9%] Built target opencv_flann_pch_dephelp [ 9%] Built target pch_Generate_opencv_flann [ 9%] Built target opencv_flann [ 9%] Built target opencv_highgui_pch_dephelp [ 9%] Built target pch_Generate_opencv_highgui 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

click to hide/show revision 2
Fixed formatting of error messages.

I just can't install OpenCV on Ubuntu 10.04 x86_64

Hi all I am trying to install opencv on a ubuntu 10.04 x86_64. I followed these instructions link text but when I run make I got this message

make [ 0%] Built target opencv_core_pch_dephelp [ 0%] Built target pch_Generate_opencv_core [ 3%] Built target opencv_core

> make [  0%]
> Built target opencv_core_pch_dephelp [  0%]
> Built
> target pch_Generate_opencv_core [  3%]
> Built target opencv_core [ 4%] Built target opencv_ts_pch_dephelp
[ Built
> target opencv_ts_pch_dephelp [ 4%]
> Built target pch_Generate_opencv_ts [
> 4%] Built target pch_Generate_opencv_ts
[ 4%] Built target opencv_imgproc_pch_dephelp
[ 4%] Built target pch_Generate_opencv_imgproc
[ 9%] Built target opencv_imgproc
[ 9%] target
> opencv_imgproc_pch_dephelp [ 4%]
> Built target
> pch_Generate_opencv_imgproc [ 9%]
> Built target opencv_imgproc [ 9%]
> Built target opencv_flann_pch_dephelp
 [ 9%] Built target pch_Generate_opencv_flann
[ 9%] Built target opencv_flann
[ 9%] Built target opencv_highgui_pch_dephelp
[ 9%] Built target pch_Generate_opencv_highgui
Linking > [ 9%] Built target
> pch_Generate_opencv_flann [ 9%] Built
> target opencv_flann [ 9%] Built
> target opencv_highgui_pch_dephelp [
> 9%] Built target
> pch_Generate_opencv_highgui Linking
> CXX shared library library
> ../../lib/libopencv_highgui.so
 /usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): > /usr/bin/ld:
> /usr/local/lib/libavcodec.a(avpacket.o):
> relocation R_X86_64_32 against against
> `.rodata.str1.1' can not be used when when
> making a shared object; recompile with -fPIC
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 1
make[1]:  [modules/highgui/CMakeFiles/opencv_highgui.dir/all] 2 make: *** [all] Error 2
 make: ** [all] Error 2

I just can't install OpenCV on Ubuntu 10.04 x86_64

Hi all I am trying to install opencv on a ubuntu 10.04 x86_64. I followed these instructions link text but when I run make I got this message

> make [  0%]
> Built target opencv_core_pch_dephelp [  0%]
> Built
> Built target pch_Generate_opencv_core [  3%]
> Built target opencv_core [  4%] Built
> 4%]
> Built target opencv_ts_pch_dephelp [  4%]
> Built target pch_Generate_opencv_ts [ 
> 4%] Built target
> 4%]
> Built target opencv_imgproc_pch_dephelp [  4%]
> Built target
> target pch_Generate_opencv_imgproc [  9%]
> Built target opencv_imgproc [  9%]
> Built target opencv_flann_pch_dephelp
> [  9%] Built target
> opencv_flann_pch_dephelp [  9%]
> Built target pch_Generate_opencv_flann [  9%] Built
> 9%]
> Built target opencv_flann [  9%] Built
> 9%]
> Built target opencv_highgui_pch_dephelp [ 
> 9%] Built target
> pch_Generate_opencv_highgui Linking
> 9%]
> Built target pch_Generate_opencv_highgui
> Linking CXX shared library
> 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