Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Can we support android armeabi #17

Closed
willard9107 opened this issue Feb 19, 2016 · 13 comments
Closed

Can we support android armeabi #17

willard9107 opened this issue Feb 19, 2016 · 13 comments

Comments

@willard9107
Copy link

No description provided.

@willard9107 willard9107 changed the title Support android Can we support android armeabi Feb 19, 2016
@askday
Copy link

askday commented Oct 9, 2016

I also want to know how make a armeabi libjsc.so?

@leeight
Copy link

leeight commented Oct 9, 2016

@askday Check PR #19, You need update .buckconfig and jsc/BUCK file, then run buck build :android-jsc

@askday
Copy link

askday commented Oct 9, 2016

@leeight I have changed ndk-version to r10e,of cource my local ndk-version is r10e
but still have that question,could your shared your android-jsc to your git ?

@askday
Copy link

askday commented Oct 9, 2016

I know the reason,because I set my android-ndk path not contains r10e
before android-ndk path:
#export ANDROID_NDK=/Users/wx/Library/Android/sdk/ndk-bundle

update android-ndk path:
export ANDROID_NDK=/Users/wx/Library/Android/android-ndk-r10e

and @leeight your areabi so file is change this:

SUPPORTED_PLATFORMS = '^android-(armv7|x86)$'

to
SUPPORTED_PLATFORMS = '^android-(armv|x86)$'

anything else?

@leeight
Copy link

leeight commented Oct 9, 2016

You need add more options in the .buckconfig, check the PR's diff.

image.

Btw, someone have tried but failed, facebook/buck#689

@askday
Copy link

askday commented Oct 9, 2016

@leeight
thx very much!
Let me try.

@askday
Copy link

askday commented Oct 9, 2016

@leeight
Do you compile libjsc.so armeabi success?
I get error too much
#elif defined(__ANDROID__) && defined(__ARM_EABI__) #include "LLIntAssembly.android-arm.h"

`
/Users/wx/WorkSpace/android-jsc/buck-out/bin/jsc/jsc#android-arm,compile-pic-Repatch.cpp.o7ea71ca0-tmp/ccTAZYWX.s: Assembler messages:
/Users/wx/WorkSpace/android-jsc/buck-out/bin/jsc/jsc#android-arm,compile-pic-Repatch.cpp.o7ea71ca0-tmp/ccTAZYWX.s:1897: Error: invalid immediate: 983040 is out of range
/Users/wx/WorkSpace/android-jsc/buck-out/bin/jsc/jsc#android-arm,compile-pic-Repatch.cpp.o7ea71ca0-tmp/ccTAZYWX.s:1897: Error: value of 983040 too large for field of 2 bytes at 12

BUILD FAILED: //jsc:jsc#android-arm,compile-pic-LinkBuffer.cpp.oc7a8f95c failed with exit code 1:
c++ piped_preprocess_and_compile`

could you help me?

@leeight
Copy link

leeight commented Oct 9, 2016

Perhaps you need disable JIT

@leeight
Copy link

leeight commented Oct 10, 2016

After disable the JIT, it looks work well.

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
1985-02-01 00:00:00 .....          224          152  AndroidManifest.xml
1985-02-01 00:00:00 .....            0            2  R.txt
1985-02-01 00:00:00 D....            0            0  assets
1985-02-01 00:00:00 .....          293          136  classes.jar
1985-02-01 00:00:00 D....            0            0  jni
1985-02-01 00:00:00 D....            0            0  jni/armeabi-v7a
1985-02-01 00:00:00 .....       870064       274540  jni/armeabi-v7a/libgnustl_shared.so
1985-02-01 00:00:00 .....       931204       440769  jni/armeabi-v7a/libicu_common.so
1985-02-01 00:00:00 .....      1702028       818768  jni/armeabi-v7a/libjsc.so
1985-02-01 00:00:00 D....            0            0  jni/armeabi
1985-02-01 00:00:00 .....       874152       276299  jni/armeabi/libgnustl_shared.so
1985-02-01 00:00:00 .....       955768       450119  jni/armeabi/libicu_common.so
1985-02-01 00:00:00 .....      1751168       840936  jni/armeabi/libjsc.so
1985-02-01 00:00:00 D....            0            0  res
------------------- ----- ------------ ------------  ------------------------
1985-02-01 00:00:00            7084901      3101721  9 files, 5 folders

@askday
Copy link

askday commented Oct 10, 2016

@leeight could you show a diff like
ee6e7e3?

@twoeggs
Copy link

twoeggs commented Dec 16, 2016

who can share the .so ?

@ZhongbinHuang
Copy link

@leeight how to disable jit?

@h2oiswater
Copy link

who can share the .so ?

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

No branches or pull requests

6 participants