Giter Site home page Giter Site logo

Comments (6)

mgyong avatar mgyong commented on April 27, 2024

@camillol @jiuqiant
@Sanerly MediaPipe for android only supports the bazel build system. Here are instructions on how to setup Android Studio with bazel.

If you have gradle build system for Android, you will have to build MediaPipe using bazel build system for Android. Both systems are incompatible for now.
Here are instructions on how to migrate from gradle to bazel

from mediapipe.

Sanerly avatar Sanerly commented on April 27, 2024

@mgyong
Thanks a lot, my project is more complicated and it is difficult to migrate from Gradle. I am currently using windows10, bazel is installed with chocolatey, and then I get an error when opening the MediaPipe project:
E:/myproject/mediapipe-master/WORKSPACE:103:1
INFO: Repository 'org_tensorflow' used the following cache hits instead of downloading the corresponding file.
Hash 'ddd4e3c056e7c0ff2ef29133b30fa62781dfbf8a903e99efb91a02d292fa9562' for https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/67def62936e28f97c16182dfcc467d8d1cae02b4.tar.gz
If the definition of 'org_tensorflow' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'org_tensorflow':
Traceback (most recent call last):
File "C:/users/administrator/_bazel_administrator/miimwwwx/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
Patch(ctx)

Is it because I don't have the reason to install tensorflow? I don't know now, I am a little dizzy.

from mediapipe.

jiuqiant avatar jiuqiant commented on April 27, 2024

Unfortunately, MediaPipe doesn't support Windows yet. We do support Windows Subsystem for Linux.
I am also not quite sure if MediaPipe can be integrated with Android Studio on Windows. We haven't tried this workflow by ourselves.

from mediapipe.

Sanerly avatar Sanerly commented on April 27, 2024

Thank you, may I ask the next version to consider supporting the Gradle compilation of Android studio under Windows?

from mediapipe.

PrinceP avatar PrinceP commented on April 27, 2024

@mgyong Can you explain the error. Syncing again with invalidating caches is not working.
Is it a windows bazel version issue? Or a org_tensorflow patch has to be updated?
Would like to work on this.

from mediapipe.

PrinceP avatar PrinceP commented on April 27, 2024

@mgyong Below is the cause of the error in building.

#2019-08-15
_TENSORFLOW_GIT_COMMIT = "67def62936e28f97c16182dfcc467d8d1cae02b4"
_TENSORFLOW_SHA256= "ddd4e3c056e7c0ff2ef29133b30fa62781dfbf8a903e99efb91a02d292fa9562"
http_archive(
name = "org_tensorflow",
urls = [
"https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/%s.tar.gz" % _TENSORFLOW_GIT_COMMIT,
"https://github.com/tensorflow/tensorflow/archive/%s.tar.gz" % _TENSORFLOW_GIT_COMMIT,
],
strip_prefix = "tensorflow-%s" % _TENSORFLOW_GIT_COMMIT,
sha256 = _TENSORFLOW_SHA256,
patches = [
"@//third_party:tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff",
"@//third_party:tensorflow_f67fcbefce906cd419e4657f0d41e21019b71abd.diff",
],
patch_args = [
"-p1",
],
)

Causing the below error. Which is applying the patch error. Is this a bazel issue.

ERROR: An error occurred during the fetch of repository 'org_tensorflow':
Traceback (most recent call last):
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
patch(ctx)
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 91, in patch
fail(("Error applying patch %s:\n%s%s...)))
Error applying patch //third_party:tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff:
/bin/bash: E:/mediapipe/third_party/tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff: No such file or directory
ERROR: no such package '@org_tensorflow//tensorflow': Traceback (most recent call last):
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
patch(ctx)
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 91, in patch
fail(("Error applying patch %s:\n%s%s...)))
Error applying patch //third_party:tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff:
/bin/bash: E:/mediapipe/third_party/tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff: No such file or directory
Sync finished

from mediapipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.