Closed willard9107 closed 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
@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 ?
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?
You need add more options in the .buckconfig
, check the PR's diff.
.
Btw, someone have tried but failed, https://github.com/facebook/buck/issues/689
@leeight thx very much! Let me try.
@leeight
Do you compile libjsc.so armeabi success?
I get error too much
`#elif defined(ANDROID) && defined(__ARM_EABI__)
` /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?
Perhaps you need disable JIT
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
@leeight could you show a diff like https://github.com/facebook/android-jsc/pull/19/commits/ee6e7e321c06e28b8b7d6f1b1378c4d2a5985add?
who can share the .so ?
@leeight how to disable jit?
who can share the .so ?
I also want to know how make a armeabi libjsc.so?