Hi All,
Am trying to install opencv 3.0.0 with python 2.7.6 in virtual environment of Red Hat Enterprise Linux Server release 6.7 (Santiago).
when am trying to install image I/O packages using following command
sudo yum install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev
it is returning as below
Loaded plugins: amazon-id, rhui-lb, security Setting up Install Process No package libjpeg8-dev available. No package libtiff4-dev available. No package libjasper-dev available. No package libpng12-dev available. Error: Nothing to do
And same problem with following commands also
sudo yum install libgtk2.0-dev
Loaded plugins: amazon-id, rhui-lb, security Setting up Install Process No package libgtk2.0-dev available. Error: Nothing to do
sudo yum install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
Loaded plugins: amazon-id, rhui-lb, security Setting up Install Process No package libavcodec-dev available. No package libavformat-dev available. No package libswscale-dev available. No package libv4l-dev available. Error: Nothing to do
I have installed python 2.7.6 and using pip command I have installed numpy library also successfully
am trying to install opencv 3.0.0 using following steps
$ cd ~ $ git clone https://github.com/Itseez/opencv.git $ cd opencv $ git checkout 3.0.0 $ cd ~ $ git clone https://github.com/Itseez/opencv_contrib.git $ cd opencv_contrib $ git checkout 3.0.0 $ cd ~/opencv $ mkdir build $ cd build $ cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local .. $ make
when trying to compile using "make" command facing compilation errors as below
Linking CXX shared library ../../lib/cv2.so /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.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/libpython2.7.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: * [lib/cv2.so] Error 1 make[1]: [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2 make: ** [all] Error 2
i have tried to install libpython2.7.so, still am facing same problem
can anyone help me?