When OpenCV2.0 is installed in Ubuntu9.10, there will always be errors in the compilation process. However, in 8.04, everything went smoothly and there was no problem. I found a tutorial on the Internet and reinstalled it on my computer, installation steps are as follows: 1. First install the relevant Library: sudoapt-getinstalllibv4l-devlibv4l-0libboost1.40-all-devlibusb-1.0-0-devlibgtk2.0-devli
When OpenCV2.0 is installed in Ubuntu 9.10, there will always be errors in the compilation process, but in Ubuntu 8.04, everything went well and there was no problem. I found a tutorial on the Internet, the installation steps are as follows:
1. Install the relevant libraries first:
Sudo apt-get install libv4l-dev libv4l-0 libboost1.40-all-dev libusb-1.0-0-dev libgtk2.0-dev libgsl0-dev
2. decompress the OpenCV2.0 source code and enter the directory. Use the following statement to configure and install it:
./Configure -- with-v4l = yes -- with-dc1394v2 = no -- with-quicktime = no -- disable-debug -- with-swig = no -- with-python = no -- with-ffmpeg = no
Make
Sudo make install
3. Set the relevant library path:
Echo/usr/local/opencv/lib>/etc/ld. so. conf. d/opencv. conf
4. Reload the library path:
Ldconfig-v | grep opencv
5. Set the pkg-config constant:
Export PKG_CONFIG_PATH = $ PKG_CONFIG_PATH:/usr/local/opencv/lib/pkgconfig
Now the entire development environment has been set up. The configuration parameters in Section 2 need to be modified as needed.