Skip to content

[Android] Bazel build error: cannot load @@rules_cc//cc:cc_library.bzl when building MediaPipe #6095

@itshouldwork-mant

Description

@itshouldwork-mant

OS Platform and Distribution

Android 9

Compiler version

OS: Ubuntu 22.04 (x86_64)

Programming Language and version

C++

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

pip

MediaPipe version

0.9.1

Bazel version

7.4.1

XCode and Tulsi versions (if iOS)

No response

Android SDK and NDK versions (if android)

NDK 21.4

Android AAR (if android)

None

OpenCV version (if running on desktop)

No response

Describe the problem

A bug happened!

Complete Logs

I am trying to build the Android handtrackinggpu example using Bazel, but I keep hitting an error related to rules_cc.
Despite cloning and pointing to rules_cc locally, Bazel still complains that it cannot find cc_binary.bzl or cc_library.bzl.

Metadata

Metadata

Assignees

Labels

os:linux-non-armIssues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices.platform:androidIssues with Android as Platformplatform:c++Issues specific to C++ framework in mediapipetask:hand landmarkerIssues related to hand landmarker: Identify and track hands and fingerstype:build/installFor Build and Installation issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions