tmandry / lavender

Generate Visual Studio projects for Bazel (experimental)
MIT License
73 stars 17 forks source link

I want to turn this project into a solution project using lavender but unfortunately it gives me this error every time I run it. #18

Open rigngsbase opened 2 years ago

rigngsbase commented 2 years ago

I want to turn this project into a solution project using lavender but unfortunately it gives me this error every time I run it.

https://github.com/google/mediapipe

DuinoDu commented 1 year ago

@rigngsbase Hi, if you want to debug mediapipe, vscode is a good choice. Here is my launch.json and tasks.json.

launch.json:

{
    "version": "0.2.0",
    "configurations": [
      {
        "preLaunchTask": "Bazel Build (Debug)",
        "name": "(Windows) Launch",
        "type": "cppvsdbg",
        "request": "launch",
        "program": "${workspaceFolder}/bazel-bin/mediapipe/examples/desktop/face_detection/face_detection_cpu",
        "args": ["--calculator_graph_config_file=${workspaceFolder}/mediapipe/graphs/face_detection/face_detection_desktop_live.pbtxt"],
        "stopAtEntry": false,
        "cwd": "${fileDirname}",
        "environment": [],
        "console": "externalTerminal"
      }
    ]
}

tasks.json:

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "Bazel Build (Debug)",
            "command": "bazel build -c dbg--define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/face_detection:face_detection_cpu",
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

Hope help.