Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

added android x86 support #26

Closed
wants to merge 1 commit into from
Closed

added android x86 support #26

wants to merge 1 commit into from

Conversation

ph0b
Copy link
Contributor

@ph0b ph0b commented Aug 6, 2015

Hi,

Here is a pull request that simply adds proper support for Android x86 devices.
I've fixed the OpenCV build script to make it generate x86 libs and I've added these to the build too.
I've also modified Android.mk and and CardScanner.java to allow for building and loading the recognizer on x86 devices.

Successfully tested on a recent Asus Zenfone 2 ZE551ML running Lollipop and a 2012' Orange San Diego running Kitkat.

@@ -11,16 +11,16 @@ LOCAL_PATH := $(call my-dir)
LOCAL_DMZ_DIR := card.io-dmz

# --- declare opencv prebuilt static libs ---------------------------------
ifneq (,$(filter $(TARGET_ARCH_ABI),armeabi-v7a))
ifneq (,$(filter $(TARGET_ARCH_ABI),armeabi-v7a x86))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there's a missing comma here... should be armeabi-v7a, x86

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. The last argument is supposed to be a plain string. filter will look for the presence of the current arch into that string and return armeabi-v7a or x86 if it's the current arch. In these cases the return value will not be empty and the block will be executed, as expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, no comma here.

@braebot
Copy link
Member

braebot commented Sep 22, 2015

Thanks for the PR! I rebased on master, rebuilt the *.so files, and pushed to master. So this PR is effectively merged.

@braebot braebot closed this Sep 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants