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

Error in make android_arm #16

Closed
yellowflash07 opened this issue Oct 20, 2020 · 14 comments
Closed

Error in make android_arm #16

yellowflash07 opened this issue Oct 20, 2020 · 14 comments

Comments

@yellowflash07
Copy link

executing command

make android_arm

throws

cd C && bazel build -c opt --config=android_arm //mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android //mediapipe_api:mediapipe_models //mediapipe_api:mediapipe_proto_srcs
INFO: Build options --cpu, --crosstool_top, --define, and 2 more have changed, discarding analysis cache.
WARNING: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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: /home/ershad/MediaPipeUnityPlugin/C/mediapipe_api/java/org/homuler/mediapipe/unity/BUILD:4:14: in srcs attribute of android_library rule //mediapipe_api/java/org/homuler/mediapipe/unity: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 3 targets (0 packages loaded, 12454 targets configured).
INFO: Found 3 targets...
ERROR: /home/ershad/.cache/bazel/_bazel_ershad/c85dc9a9ed20eb7e2807b6ec0d9f4cd1/external/ruy/ruy/BUILD:183:11: C++ compilation of rule '@ruy//ruy:prepacked_cache' failed (Exit 1) clang failed: error executing command external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang '-D__ANDROID_API__=28' -isystemexternal/androidndk/ndk/sysroot/usr/include/arm-linux-androideabi -target ... (remaining 46 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/ruy/ruy/prepacked_cache.cc:16:
external/ruy/ruy/prepacked_cache.h:19:10: fatal error: 'cstddef' file not found
#include <cstddef>
         ^~~~~~~~~
1 error generated.
INFO: Elapsed time: 7.115s, Critical Path: 5.62s
INFO: 24 processes: 17 linux-sandbox, 7 worker.
FAILED: Build did NOT complete successfully
make: *** [Makefile:41: android_arm] Error 1

How to fix this?

@homuler
Copy link
Owner

homuler commented Oct 20, 2020

Can you build the official example?
https://google.github.io/mediapipe/getting_started/building_examples.html#android

If you can build it, then please run

cd C && bazel build -c opt --config=android_arm //mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android --sandbox_debug

and attach the log.

@yellowflash07
Copy link
Author

yellowflash07 commented Oct 24, 2020

nope I am unable to build official examples. I don't know what I am doing wrong. Anyways I pulled an issue
on mediapipe's github.

please do help if you know what I am doing wrong

@homuler
Copy link
Owner

homuler commented Oct 24, 2020

Will you attach the output of the below commands? (run under mediapipe repo's root)

ls $ANDROID_HOME
ls $ANDROID_NDK_HOME

bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu --verbose_failures

@yellowflash07
Copy link
Author

yellowflash07 commented Oct 24, 2020

output for ls $ANDROID_HOME

build-tools emulator licenses ndk-bundle patcher platforms platform-tools tools

output for ls $ANDROID_NDK_HOME

build  ndk-build    ndk-gdb    NOTICE            platforms  python-packages  shader-tools  source.properties  toolchains
meta   ndk-depends  ndk-which  NOTICE.toolchain  prebuilt   README.md        simpleperf    sysroot            wrap.sh

output for bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu --verbose_failures

INFO: Analyzed target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/ershad/mediapipe/mediapipe/framework/formats/object_detection/BUILD:30:27: C++ compilation of rule '//mediapipe/framework/formats/object_detection:anchor_cc_proto' failed (Exit 1): clang failed: error executing command 
  (cd /home/ershad/.cache/bazel/_bazel_ershad/4a1fe88eb814365cad0283cddcf1ae6e/sandbox/linux-sandbox/142/execroot/mediapipe && \
  exec env - \
    PATH=/home/ershad/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ershad/.dotnet/tools \
    PWD=/proc/self/cwd \
  external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 -target aarch64-none-linux-android -ffunction-sections -funwind-tables -fstack-protector-strong -fpic -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -isystemexternal/androidndk/ndk/sysroot/usr/include/aarch64-linux-android '-D__ANDROID_API__=28' -O2 -g -DNDEBUG -MD -MF bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/_objs/anchor_cc_proto/anchor.pb.pic.d '-frandom-seed=bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/_objs/anchor_cc_proto/anchor.pb.pic.o' -fPIC -iquote . -iquote bazel-out/android-arm64-v8a-opt/bin -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 -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 '-std=c++14' '--sysroot=external/androidndk/ndk/platforms/android-28/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 bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/anchor.pb.cc -o bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/_objs/anchor_cc_proto/anchor.pb.pic.o)
Execution platform: @local_execution_config_platform//:platform

Use --sandbox_debug to see verbose messages from the sandbox clang failed: error executing command 
  (cd /home/ershad/.cache/bazel/_bazel_ershad/4a1fe88eb814365cad0283cddcf1ae6e/sandbox/linux-sandbox/142/execroot/mediapipe && \
  exec env - \
    PATH=/home/ershad/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ershad/.dotnet/tools \
    PWD=/proc/self/cwd \
  external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 -target aarch64-none-linux-android -ffunction-sections -funwind-tables -fstack-protector-strong -fpic -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -isystemexternal/androidndk/ndk/sysroot/usr/include/aarch64-linux-android '-D__ANDROID_API__=28' -O2 -g -DNDEBUG -MD -MF bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/_objs/anchor_cc_proto/anchor.pb.pic.d '-frandom-seed=bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/_objs/anchor_cc_proto/anchor.pb.pic.o' -fPIC -iquote . -iquote bazel-out/android-arm64-v8a-opt/bin -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 -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 '-std=c++14' '--sysroot=external/androidndk/ndk/platforms/android-28/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 bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/anchor.pb.cc -o bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/_objs/anchor_cc_proto/anchor.pb.pic.o)
Execution platform: @local_execution_config_platform//:platform

Use --sandbox_debug to see verbose messages from the sandbox
In file included from bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/anchor.pb.cc:4:
bazel-out/android-arm64-v8a-opt/bin/mediapipe/framework/formats/object_detection/anchor.pb.h:7:10: fatal error: 'limits' file not found
#include <limits>
         ^~~~~~~~
1 error generated.
Target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu failed to build
INFO: Elapsed time: 5.231s, Critical Path: 4.64s
INFO: 139 processes: 131 internal, 8 linux-sandbox.
FAILED: Build did NOT complete successfully

`

@homuler
Copy link
Owner

homuler commented Oct 25, 2020

Then what is the output of this command?

bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu --verbose_failures --sandbox_debug

@yellowflash07
Copy link
Author

@homuler
Copy link
Owner

homuler commented Oct 25, 2020

Have you installed all of them?

  • Android SDK Platform API Level 28 or 29
  • Android SDK Build-Tools 28 or 29
  • Android SDK Platform-Tools 28 or 29
  • Android SDK Tools 26.1.1
  • Android NDK 17c or above

@homuler
Copy link
Owner

homuler commented Oct 25, 2020

I suspect there are no STL header files (e.g. $ANDROID_NDK_HOME/sources/cxx-stl/llvm-libc++/include/*.h) under NDK home.

@yellowflash07
Copy link
Author

Path Version Description Location
build-tools;29.0.1 29.0.1 Android SDK Build-Tools 29.0.1 build-tools/29.0.1/
emulator 30.1.5 Android Emulator emulator/
patcher;v4 1 SDK Patch Applier v4 patcher/v4/
platform-tools 30.0.4 Android SDK Platform-Tools platform-tools/
platforms;android-29 5 Android SDK Platform 29 platforms/android-29/

yep i have them installed.

how do i put the said STL header files there?

@homuler
Copy link
Owner

homuler commented Oct 25, 2020

How about NDK?

ls $ANDROID_NDK_HOME/sources/**/*.h

@yellowflash07
Copy link
Author

ls: cannot access '/home/ershad/Android/Sdk/ndk-bundle/android-ndk-r18b/sources/**/*.h': No such file or directory

that gives an error

@homuler
Copy link
Owner

homuler commented Oct 25, 2020

I'm sorry, bash must return an error.
Are there any header files under $ANDROID_NDK_HOME/sources/ ?

e.g.

find $ANDROID_NDK_HOME/sources/ | grep "limits\.h"

@yellowflash07
Copy link
Author

yellowflash07 commented Oct 25, 2020

there isn't a folder called "sources"
find: ‘/home/ershad/Android/Sdk/ndk-bundle/android-ndk-r18b/sources/’: No such file or directory

@homuler
Copy link
Owner

homuler commented Oct 25, 2020

Android NDK 17c or above

Please be sure to install Android NDK. If you have already installed it, then you should probably install it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants