Opencv installation

From XinCheJian
Jump to navigation Jump to search

good guide to follow:

  1. http://www.samontab.com/web/2012/06/installing-opencv-2-4-1-ubuntu-12-04-lts/

Cubieboard

we have no x11 windows need, testing is done off board, so this will install whats needed without the x11 bullshit of 1G! instead we just need 60mb of packages.

  1. sudo apt-get install build-essential libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy libeigen2-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev
  1. cmake -D WITH_TBB=OFF -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D WITH_QT=OFF -D WITH_OPENGL=ON ..
  1. make

go get coffee.. or go to bed

  1. sudo make install

just a note: it took 2 hours to compile, could not use make -j2 as it had errors waiting for the other process to finish :(

ramdisk

  1. http://naze.mine.nu/?p=409