build app under ubuntu
1. create a CMakeLists.txt
2. mkdir build
3. cd build
4. cmake-gui ..
5. change the opencv source and lib path to the correct places.
6. make