Installing OpenCV on Ubuntu 10.04 LTS

Update Opencv 2.3 on Ubuntu 12.04

run with this command

$ g++ hello.cpp -o hello pkg-config --cflags --libs opencv

http://stackoverflow.com/questions/7781302/opencv-on-ubuntu-11-10

How to config Eclipse

config_opencv_eclipse

Ref: jestinstoffel.com/?q=node/112

Shell script file “gcv”

g++ $1 -I/usr/include/opencv  -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann

alias gcv=”bash /home/jack/gcv”

note: cannot used -o for this solution.

help: http://fossies.org/dox/OpenCV-2.3.1a/core_2include_2opencv2_2core_2types__c_8h.html#acba5122a909469622bb5398aac729910

OpenCV 2.3: in file ‘/usr/include2/core/internal.hpp’, it have to add 2 lines

#include “types_c.h”
#include “core.hpp”
to fix the error