Repository: homuler/MediaPipeUnityPlugin

Issue #603: Bazel Error :  git apply ..\mediapipe\third_party\bazel_android_fixes.diff
Created: 2022-06-07T11:25:54Z
Plugin Version or Commit ID
v0.10.0
Unity Version
2021.3.3f1
Your Host OS
Windows 10 Docker
Target Platform
UnityEditor
[Windows Only] Visual Studio C++ and Windows SDK Version
No response
[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
git apply ..\mediapipe\third_party\bazel_android_fixes.diff
Log
C:\mediapipe>git clone https://github.com/bazelbuild/bazel.git C:\bazel
Cloning into '/c/bazel'...
remote: Enumerating objects: 618446, done.
remote: Counting objects: 100% (1186/1186), done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection reset by peer, errno 104
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
C:\mediapipe>git clone https://github.com/bazelbuild/bazel.git C:\bazel
Cloning into '/c/bazel'...
remote: Enumerating objects: 618446, done.
remote: Counting objects: 100% (1186/1186), done.
remote: Compressing objects: 100% (637/637), done.
remote: Total 618446 (delta 509), reused 1028 (delta 387), pack-reused 617260
Receiving objects: 100% (618446/618446), 836.63 MiB | 14.48 MiB/s, done.
Resolving deltas: 100% (386733/386733), done.
Updating files: 100% (9340/9340), done.
C:\mediapipe>cd C:\bazel
C:\bazel>git checkout 5.0.0
Updating files: 100% (3703/3703), done.
Note: switching to '5.0.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c 
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 41feb616ae Release 5.0.0 (2022-01-19)
C:\bazel>git apply ..\mediapipe\third_party\bazel_android_fixes.diff
error: patch failed: src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_ndk_cc_toolchain_template.txt:14
error: src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_ndk_cc_toolchain_template.txt: patch does not apply
error: patch failed: src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java:31
error: src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java: patch does not apply
C:\bazel>
Additional Context
No response

Duplicate issue #608: Installation Guide - Docker Windows Container error
Created: 2022-06-13T06:07:52Z
Plugin Version or Commit ID
v.0.10.0
Unity Version
2021.3.3f1
Your Host OS
Windows 10 Pro
Target Platform
UnityEditor, Android
[Windows Only] Visual Studio C++ and Windows SDK Version
Visual Studio C++ : 14.29.30133
Window SDK : 10.0.19041.0
[Linux Only] GCC/G++ and GLIBC Version
No response
[Android Only] Android Build Tools and NDK Version
NDK : 21.4.7075529
[iOS Only] XCode Version
No response
Command Sequences
git apply ..\mediapipe\third_party\bazel_android_fixes.diff
Log
C:\bazel>git apply ..\mediapipe\third_party\bazel_android_fixes.diff
error: patch failed: src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_ndk_cc_toolchain_template.t
xt:14
error: src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_ndk_cc_toolchain_template.txt: patch does
not apply
error: patch failed: src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java:31
error: src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java: patch does not apply
Additional Context
In order to build and test Android in Unity Editor, Docker Windows Container was in progress.
A further question is, the end goal is to build in the Unity editor and run it in the Android environment. If I complete python build.py build --desktop cpu -vv and build it again on Android in Unity editor, is it done?
Take good care of me

Closing comment (2022-06-13T08:24:46Z): duplicates #603.
See https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#windows and https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#binbash-line-1-r-command-not-found.


⚠️ You MUST NOT set core.autocrlf in .gitconfig (run git config -l). To build libraries successfully, you need to check out the source code as it is without changing the line feed code.