Can not build native libraries for Android (on Windows)
See original GitHub issueHey @homuler , First of all, hats of to you and your team members for this project. You guys are doing a great job and are really active too.
I have successfully build windows native libraries for unity project by following the Readme. It seems to work fine on Unity in windows. I am facing issues while building for android.
My setup is: ~ Windows 10 ~ Bazel 4.0.0 (also tried with 3.7.1… but no luck as I receive same errors) ~ Android NDK r21(21.4.7075529) ~ Unity 2019.4.18f
I run the following command to build native libraries for android
python build.py build --android arm64 -v --verbose_failures
This is the error I get:
ERROR: C:/_bzl/gd73vkql/external/com_google_mediapipe/mediapipe/framework/tool/BUILD:671:11: C++ compilation of rule '@com_google_mediapipe//mediapipe/framework/tool:switch_container' failed (Exit 1): clang failed: error executing command
cd C:/_bzl/gd73vkql/execroot/mediapipe_api
SET PATH=C:\msys64\usr\bin;C:\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Java\jdk1.8.0_271\bin;D:\ProgramFiles\Android\Sdk\tools;D:\ProgramFiles\Android\Sdk\platform-tools;C:\Program Files\Git\cmd;C:\Program Files\Git LFS;C:\Users\jatin\AppData\Local\Programs\Interhaptics\Dependencies\x64;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Bazel;C:\Program Files\dotnet\;C:\nuget;C:\MinGW\bin;D:\ProgramFiles\LLVM\bin;C:\Users\jatin\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\jatin\AppData\Local\Programs\Python\Python39\;C:\Users\jatin\AppData\Local\Microsoft\WindowsApps;C:\Users\jatin\AppData\Local\GitHubDesktop\bin;D:\ProgramFiles\flutter\bin;C:\msys64\usr\bin;C:\Bazel;C:\Users\jatin\.dotnet\tools;C:\MinGW\bin;
SET PWD=/proc/self/cwd
SET PYTHON_BIN_PATH=C://Users//jatin//AppData//Local//Programs//Python//Python39//python.exe
SET RUNFILES_MANIFEST_ONLY=1
external/androidndk/ndk/toolchains/llvm/prebuilt/windows-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -target aarch64-none-linux-android -fpic -isystemexternal/androidndk/ndk/sysroot/usr/include/aarch64-linux-android -D__ANDROID_API__=29 -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -funwind-tables -fstack-protector-strong -fno-addrsig -Werror=return-type -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=implicit-function-declaration -O2 -g -DNDEBUG -MD -MF bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe/mediapipe/framework/tool/_objs/switch_container/switch_container.pic.d -frandom-seed=bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe/mediapipe/framework/tool/_objs/switch_container/switch_container.pic.o -fPIC -DMEDIAPIPE_PROFILER_AVAILABLE -iquote external/com_google_mediapipe -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe -iquote external/com_google_protobuf -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/android-arm64-v8a-opt/bin/external/zlib -iquote external/com_github_glog_glog_no_gflags -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_github_glog_glog_no_gflags -iquote external/com_google_absl -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_google_absl -iquote external/androidndk -iquote bazel-out/android-arm64-v8a-opt/bin/external/androidndk -Ibazel-out/android-arm64-v8a-opt/bin/external/com_github_glog_glog_no_gflags/_virtual_includes/default_glog_headers -isystem external/com_google_protobuf/src -isystem bazel-out/android-arm64-v8a-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/android-arm64-v8a-opt/bin/external/zlib /w /D_USE_MATH_DEFINES /std:c++17 --sysroot=external/androidndk/ndk/platforms/android-29/arch-arm64 -isystem external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include -isystem external/androidndk/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem external/androidndk/ndk/sources/android/support/include -isystemexternal/androidndk/ndk/sysroot/usr/include -c external/com_google_mediapipe/mediapipe/framework/tool/switch_container.cc -o bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe/mediapipe/framework/tool/_objs/switch_container/switch_container.pic.o
Execution platform: @local_execution_config_platform//:platform
clang: error: no such file or directory: '/w'
clang: error: no such file or directory: '/D_USE_MATH_DEFINES'
clang: error: no such file or directory: '/std:c++17'
Target //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android failed to build
INFO: Elapsed time: 104.651s, Critical Path: 67.09s
INFO: 545 processes: 297 internal, 248 local.
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "D:\ARious\Unity_Projects\GITHUB\MediaPipeUnityPlugin-0.5.1\MediaPipeUnityPlugin-0.5.1\build.py", line 341, in <module>
Argument().command().run()
File "D:\ARious\Unity_Projects\GITHUB\MediaPipeUnityPlugin-0.5.1\MediaPipeUnityPlugin-0.5.1\build.py", line 131, in run
self._run_command(self._build_android_commands())
File "D:\ARious\Unity_Projects\GITHUB\MediaPipeUnityPlugin-0.5.1\MediaPipeUnityPlugin-0.5.1\build.py", line 43, in _run_command
return subprocess.run(command_list, check=True)
File "C:\Users\jatin\AppData\Local\Programs\Python\Python39\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://Users//jatin//AppData//Local//Programs//Python//Python39//python.exe', '--verbose_failures', '--config=android_arm64', '//mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android']' returned non-zero exit status 1.
Also I am get a few warning as well. So, I am attaching the complete log:
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://Users//jatin//AppData//Local//Programs//Python//Python39//python.exe --verbose_failures //mediapipe_api:mediapipe_proto_srcs`
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: SHA256 (https://github.com/bazelbuild/rules_foreign_cc/archive/main.zip) = 8a71ebdbb04bdc5747ea1f35ddb1cb734f42cce84f5d9cd9a66791a33530019f
DEBUG: Rule 'rules_foreign_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "8a71ebdbb04bdc5747ea1f35ddb1cb734f42cce84f5d9cd9a66791a33530019f"
DEBUG: Repository rules_foreign_cc instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:79:13: in <toplevel>
Repository rule http_archive defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: C:/_bzl/gd73vkql/external/rules_foreign_cc/workspace_definitions.bzl:6:6: `@rules_foreign_cc//:workspace_definitions.bzl` has been replaced by `@rules_foreign_cc//foreign_cc:repositories.bzl`. Please use the updated source location
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:30:23: in <toplevel>
C:/_bzl/gd73vkql/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
INFO: SHA256 (https://github.com/bazelbuild/rules_cc/archive/master.zip) = 39530432fdce0eda8e78d179330ff454f6cbec8973ab7310aab335460a9f06f6
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "39530432fdce0eda8e78d179330ff454f6cbec8973ab7310aab335460a9f06f6"
DEBUG: Repository rules_cc instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:73:13: in <toplevel>
Repository rule http_archive defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Analyzed target //mediapipe_api:mediapipe_proto_srcs (38 packages loaded, 662 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: 63.064s, Critical Path: 1.36s
INFO: 9 processes: 7 internal, 2 local.
INFO: Build completed successfully, 9 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 protobuf dlls...
DEBUG (build.py): Running `nuget install -o .nuget`
Feeds used:
C:\Users\jatin\.nuget\packages\
https://api.nuget.org/v3/index.json
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
All packages listed in D:\ARious\Unity_Projects\GITHUB\MediaPipeUnityPlugin-0.5.1\MediaPipeUnityPlugin-0.5.1\packages.config are already installed.
DEBUG (build.py): Copying '.nuget\Google.Protobuf.3.15.6\lib\netstandard2.0\Google.Protobuf.dll' to 'build\Plugins\Protobuf\Google.Protobuf.dll'...
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\System.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.CompilerServices.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://Users//jatin//AppData//Local//Programs//Python//Python39//python.exe --verbose_failures //mediapipe_api:mediapipe_assets`
DEBUG: Rule 'rules_foreign_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "8a71ebdbb04bdc5747ea1f35ddb1cb734f42cce84f5d9cd9a66791a33530019f"
DEBUG: Repository rules_foreign_cc instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:79:13: in <toplevel>
Repository rule http_archive defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: C:/_bzl/gd73vkql/external/rules_foreign_cc/workspace_definitions.bzl:6:6: `@rules_foreign_cc//:workspace_definitions.bzl` has been replaced by `@rules_foreign_cc//foreign_cc:repositories.bzl`. Please use the updated source location
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:30:23: in <toplevel>
C:/_bzl/gd73vkql/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "39530432fdce0eda8e78d179330ff454f6cbec8973ab7310aab335460a9f06f6"
DEBUG: Repository rules_cc instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:73:13: in <toplevel>
Repository rule http_archive defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Analyzed target //mediapipe_api:mediapipe_assets (18 packages loaded, 46 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_assets up-to-date:
bazel-bin/mediapipe_api/mediapipe_assets.zip
INFO: Elapsed time: 3.931s, Critical Path: 3.41s
INFO: 2 processes: 1 internal, 1 local.
INFO: Build completed successfully, 2 total actions
DEBUG (build.py): Unarchiving 'bazel-bin\mediapipe_api\mediapipe_assets.zip' to 'build\Resources'...
INFO (build.py): Built resource files
INFO (build.py): Building native libraries for Android...
DEBUG (build.py): Running `bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH=C://Users//jatin//AppData//Local//Programs//Python//Python39//python.exe --verbose_failures --config=android_arm64 //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android`
DEBUG: Rule 'rules_foreign_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "8a71ebdbb04bdc5747ea1f35ddb1cb734f42cce84f5d9cd9a66791a33530019f"
DEBUG: Repository rules_foreign_cc instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:79:13: in <toplevel>
Repository rule http_archive defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: C:/_bzl/gd73vkql/external/rules_foreign_cc/workspace_definitions.bzl:6:6: `@rules_foreign_cc//:workspace_definitions.bzl` has been replaced by `@rules_foreign_cc//foreign_cc:repositories.bzl`. Please use the updated source location
INFO: Build options --cpu, --crosstool_top, --fat_apk_cpu, and 1 more have changed, discarding analysis cache.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "39530432fdce0eda8e78d179330ff454f6cbec8973ab7310aab335460a9f06f6"
DEBUG: Repository rules_cc instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:73:13: in <toplevel>
Repository rule http_archive defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/WORKSPACE:30:23: in <toplevel>
C:/_bzl/gd73vkql/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/gd73vkql/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: C:/_bzl/gd73vkql/external/rules_foreign_cc/tools/build_defs/deprecation.bzl:5:10: `@rules_foreign_cc//tools/build_defs/...` is deprecated, please find the relevant symbols in `@rules_foreign_cc//foreign_cc/...`. Note that the core rules can now be loaded from `@rules_foreign_cc//foreign_cc:defs.bzl`
WARNING: API level 30 specified by android_ndk_repository 'androidndk' is not available. Using latest known API level 29WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:AudioDataConsumer.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:AudioDataProcessor.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:AudioDataProducer.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:CameraHelper.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:CameraXPreviewHelper.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:ExternalTextureConverter.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:FrameProcessor.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:MicrophoneHelper.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:PermissionHelper.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:TextureFrameConsumer.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:TextureFrameProcessor.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/components:TextureFrameProducer.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:AndroidAssetUtil.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:AndroidPacketCreator.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:AndroidPacketGetter.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:AppTextureFrame.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:AssetCache.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:AssetCacheDbHelper.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:Compat.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:GlSyncToken.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:Graph.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:GraphGlSyncToken.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:GraphProfiler.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:GraphService.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:GraphTextureFrame.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:MediaPipeException.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:MediaPipeRunner.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:Packet.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:PacketCallback.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:PacketCreator.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:PacketGetter.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:PacketWithHeaderCallback.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:ProtoUtil.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:SurfaceOutput.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:TextureFrame.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:TextureReleaseCallback.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:TypeNameRegistry.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/framework:TypeNameRegistryLite.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/glutil:CommonShaders.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/glutil:EglManager.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/glutil:ExternalTextureRenderer.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/glutil:GlThread.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/glutil:ShaderUtil.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
WARNING: D:/arious/unity_projects/github/mediapipeunityplugin-0.5.1/mediapipeunityplugin-0.5.1/mediapipe_api/java/com/github/homuler/mediapipe/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android_android_lib: please do not import '@com_google_mediapipe//mediapipe/java/com/google/mediapipe/glutil:TextureRenderer.java' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'mediapipe_aar', the error might have been caused by the macro implementation
INFO: Analyzed target //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android (166 packages loaded, 19494 targets configured).
INFO: Found 1 target...
INFO: From Compiling com_google_mediapipe/mediapipe/framework/deps/ret_check.cc [for host]:
C:\_bzl\gd73vkql\execroot\mediapipe_api\bazel-out\host\bin\external\com_github_glog_glog\_virtual_includes\windows_glog_headers\glog\logging.h(1660) : warning C4722: 'google::NullStreamFatal::~NullStreamFatal': destructor never returns, potential memory leak
INFO: From Generating JavaLite proto_library @com_google_mediapipe//mediapipe/framework:mediapipe_options_proto:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/compiler/java/java_file.cc:230] mediapipe/framework/mediapipe_options.proto: The file's outer class name, "MediapipeOptions", matches the name of one of the types declared inside it when case is ignored. This can cause compilation issues on Windows / MacOS. Please either rename the type or use the java_outer_classname option to specify a different outer class name for the .proto file to be safe.
INFO: From Generating JavaLite proto_library @com_google_mediapipe//mediapipe/framework:mediapipe_options_proto:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/compiler/java/java_file.cc:230] mediapipe/framework/mediapipe_options.proto: The file's outer class name, "MediapipeOptions", matches the name of one of the types declared inside it when case is ignored. This can cause compilation issues on Windows / MacOS. Please either rename the type or use the java_outer_classname option to specify a different outer class name for the .proto file to be safe.
INFO: From Compiling com_google_mediapipe/mediapipe/framework/deps/status.cc [for host]:
C:\_bzl\gd73vkql\execroot\mediapipe_api\bazel-out\host\bin\external\com_github_glog_glog\_virtual_includes\windows_glog_headers\glog\logging.h(1660) : warning C4722: 'google::NullStreamFatal::~NullStreamFatal': destructor never returns, potential memory leak
INFO: From Compiling com_google_mediapipe/mediapipe/framework/deps/status_builder.cc [for host]:
C:\_bzl\gd73vkql\execroot\mediapipe_api\bazel-out\host\bin\external\com_github_glog_glog\_virtual_includes\windows_glog_headers\glog\logging.h(1660) : warning C4722: 'google::NullStreamFatal::~NullStreamFatal': destructor never returns, potential memory leak
INFO: From Compiling com_google_mediapipe/mediapipe/framework/tool/text_to_binary_graph.cc [for host]:
C:\_bzl\gd73vkql\execroot\mediapipe_api\bazel-out\host\bin\external\com_github_glog_glog\_virtual_includes\windows_glog_headers\glog\logging.h(1660) : warning C4722: 'google::NullStreamFatal::~NullStreamFatal': destructor never returns, potential memory leak
ERROR: C:/_bzl/gd73vkql/external/com_google_mediapipe/mediapipe/framework/tool/BUILD:671:11: C++ compilation of rule '@com_google_mediapipe//mediapipe/framework/tool:switch_container' failed (Exit 1): clang failed: error executing command
cd C:/_bzl/gd73vkql/execroot/mediapipe_api
SET PATH=C:\msys64\usr\bin;C:\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Java\jdk1.8.0_271\bin;D:\ProgramFiles\Android\Sdk\tools;D:\ProgramFiles\Android\Sdk\platform-tools;C:\Program Files\Git\cmd;C:\Program Files\Git LFS;C:\Users\jatin\AppData\Local\Programs\Interhaptics\Dependencies\x64;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Bazel;C:\Program Files\dotnet\;C:\nuget;C:\MinGW\bin;D:\ProgramFiles\LLVM\bin;C:\Users\jatin\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\jatin\AppData\Local\Programs\Python\Python39\;C:\Users\jatin\AppData\Local\Microsoft\WindowsApps;C:\Users\jatin\AppData\Local\GitHubDesktop\bin;D:\ProgramFiles\flutter\bin;C:\msys64\usr\bin;C:\Bazel;C:\Users\jatin\.dotnet\tools;C:\MinGW\bin;
SET PWD=/proc/self/cwd
SET PYTHON_BIN_PATH=C://Users//jatin//AppData//Local//Programs//Python//Python39//python.exe
SET RUNFILES_MANIFEST_ONLY=1
external/androidndk/ndk/toolchains/llvm/prebuilt/windows-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -target aarch64-none-linux-android -fpic -isystemexternal/androidndk/ndk/sysroot/usr/include/aarch64-linux-android -D__ANDROID_API__=29 -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -funwind-tables -fstack-protector-strong -fno-addrsig -Werror=return-type -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=implicit-function-declaration -O2 -g -DNDEBUG -MD -MF bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe/mediapipe/framework/tool/_objs/switch_container/switch_container.pic.d -frandom-seed=bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe/mediapipe/framework/tool/_objs/switch_container/switch_container.pic.o -fPIC -DMEDIAPIPE_PROFILER_AVAILABLE -iquote external/com_google_mediapipe -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe -iquote external/com_google_protobuf -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/android-arm64-v8a-opt/bin/external/zlib -iquote external/com_github_glog_glog_no_gflags -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_github_glog_glog_no_gflags -iquote external/com_google_absl -iquote bazel-out/android-arm64-v8a-opt/bin/external/com_google_absl -iquote external/androidndk -iquote bazel-out/android-arm64-v8a-opt/bin/external/androidndk -Ibazel-out/android-arm64-v8a-opt/bin/external/com_github_glog_glog_no_gflags/_virtual_includes/default_glog_headers -isystem external/com_google_protobuf/src -isystem bazel-out/android-arm64-v8a-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/android-arm64-v8a-opt/bin/external/zlib /w /D_USE_MATH_DEFINES /std:c++17 --sysroot=external/androidndk/ndk/platforms/android-29/arch-arm64 -isystem external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include -isystem external/androidndk/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem external/androidndk/ndk/sources/android/support/include -isystemexternal/androidndk/ndk/sysroot/usr/include -c external/com_google_mediapipe/mediapipe/framework/tool/switch_container.cc -o bazel-out/android-arm64-v8a-opt/bin/external/com_google_mediapipe/mediapipe/framework/tool/_objs/switch_container/switch_container.pic.o
Execution platform: @local_execution_config_platform//:platform
clang: error: no such file or directory: '/w'
clang: error: no such file or directory: '/D_USE_MATH_DEFINES'
clang: error: no such file or directory: '/std:c++17'
Target //mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android failed to build
INFO: Elapsed time: 104.651s, Critical Path: 67.09s
INFO: 545 processes: 297 internal, 248 local.
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "D:\ARious\Unity_Projects\GITHUB\MediaPipeUnityPlugin-0.5.1\MediaPipeUnityPlugin-0.5.1\build.py", line 341, in <module>
Argument().command().run()
File "D:\ARious\Unity_Projects\GITHUB\MediaPipeUnityPlugin-0.5.1\MediaPipeUnityPlugin-0.5.1\build.py", line 131, in run
self._run_command(self._build_android_commands())
File "D:\ARious\Unity_Projects\GITHUB\MediaPipeUnityPlugin-0.5.1\MediaPipeUnityPlugin-0.5.1\build.py", line 43, in _run_command
return subprocess.run(command_list, check=True)
File "C:\Users\jatin\AppData\Local\Programs\Python\Python39\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://Users//jatin//AppData//Local//Programs//Python//Python39//python.exe', '--verbose_failures', '--config=android_arm64', '//mediapipe_api/java/com/github/homuler/mediapipe:mediapipe_android']' returned non-zero exit status 1.
I would like to mention here that, I tried to use v0.5.0 as well as v0.5.1 of this project and both the times I am able to build native libraries for windows but not for android (and recieve the same errors as mentioned above.)
Also, I noticed that I was able to build v0.5.1 for windows yesterday and it was working great on Unity (windows) as well but today I can see an error popped up, it states
Assets\Mediapipe\Samples\Scripts\SceneDirector.cs(53,33): error CS0103: The name 'GetCurrentContext' does not exist in the current contex
In order to fix things, I rebuild the native libraries for windows using command:
python build.py build --desktop cpu -v --verbose_failures
The build process completes succesfully but when I again open Unity the error (Assets\Mediapipe\Samples\Scripts\SceneDirector.cs(53,33): error CS0103: The name 'GetCurrentContext' does not exist in the current contex
) still persists.
This is the first time posting an issues. Kindly don’t mind any noob mistakes I make. Kindly let me know if you need more information from my side.
Thanks in advance. 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Thanks for your help.
I will dig deeper into the project to see what all info, processed by Media Pipe, can be used in Unity.
Once again, thanks for your quick reply and keep up the good work mate. 💯 🔥
Also, in Readme.md, there is typo in block given after step 5.
(Closing this issue with this comment.)
Hi Homuler, Could you resolve this bug? I got same error and I wonder if you could fix this. Thank you so much!