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

Building for x86_64 flag is missing #2979

Closed
ya332 opened this issue Jan 12, 2022 · 2 comments
Closed

Building for x86_64 flag is missing #2979

ya332 opened this issue Jan 12, 2022 · 2 comments
Assignees
Labels
legacy:hair segmentation Hair Segmentation related issues platform:android Issues with Android as Platform type:build/install For Build and Installation issues

Comments

@ya332
Copy link

ya332 commented Jan 12, 2022

Please make sure that this is a build/installation issue and also refer to the troubleshooting documentation before raising any issues.

System information (Please provide as much relevant information as possible)

OS Platform and Distribution (e.g. Linux Ubuntu 16.04, Android 11, iOS 14.4): Windows 11, Android 11 API 30

Compiler version (e.g. gcc/g++ 8 /Apple clang version 12.0.0):

Programming Language and version ( e.g. C++ 14, Python 3.6, Java ):Python 3.6,

java 17.0.1 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

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

MediaPipe version:v0.8.9

Bazel version: Build label: 4.2.1
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Aug 30 15:17:47 2021 (1630336667)
Build timestamp: 1630336667
Build timestamp as int: 1630336667

XCode and Tulsi versions (if iOS):

Android SDK and NDK versions (if android): Android Studio Arctic Fox | 2020.3.1 Patch 3

Android AAR ( if android):N/A
OpenCV version (if running on desktop):

Describe the problem:

I am trying to build hair_segmentation for android_x86_x64 platform but there is no flag for 64 bit architecture. There is arm but no x86. I am wondering how mobile devices with Intel architecture (x86 and x86_64 are supported)

I only see the following options for android x86 options in the .baselrc file.

# Android configs.
# Note: the documentation tells us to use @androidndk//:default_crosstool, but
# the automatic configuration transition uses //external:android/crosstool.
# Using it here works and spares us from having two different config_settings
# for Android.
build:android --crosstool_top=//external:android/crosstool
build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
build:android --linkopt=-landroid
build:android --linkopt=-ldl
build:android --linkopt=-llog
build:android --linkopt=-lm
build:android --linkopt=-Wl,--gc-sections
@ya332 ya332 added the type:build/install For Build and Installation issues label Jan 12, 2022
@ya332
Copy link
Author

ya332 commented Jan 12, 2022

The following worked for android x86_64

bazel build -c opt mediapipe/examples/android/src/java/com/google/mediapipe/apps/hairsegmentationgpu:hairsegmentationgpu 

I am closing the issue.

@ya332 ya332 closed this as completed Jan 12, 2022
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:hair segmentation Hair Segmentation related issues platform:android Issues with Android as Platform type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

2 participants