Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the last step throw Error "Build did NOT complete successfully" ,how do i solve that? #482

Closed
a591537394 opened this issue Mar 8, 2022 · 4 comments
Labels
type:build/install Cannot build/install the plugin

Comments

@a591537394
Copy link

Plugin Version or Commit ID

v0.8.3

Unity Version

2020.3.30f1

Your Host OS

Windows 10 Home

Target Platform

UnityEditor

[Windows Only] Visual Studio C++ and Windows SDK Version

VisualStudio C++ : 14.31.31103
WinSDK: 10.0.19041.685

[Linux Only] GCC/G++ and GLIBC Version

No response

[Android Only] Android Build Tools and NDK Version

No response

[iOS Only] XCode Version

No response

Command Sequences

python build.py build --desktop cpu --opencv cmake -vv

Log

C:\mediapipe>python build.py build --desktop cpu --opencv cmake -vv
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Python//pytho n.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCE SSOR_LEVEL --action_env PROCESSOR_REVISION --verbose_failures //mediapipe_api:mediapipe_proto_srcs
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c
34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class java.net.ConnectException Connection refused: connect
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83
d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpExcepti
on GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a3
2ecd248dd7612d75d2177125ed14541367.tar.gz failed: class java.net.ConnectException Connection refused: connect
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_s
ince = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
C:/mediapipe/WORKSPACE:31:23: in
C:/_bzl/3vmcl3ou/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
INFO: SHA256 (https://github.com/bazelbuild/rules_cc/archive/main.zip) = 3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff
81bf46700cb4529f7
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "383
9996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
C:/mediapipe/WORKSPACE:96:13: in
Repository rule http_archive defined at:
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
INFO: Analyzed target //mediapipe_api:mediapipe_proto_srcs (47 packages loaded, 734 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_proto_srcs up-to-date:
bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip
INFO: Elapsed time: 339.954s, Critical Path: 285.89s
INFO: 207 processes: 11 internal, 196 local.
INFO: Build completed successfully, 207 total actions
DEBUG (build.py): Unarchiving 'bazel-bin\mediapipe_api\mediapipe_proto_srcs.zip' to 'build\Scripts\Protobuf'...
INFO (build.py): Built protobuf sources
INFO (build.py): Downloading dlls...
DEBUG (build.py): Running nuget install -o .nuget -Source https://api.nuget.org/v3/index.json
Feeds used:
https://api.nuget.org/v3/index.json

Restoring NuGet package Google.Protobuf.3.19.1.
Restoring NuGet package System.Buffers.4.4.0.
GET https://api.nuget.org/v3-flatcontainer/system.buffers/4.4.0/system.buffers.4.4.0.nupkg
GET https://api.nuget.org/v3-flatcontainer/google.protobuf/3.19.1/google.protobuf.3.19.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/system.buffers/4.4.0/system.buffers.4.4.0.nupkg 34ms
OK https://api.nuget.org/v3-flatcontainer/google.protobuf/3.19.1/google.protobuf.3.19.1.nupkg 341ms
Installed Google.Protobuf 3.19.1 from https://api.nuget.org/v3/index.json with content hash M6yun2BPdHkBjD3V14muZSt72azW
HRJEx88ME2TyyH2+/ww6R3hIptjBFQQtO6pmkfLXW/NGQ4hADWSa9AmK2A==.
Adding package 'Google.Protobuf.3.19.1' to folder 'C:\mediapipe.nuget'
Added package 'Google.Protobuf.3.19.1' to folder 'C:\mediapipe.nuget'
Restoring NuGet package System.Memory.4.5.3.
GET https://api.nuget.org/v3-flatcontainer/system.memory/4.5.3/system.memory.4.5.3.nupkg
OK https://api.nuget.org/v3-flatcontainer/system.memory/4.5.3/system.memory.4.5.3.nupkg 28ms
Installed System.Memory 4.5.3 from https://api.nuget.org/v3/index.json with content hash 3oDzvc/zzetpTKWMShs1AADwZjQ/36H
nsufHRPcOjyRAAMLDlu2iD33MBI2opxnezcVUtXyqDXXjoFMOU9c7SA==.
Adding package 'System.Memory.4.5.3' to folder 'C:\mediapipe.nuget'
Added package 'System.Memory.4.5.3' to folder 'C:\mediapipe.nuget'
Restoring NuGet package System.Runtime.CompilerServices.Unsafe.4.5.2.
GET https://api.nuget.org/v3-flatcontainer/system.runtime.compilerservices.unsafe/4.5.2/system.runtime.compilerservice
s.unsafe.4.5.2.nupkg
OK https://api.nuget.org/v3-flatcontainer/system.runtime.compilerservices.unsafe/4.5.2/system.runtime.compilerservices
.unsafe.4.5.2.nupkg 34ms
Installed System.Runtime.CompilerServices.Unsafe 4.5.2 from https://api.nuget.org/v3/index.json with content hash wprSFg
ext8cwqymChhrBLu62LMg/1u92bU+VOwyfBimSPVFXtsNqEWC92Pf9ofzJFlk4IHmJA75EDJn1b2goAQ==.
Adding package 'System.Runtime.CompilerServices.Unsafe.4.5.2' to folder 'C:\mediapipe.nuget'
Added package 'System.Runtime.CompilerServices.Unsafe.4.5.2' to folder 'C:\mediapipe.nuget'
Restoring NuGet package Microsoft.Unity.Analyzers.1.11.1.
GET https://api.nuget.org/v3-flatcontainer/microsoft.unity.analyzers/1.11.1/microsoft.unity.analyzers.1.11.1.nupkg
Installed System.Buffers 4.4.0 from https://api.nuget.org/v3/index.json with content hash AwarXzzoDwX6BgrhjoJsk6tUezZEoz
OT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==.
Adding package 'System.Buffers.4.4.0' to folder 'C:\mediapipe.nuget'
Added package 'System.Buffers.4.4.0' to folder 'C:\mediapipe.nuget'
Restoring NuGet package ErrorProne.NET.CoreAnalyzers.0.4.0-beta.1.
GET https://api.nuget.org/v3-flatcontainer/errorprone.net.coreanalyzers/0.4.0-beta.1/errorprone.net.coreanalyzers.0.4.
0-beta.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/errorprone.net.coreanalyzers/0.4.0-beta.1/errorprone.net.coreanalyzers.0.4.0
-beta.1.nupkg 40ms
OK https://api.nuget.org/v3-flatcontainer/microsoft.unity.analyzers/1.11.1/microsoft.unity.analyzers.1.11.1.nupkg 387m
s
Installed ErrorProne.NET.CoreAnalyzers 0.4.0-beta.1 from https://api.nuget.org/v3/index.json with content hash jW7IDd7xM
Joz2IyhyI2NE7JB5o+mH9AuLHDh4I79dL/WpbLRhPGXlcK1GmZa2HjSXEl2a9zXQ4/Hyo9lOaNq1g==.
Adding package 'ErrorProne.NET.CoreAnalyzers.0.4.0-beta.1' to folder 'C:\mediapipe.nuget'
Added package 'ErrorProne.NET.CoreAnalyzers.0.4.0-beta.1' to folder 'C:\mediapipe.nuget'
Restoring NuGet package ErrorProne.NET.Structs.0.4.0-beta.1.
GET https://api.nuget.org/v3-flatcontainer/errorprone.net.structs/0.4.0-beta.1/errorprone.net.structs.0.4.0-beta.1.nup
kg
OK https://api.nuget.org/v3-flatcontainer/errorprone.net.structs/0.4.0-beta.1/errorprone.net.structs.0.4.0-beta.1.nupk
g 41ms
Installed ErrorProne.NET.Structs 0.4.0-beta.1 from https://api.nuget.org/v3/index.json with content hash 3cTaYc/hcDJumpC
TjYNu+X0IEyTFRKHsIlsHwDjju1rGpH7/9dcostXJlRtmIIno6PgRWIh5ZalHDq76QYUA2w==.
Adding package 'ErrorProne.NET.Structs.0.4.0-beta.1' to folder 'C:\mediapipe.nuget'
Added package 'ErrorProne.NET.Structs.0.4.0-beta.1' to folder 'C:\mediapipe.nuget'
Installed Microsoft.Unity.Analyzers 1.11.1 from https://api.nuget.org/v3/index.json with content hash +Xy7OwNmokwvduMHZa
nkM7KqNkGQwyQnd+FgIEsJ+gWKNVJxC6nF6FiOYSc1WgBpgQr8Bt5RBZ7agk8e6nGKpQ==.
Adding package 'Microsoft.Unity.Analyzers.1.11.1' to folder 'C:\mediapipe.nuget'
Added package 'Microsoft.Unity.Analyzers.1.11.1' to folder 'C:\mediapipe.nuget'
DEBUG (build.py): Copying '.nuget\Google.Protobuf.3.19.1\lib\netstandard2.0\Google.Protobuf.dll' to 'build\Plugins\Proto
buf\Google.Protobuf.dll'...
DEBUG (build.py): Creating 'build\Plugins\Protobuf'...
DEBUG (build.py): Changing the mode of 'build\Plugins\Protobuf\Google.Protobuf.dll'...
DEBUG (build.py): Copying '.nuget\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll' to 'build\Plugins\Protobuf
\System.Buffers.dll'...
DEBUG (build.py): Changing the mode of 'build\Plugins\Protobuf\System.Buffers.dll'...
DEBUG (build.py): Copying '.nuget\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll' to 'build\Plugins\Protobuf\S
ystem.Memory.dll'...
DEBUG (build.py): Changing the mode of 'build\Plugins\Protobuf\System.Memory.dll'...
DEBUG (build.py): Copying '.nuget\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.Compile
rServices.Unsafe.dll' to 'build\Plugins\Protobuf\System.Runtime.CompilerServices.Unsafe.dll'...
DEBUG (build.py): Changing the mode of 'build\Plugins\Protobuf\System.Runtime.CompilerServices.Unsafe.dll'...
INFO (build.py): Downloaded protobuf dlls
INFO (build.py): Building resource files
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Python//pytho n.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCE SSOR_LEVEL --action_env PROCESSOR_REVISION --verbose_failures //mediapipe_api:mediapipe_assets
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c
34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class java.net.ConnectException Connection refused: connect
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83
d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpExcepti
on GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a3
2ecd248dd7612d75d2177125ed14541367.tar.gz failed: class java.net.ConnectException Connection refused: connect
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_s
ince = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
C:/mediapipe/WORKSPACE:31:23: in
C:/_bzl/3vmcl3ou/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "383
9996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
C:/mediapipe/WORKSPACE:96:13: in
Repository rule http_archive defined at:
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
INFO: Analyzed target //mediapipe_api:mediapipe_assets (10 packages loaded, 29 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_assets up-to-date:
bazel-bin/mediapipe_api/mediapipe_assets.zip
INFO: Elapsed time: 6.350s, Critical Path: 5.47s
INFO: 26 processes: 1 internal, 25 local.
INFO: Build completed successfully, 26 total actions
DEBUG (build.py): Unarchiving 'bazel-bin\mediapipe_api\mediapipe_assets.zip' to 'build\Resources'...
DEBUG (build.py): Unarchiving 'bazel-bin\mediapipe_api\mediapipe_assets.zip' to 'Assets\StreamingAssets'...
INFO (build.py): Built resource files
INFO (build.py): Building native libraries for Desktop...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Python//pytho n.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCE SSOR_LEVEL --action_env PROCESSOR_REVISION --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:switch=cmake //mediapipe_api:mediapipe_desktop
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c
34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class java.net.ConnectException Connection refused: connect
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83
d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpExcepti
on GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a3
2ecd248dd7612d75d2177125ed14541367.tar.gz failed: class java.net.ConnectException Connection refused: connect
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Build options --@opencv//:switch and --define have changed, discarding analysis cache.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "383
9996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
C:/mediapipe/WORKSPACE:96:13: in
Repository rule http_archive defined at:
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_s
ince = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
C:/mediapipe/WORKSPACE:31:23: in
C:/_bzl/3vmcl3ou/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
WARNING: C:/bzl/3vmcl3ou/external/com_google_mediapipe/mediapipe/framework/BUILD:54:24: in cc_library rule @com_google
mediapipe//mediapipe/framework:calculator_cc_proto: target '@com_google_mediapipe//mediapipe/framework:calculator_cc_pro
to' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/gitlab.com/libeigen/eigen/-/archive/085c2fc5
d53f391afcccce21c45e15f61c827ab1/eigen-085c2fc5d53f391afcccce21c45e15f61c827ab1.tar.gz failed: class java.net.ConnectExc
eption Connection refused: connect
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_android/archive/
v0.1.1.zip failed: class java.net.ConnectException Connection refused: connect
INFO: Repository ninja_1.10.2_win instantiated at:
C:/mediapipe/WORKSPACE:111:30: in
C:/_bzl/3vmcl3ou/external/rules_foreign_cc/foreign_cc/repositories.bzl:51:28: in rules_foreign_cc_dependencies
C:/_bzl/3vmcl3ou/external/rules_foreign_cc/toolchains/prebuilt_toolchains.bzl:64:22: in prebuilt_toolchains
C:/_bzl/3vmcl3ou/external/rules_foreign_cc/toolchains/prebuilt_toolchains.bzl:2959:14: in _ninja_toolchains
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
WARNING: Download from https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-win.zip failed: class com.go
ogle.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: objects.githubusercontent.c
om
ERROR: An error occurred during the fetch of repository 'ninja_1.10.2_win':
Traceback (most recent call last):
File "C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archi
ve_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/ninja-build/ninja/releases/dow
nload/v1.10.2/ninja-win.zip] to C:/_bzl/3vmcl3ou/external/ninja_1.10.2_win/temp15460495216712182074/ninja-win.zip: Unkno
wn host: objects.githubusercontent.com
ERROR: Error fetching repository: Traceback (most recent call last):
File "C:/_bzl/3vmcl3ou/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archi
ve_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/ninja-build/ninja/releases/dow
nload/v1.10.2/ninja-win.zip] to C:/_bzl/3vmcl3ou/external/ninja_1.10.2_win/temp15460495216712182074/ninja-win.zip: Unkno
wn host: objects.githubusercontent.com
INFO: Repository flatbuffers instantiated at:
C:/mediapipe/WORKSPACE:494:14: in
C:/_bzl/3vmcl3ou/external/org_tensorflow/tensorflow/workspace2.bzl:880:28: in workspace
C:/_bzl/3vmcl3ou/external/org_tensorflow/tensorflow/workspace2.bzl:65:16: in _initialize_third_party
C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/flatbuffers/workspace.bzl:6:20: in repo
C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:126:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:79:35: in
C:/_bzl/3vmcl3ou/external/org_tensorflow/tensorflow/workspace2.bzl:880:28: in workspace
C:/_bzl/3vmcl3ou/external/org_tensorflow/tensorflow/workspace2.bzl:65:16: in _initialize_third_party
C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/flatbuffers/workspace.bzl:6:20: in repo
C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:126:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
C:/_bzl/3vmcl3ou/external/org_tensorflow/third_party/repo.bzl:79:35: in
ERROR: C:/_bzl/3vmcl3ou/external/opencv/BUILD.bazel:87:6: @opencv//:opencv_cmake depends on @ninja_1.10.2_win//:ninja_to
ol in repository @ninja_1.10.2_win which failed to fetch. no such package '@ninja_1.10.2_win//': java.io.IOException: Er
ror downloading [https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-win.zip] to C:/_bzl/3vmcl3ou/exter
nal/ninja_1.10.2_win/temp15460495216712182074/ninja-win.zip: Unknown host: objects.githubusercontent.com
ERROR: Analysis of target '//mediapipe_api:mediapipe_desktop' failed; build aborted: Analysis failed
INFO: Elapsed time: 119.031s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (65 packages loaded, 2079 targets configured)
currently loading: @org_tensorflow//tensorflow/lite/schema
Traceback (most recent call last):
File "C:\mediapipe\build.py", line 448, in
Argument().command().run()
File "C:\mediapipe\build.py", line 143, in run
self._run_command(self._build_desktop_commands())
File "C:\mediapipe\build.py", line 54, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Python\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://
Python//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --act
ion_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:
switch=cmake //mediapipe_api:mediapipe_desktop' returned non-zero exit status 1.

Additional Context

i had tryed many times for that,but it can't success, please give me a little help , thanks

@a591537394 a591537394 added the type:build/install Cannot build/install the plugin label Mar 8, 2022
@homuler
Copy link
Owner

homuler commented Mar 8, 2022

WARNING: Download from https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-win.zip failed: class com.go
ogle.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: objects.githubusercontent.c
om

Can you download the contents using your browser?

@a591537394
Copy link
Author

thank for quick reply , i can download it by browser. but the cmd may can't.

@a591537394
Copy link
Author

and then, i had tryed more times ,
command like the follow
python build.py build --desktop cpu --opencv cmake -vv

and the logs like that

INFO: From Compiling tensorflow/lite/kernels/basic_rnn.cc:
cl : Command line warning D9002 : ignoring unknown option '-O3'
INFO: From Compiling tensorflow/lite/kernels/batch_matmul.cc:
cl : Command line warning D9002 : ignoring unknown option '-O3'
INFO: From Compiling tensorflow/lite/kernels/batch_to_space_nd.cc:
cl : Command line warning D9002 : ignoring unknown option '-O3'
INFO: From Compiling absl/time/civil_time.cc:
cl : Command line warning D9025 : overriding '/w' with '/W3'
INFO: From Compiling absl/time/clock.cc:
cl : Command line warning D9025 : overriding '/w' with '/W3'
INFO: From Compiling absl/time/duration.cc:
cl : Command line warning D9025 : overriding '/w' with '/W3'
INFO: From Compiling absl/time/format.cc:
cl : Command line warning D9025 : overriding '/w' with '/W3'
INFO: From Compiling absl/time/time.cc:
cl : Command line warning D9025 : overriding '/w' with '/W3'
INFO: From Compiling absl/base/internal/low_level_alloc.cc:
cl : Command line warning D9025 : overriding '/w' with '/W3'
INFO: From Compiling absl/synchronization/internal/graphcycles.cc:
cl : Command line warning D9025 : overriding '/w' with '/W3'
ERROR: C:/_bzl/3vmcl3ou/external/windows_opencv/BUILD.bazel:27:11: SolibSymlink _solib_x64_windows/_U@windows_Uopencv_S_
S_Copencv___Ux64_Svc15_Sbin/opencv_world3416.dll failed: missing input file 'external/windows_opencv/x64/vc15/bin/opencv
_world3416.dll', owner: '@windows_opencv//:x64/vc15/bin/opencv_world3416.dll'
Target //mediapipe_api:mediapipe_desktop failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: C:/_bzl/3vmcl3ou/external/windows_opencv/BUILD.bazel:27:11 SolibSymlink _solib_x64_windows/_U@windows_Uopencv_S_S
_Copencv___Ux64_Svc15_Sbin/opencv_world3416.dll failed: 1 input file(s) do not exist
INFO: Elapsed time: 916.984s, Critical Path: 594.22s
INFO: 928 processes: 266 internal, 662 local.
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
  File "C:\mediapipe\build.py", line 448, in <module>
    Argument().command().run()
  File "C:\mediapipe\build.py", line 143, in run
    self._run_command(self._build_desktop_commands())
  File "C:\mediapipe\build.py", line 54, in _run_command
    return subprocess.run(' '.join(command_list), check=True, shell=shell)
  File "C:\Python\lib\subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://
Python//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --act
ion_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:switch=local //medi
apipe_api:mediapipe_desktop' returned non-zero exit status 1.

@homuler
Copy link
Owner

homuler commented Mar 9, 2022

Are you using Docker?

ERROR: C:/_bzl/3vmcl3ou/external/windows_opencv/BUILD.bazel:27:11: SolibSymlink _solib_x64_windows/U@windows_Uopencv_S
S_Copencv___Ux64_Svc15_Sbin/opencv_world3416.dll failed: missing input file 'external/windows_opencv/x64/vc15/bin/opencv
_world3416.dll', owner: '@windows_opencv//:x64/vc15/bin/opencv_world3416.dll'

It's true that the version of OpenCV which is installed on a Docker container is wrong, but I don't know why the local OpenCV is referenced when building with the --opencv cmake switch.
At any rate, I have fixed it (#484), so please try the latest commit.

@homuler homuler closed this as completed Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install Cannot build/install the plugin
Projects
None yet
Development

No branches or pull requests

2 participants