Skip to content

build selfie_segmentation error #5808

Open
@sayyoume

Description

@sayyoume

OS Platform and Distribution

Win11

Compiler version

vs2022

Programming Language and version

c++

Installed using virtualenv? pip? Conda?(if python)

Python 3.11.0

MediaPipe version

0.10.20

Bazel version

bazel 6.3.2

XCode and Tulsi versions (if iOS)

No response

Android SDK and NDK versions (if android)

No response

Android AAR (if android)

None

OpenCV version (if running on desktop)

opencv 4.7.0

Describe the problem

build selfie_segmentation error

Complete Logs

I use cmd 
 bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C:\\Users\\qin\\AppData\\Local\\Programs\\Python\\Python311\\python.exe" mediapipe/examples/desktop/selfie_segmentation:selfie_segmentation_cpu


WARNING: E:/code/mediapipe/mediapipe/framework/BUILD:70:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: E:/code/mediapipe/mediapipe/framework/tool/BUILD:204:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe/examples/desktop/selfie_segmentation:selfie_segmentation_cpu (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: C:/users/qin/_bazel_qin/5e2ovc5j/external/org_tensorflow/tensorflow/lite/delegates/xnnpack/BUILD:326:22: declared output 'external/org_tensorflow/tensorflow/lite/delegates/xnnpack/weight_cache_schema_generated.h' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: C:/users/qin/_bazel_qin/5e2ovc5j/external/org_tensorflow/tensorflow/lite/delegates/xnnpack/BUILD:326:22: Generating flatbuffer files for weight_cache_schema_srcs: @org_tensorflow//tensorflow/lite/delegates/xnnpack:weight_cache_schema_srcs failed: not all outputs were created or valid
Target //mediapipe/examples/desktop/selfie_segmentation:selfie_segmentation_cpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.796s, Critical Path: 0.34s
INFO: 132 processes: 128 internal, 4 local.
FAILED: Build did NOT complete successfully

Metadata

Metadata

Assignees

Labels

legacy:selfie segmentationIssues related to selfie segmentationos: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