facebookarchive / android-jsc

Scripts for building JSC for Android
Other
255 stars 38 forks source link

Can we support android armeabi #17

Closed willard9107 closed 8 years ago

askday commented 8 years ago

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

leeight commented 8 years ago

@askday Check PR https://github.com/facebook/android-jsc/pull/19, You need update .buckconfig and jsc/BUCK file, then run buck build :android-jsc

askday commented 8 years ago

@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 commented 8 years ago

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 commented 8 years ago

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

image.

Btw, someone have tried but failed, https://github.com/facebook/buck/issues/689

askday commented 8 years ago

@leeight thx very much! Let me try.

askday commented 8 years ago

@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 commented 8 years ago

Perhaps you need disable JIT

leeight commented 8 years ago

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 commented 8 years ago

@leeight could you show a diff like https://github.com/facebook/android-jsc/pull/19/commits/ee6e7e321c06e28b8b7d6f1b1378c4d2a5985add?

twoeggs commented 7 years ago

who can share the .so ?

ZhongbinHuang commented 7 years ago

@leeight how to disable jit?

h2oiswater commented 6 years ago

who can share the .so ?