Skip to content

Windows build fails with OpenCV 3.4.10 #5876

Open
@definability

Description

@definability

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

v0.10.21

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.10

Describe the problem

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

Constant CAP_PROP_ORIENTATION_AUTO was introduced in OpenCV 3.4.12
opencv/opencv@f0271e5#diff-702e7efcf6bd7a4c265fcdbc0cc4c4e47e8ea12325bf28d18524c194c9ab4759R181

It was used in MediaPipe in v0.10.21 226e37a

The web documentation and opencv_windows.BUILD must reflect this requirement.

Complete Logs

mediapipe/calculators/video/opencv_video_decoder_calculator.cc(116): error C2039: 'CAP_PROP_ORIENTATION_AUTO': is not a member of 'cv'
external/windows_opencv/include\opencv2/videoio.hpp(71): note: see declaration of 'cv'
mediapipe/calculators/video/opencv_video_decoder_calculator.cc(116): error C2065: 'CAP_PROP_ORIENTATION_AUTO': undeclared identifier
Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu failed to build

P.S. Please fix the issue creation form: it creates a single-line text input for the problem description, which forces editing the issue after creating it to enrich it with necessary details.

Metadata

Metadata

Assignees

Labels

legacy:handsHand tracking/gestures/etcos:windowsMediaPipe issues on Windowsplatform:c++Issues specific to C++ framework in mediapipetype:build/installFor Build and Installation issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions