To install Open CV 2.4.9 without any issues, follow the following steps:-

Step 1: Install all the dependencies:

>>sudo apt-get install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev
libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev  libdc1394-22-dev
libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-
dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-
amrwb-dev libv4l-dev libxine2-dev  libtbb-dev libeigen3-dev python-dev
python-tk python-numpy python3-dev python3-tk python3-numpy

Step 2: There is a chance of an error due to missing libraries of Qt, so
execute the following command to download the mssing libraries before
installing Open CV.

>>sudo apt-get install libqt4-*

Step 3: Download Open CV 2.4.9 from the following command
>>cd ~
>>wget 
>>http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip

Step 4: Unzip the OpenCV zip file, create a build folder

>>unzip opencv-2.4.9.zip
>>cd opencv-2.4.9
>>mkdir build
>>cd build

Step 5: Run cmake so as to create the Makefile.

>>cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=$(python3 -c
"import sys; print(sys.prefix)") -DWITH_QT=ON -DWITH_OPENGL=ON
-DWITH_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON
-DBUILD_EXAMPLES=ON -D BUILD_opencv_java=OFF BUILD_opencv_test_java=OFF
..


Step 6: Compile OpenCV

>>make

 The above step may give java binding errors. To disable them we can use
make -j2 (or make -j4) accordinlgy.

>>make -j2
>>sudo make install



Hope you should get OpenCV installed without any Bugs:)

** Changed in: pycuda (Ubuntu)
     Assignee: Anushree (anushrivb) => Shrinidhi Sharma (shrinidhi313)

** Changed in: pycuda (Ubuntu)
       Status: In Progress => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1517779

Title:
  cannot install opencv because of qmake error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pycuda/+bug/1517779/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to