A smooth way to compile openCV C-based code. Call example: bash gcv.sh a_cv_main_file.c img1 img2 vid1 You can rename "gcv.sh" to "gcv" add it to the path and use like native compiler: gcv a_cv_main_file.c img1 img2 vid1