how to compile opencv program using terminal