libreactnativejni.so is missing when adding the live package
See original GitHub issueVersion
No response
Problem Area
react-native-pytorch-core (core package)
Steps to Reproduce
- Test it on Android
- Do all the steps from here https://pytorch.org/live/docs/tutorials/add-package/
- Use the Android Studio, run clean build, rebuild, and run
- You will see the following Errors
Related: https://stackoverflow.com/questions/44485941/lib-so-missing-and-no-known-rule-to-make-it
Expected Results
- Build command failed. Error while executing process D:\ADK\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C D:\XXXXXXXXXXX\Main\Project\Project\XXXXXXX\src\mobile\node_modules\react-native-pytorch-core\android.cxx\cmake\debug\armeabi-v7a torchlive} ninja: Entering directory `D:\XXXXXXXXXXX\Project\Project\XXXXXXX\src\mobile\node_modules\react-native-pytorch-core\android.cxx\cmake\debug\armeabi-v7a’
ninja: error: ‘…/…/…/…/build/react-native-0.64.3.aar/jni/armeabi-v7a/libreactnativejni.so’, needed by ‘…/…/…/…/build/intermediates/cmake/debug/obj/armeabi-v7a/libtorchlive.so’, missing and no known rule to make it
- If you run the cmake on clion, you will see this warning. I am not sure it is the reason.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: FBJNI_LIBRARY linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android PYTORCH_LIBRARY linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android REACT_NATIVE_JNI_LIB linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android REACT_NATIVE_UTILS_LIB linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android
Code example, screenshot, or link to repository
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:11 (2 by maintainers)
@JonathanSum u need to up or downgrade your react native to v0.65.1, I have tested all version, and only v0.65.1 work
@raedle I will try to add it to my project with my OnePlus7 later to see if this unblocks me or not.