We have tried the officially supported version of this, i.e. runnning KDE 3.x instead of 4.x
Note that installation on version 7.10 follows the same procedure, but I never got round documenting it
Things seem to be getting easier!
Thanks to Leeds University for their guide on using OpenCV
- sudo apt-get install build-essential to get compiler, ld, make, ....
- Install the other necessary packages: sudo apt-get install libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev
- Now download and untar version 1.0.0 of OpenCV from http://sourceforge.net/project/showfiles.php?group_id=22870&package_id=16948
- Now do
- ./configure --prefix=/opt/opencv --enable-apps --enable-shared --with-ffmpeg --with-gnu-ld --with-x --without-quicktime CXXFLAGS=-fno-strict-aliasing
- Check that the above produces no error and that in particular it reports ffmpeg as yes. If this is not the case there is no point in continuing!
- make (if you have tried making other configurations you could also do a make clean before make)
- sudo make install
- sudo vi /etc/ld.so.conf.d/opencv.conf and add the line /opt/opencv/lib. Then sudo ldconfig
- sudo vi /etc/bash.bashrc and add the lines:
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/opencv/lib/pkgconfig export PKG_CONFIG_PATH (this setting will be activated if you launch a new console/terminal or if you re-login)
- So far so good? Now try running some sample programs. Donwload and untar this. Then:
- ./build-all.sh edge fruits.jpg (it shows that you can open and display a jpg file) cvplayer-v2 SEQ-003-C5_X4.mpg (it shows you can open and display an mpg video file, with ffmpeg)
0 comments:
แสดงความคิดเห็น