Skip to content

Instantly share code, notes, and snippets.

@agtbaskara
Created August 11, 2018 17:38
Show Gist options
  • Save agtbaskara/4a2ec9a3a9a963069e719c0477185321 to your computer and use it in GitHub Desktop.
Save agtbaskara/4a2ec9a3a9a963069e719c0477185321 to your computer and use it in GitHub Desktop.
tasks.json file for build and run C++ program with OpenCV 3.4.1 using Mingw-w64 in Visual Studio Code
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build it",
"type": "shell",
"command": "g++",
"args":[
"${fileBasename}",
"-o",
"${fileBasenameNoExtension}",
"-IC:/OpenCV-MinGW-Build/include",
"-LC:/OpenCV-MinGW-Build/x64/mingw/bin",
"-llibopencv_calib3d341",
"-llibopencv_core341",
"-llibopencv_dnn341",
"-llibopencv_features2d341",
"-llibopencv_flann341",
"-llibopencv_highgui341",
"-llibopencv_imgcodecs341",
"-llibopencv_imgproc341",
"-llibopencv_ml341",
"-llibopencv_objdetect341",
"-llibopencv_photo341",
"-llibopencv_shape341",
"-llibopencv_stitching341",
"-llibopencv_superres341",
"-llibopencv_video341",
"-llibopencv_videoio341",
"-llibopencv_videostab341"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Copy link

ghost commented Aug 11, 2018

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment