Open
Description
OS Platform and Distribution
Windows 11
Compiler version
MSVC 19.29.30158 for x64
Programming Language and version
C++17
Installed using virtualenv? pip? Conda?(if python)
No
MediaPipe version
master (ffe429d)
Bazel version
6.5.0
XCode and Tulsi versions (if iOS)
N/A
Android SDK and NDK versions (if android)
N/A
Android AAR (if android)
None
OpenCV version (if running on desktop)
3.4.12
Describe the problem
Build of hand_tracking_cpu
example fails
bazel-6.5.0 build --verbose_failures -c opt --define MEDIAPIPE_DISABLE_GPU=1 --define=xnn_enable_avxvnniint8=false --shell_executable="C:\msys64\usr\bin\bash.exe" --repo_env=HERMETIC_PYTHON_VERSION=3.11 -- //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu
The problem was introduced in
mediapipe/mediapipe/framework/output_stream_handler.cc
Lines 145 to 149 in ffe429d
Designated initializers are a feature of C++20: https://en.cppreference.com/w/cpp/language/aggregate_initialization.
I see two ways to fix this problem, but I am unsure about the MediaPipe team's plans.
- Do not use designated initializers.
- Update the C++ version to C++20. This may require updating the codebase accordingly, and people using older compilers may have problems with it.
Complete Logs
All you need to know:
mediapipe/framework/output_stream_handler.cc(146): error C7555: use of designated initializers requires at least '/std:c++20'