linux下安装opencv

 

install

sudo apt-get install libcv-dev libcv-doc libhighgui-dev

 

fix bug under ubuntu 10.04: cannot find -lhighgui

sudo ln /usr/lib/libhighgui.so.4 /usr/lib/libhighgui.so

 

build

g++  -g -Wall -Wno-unused-function `pkg-config --cflags opencv` `pkg-config --libs opencv`  opencv-test.cpp   -o opencv-test

 

你可能感兴趣的:(linux下安装opencv)