Create build.sh

Building .cpp files in opencv from Terminal
1)save the file as build.sh in the location where the .cpp file is located
2)from cmd line go to location where the file is located and enter 'chmod 777 build.sh'
3)enter the names of the source file and the binary you wish to create in the file.Save the file
4)enter './build.sh' to compile the .cpp file
5)enter './binary' to run the program