Error: install openCV-3.0.0-beta on Ubuntu 14.10
how can solve this ERROR?????
[ 55%] Built target opencv_imgcodecs
Scanning dependencies of target opencv_videoio
[ 56%] [ 56%] [ 56%] [ 56%] [ 56%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o
Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o
Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dc1394_v2.cpp.o
Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap.cpp.o
Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_images.cpp.o
Linking CXX shared library ../../lib/libopencv_videoio.so
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:194: recipe for target 'lib/libopencv_videoio.so.3.0.0' failed
make[2]: *** [lib/libopencv_videoio.so.3.0.0] Error 1
CMakeFiles/Makefile2:2503: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared library ../../lib/libopencv_video.so
[ 56%] Built target opencv_video
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
Can you please provide your CMAKE configuration? Also please go to the github repository and download the latest 3.0 branch. The beta branch wasn't stable and tons of fixes have been introduced so far.
i had use of many way for CMake configuration, e.g. CMake-GUI with default parameter. and use different version of opencv, i.e. opencv-3-0.0-beta, opencv-2.4.2, github repository opencv. BUT all of this has same error on different stage. however, i think find problem
Thanks for your comment.
Problem Solved. i change Ubuntu version of 14.10 to 14.04.1 and problem has solved. so i think Ubuntu 14.10 is not consistent with OpenCV.
Hmmm normally changing versions of Ubuntu should not intervene with the code base. We got systems with Ubuntu 14.10 running here with OpenCV installed.