LiquidCore: missing libnode.so for arm64-v8a
Thanks for the library,
I was trying to replace it with AndroidJSCore but I was not able to run the app cause my device is an arm64 and during runtime, I get couldn't find "libnode.so"
error.
I checked the repo and “libnode.so” is missing in node prebuild deps folder for arm64: https://github.com/LiquidPlayer/LiquidCore/tree/master/deps/node-8.9.3/prebuilt
any solution?
Update: I downgraded to v0.2.2 and it was there before!! any reason for removing it?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (7 by maintainers)
Commits related to this issue
- Resolved issue #40 64-bit node libraries are now built and included in prebuilt, with snapshots Disabled in the library by default — committed to LiquidPlayer/LiquidCore by ericwlange 6 years ago
- Resolved issues #40 and #51 Now using LiquidCoreCommon code in Android — committed to LiquidPlayer/LiquidCore by ericwlange 6 years ago
As promised the 64-bit libraries are there and tested now. I have disabled them by default, but you can enable them by building
LiquidCore
from head, but uncomment two lines inLiquidCoreAndroid/build.gradle
:and
Try adding this in your build.gradle and I believe the issue will be fixed.
defaultConfig { ndk { abiFilters "armeabi-v7a", "x86" } }
This will ensure that on an arm64 device the armeabi-v7a so is used. This is what React Native does.
I will create the fat bundle for the next release. At the moment, I am on the precipice of having a working iOS version (much bigger undertaking than one might imagine), so I am preoccupied by that. But will do this.
I cloned the repo and rebuilt
aar
using changes you mentioned and now it works like a charm. Thanks again for the library and your support.I tried this solution but they are different CPU architectures and I received a runtime error.
@twhit093 <-- this is the correct solution for most cases.
@mirhoseini <-- I can build the arm64 + x86_64 prebuilts this weekend, but I will probably opt to leave them out of the release builds. You can use your own compiled version.
You should be able to use the
armeabi-v7a
version on arm64, but I may have done something wrong. I removed it only because it made the library enormous to have too many platforms. React Native, for example, only supports x86 and armv7, and it works on all (or mostly all) devices. But I may have configured the library incorrectly. I’ll look into it.