Open francesco-clementi-92 opened 1 month ago
Guten Tag, Hans here 🍻,
Thanks for reporting ze issue! It looks like you are missing a critical file from ze TensorFlow library: 'tensorflow/lite/c/c_api.h'
. Please ensure that you have added TensorFlow correctly to your project.
Also, since you are running into build errors, I recommend checking if you have followed all installation instructions in ze documentation for react-native-fast-tflite
. If ze problem persists, please try to provide more detailed logs or steps you took to reproduce ze issue.
If you find this library helpful, consider supporting its maintenance through sponsorship.
Let’s get this sorted!
Note: If you think I made a mistake, please ping
@mrousavy
to take a look.
any updates on this?
facing same issue, same configurations
Facing same issue!!
Facing the same issue when trying to make an Android development build on expo.
It is because tensorflow folder is missing in ../node_modules/react-native-fast-tflite/cpp.
So, to make it work, download tensorflow manually and paste the tensorflow folder in ../node_modules/react-native-fast-tflite/cpp.
You don't need every folder in tensorflow. Just keep "lite" folder.
Any reason why this bug exist? Should I make a PR with the tensorflow files copied in the repo?
Any reason why this bug exist? Should I make a PR with the tensorflow files copied in the repo?
Making a PR would be good as I use EAS to make development builds in expo and It cannot download the files during the building process, It will just download the package and give me the error.
Any update guys?
@mrousavy Could we have a fix for this issue? The iOS build isn’t working well on version 1.3.0, and the Android build has issues on version 1.4.0, which is causing inconvenience.
@navxchahal Were you able to make it work by the method you mentioned above? I'm still not able to make it work.
@navxchahal Were you able to make it work by the method you mentioned above? I'm still not able to make it work.
For iOS use version 1.4.0 For Android use version 1.3.0
This is the solution I found.
@navxchahal Were you able to make it work by the method you mentioned above? I'm still not able to make it work.
Yes, It is working for me on both iOS and Android on these versions.
"react-native-fast-tflite": "^1.4.0",
"react-native": "0.75.3",
"react-native-vision-camera": "^4.5.3",
"react-native-worklets-core": "^1.3.3",
"vision-camera-resize-plugin": "^3.1.0",
make sure you have copied exact folders in ../node_modules/react-native-fast-tflite/cpp then run ./gradlew clean once
@navxchahal Maybe because I'm using the 0.76.1 version of react native that's why it is not working
@bilal1031 even that's not working in the 0.76.1 version of react native... I'm thinking of downgrading the react native version then will try again later
@bilal1031 even that's not working in the 0.76.1 version of react native... I'm thinking of downgrading the react native version then will try again later
That is correct, it worked for me because I am using the 0.74.5 version of react native
Any reason why this bug exist? Should I make a PR with the tensorflow files copied in the repo?
Making a PR would be good as I use EAS to make development builds in expo and It cannot download the files during the building process, It will just download the package and give me the error.
As previously mentioned, the error occurs because the necessary TensorFlow header (.h) files are missing. If you are using EAS to build your app, you can resolve this by using a postinstall script to patch the dependency. This approach allows the project to run with EAS both in the cloud and locally. I implemented this using patch-package, and it works flawlessly. Each time npm install is executed, it installs the dependencies and then patches this one with the required TensorFlow header files.
I managed to build my app (react-native@0.76) with version 1.5.0 by applying a patch with the changes in #108 and the files from tensorflow missing.
Execution failed for task ':react-native-fast-tflite:configureCMakeDebug[arm64-v8a]'. How to fix above issue i have tried lot of solutions but did'nt resolved yet?
I reviewed the latest merge, and it seems that this PR, particularly the Android changes, is not functioning as expected. I noticed that the CMakeLists file was modified to look for headers in the ../tensorflow directory, but there’s no tensorflow folder present when using this library. Additionally, cloning the entire tensorflow folder at the root of the project could significantly increase the app’s size, which is not an acceptable solution. I would recommend reverting the changes made in this PR on the Android side to the previous version instead.
for those who are still having trouble follow @navxchahal but also move copy the compiler, this works for me
| react-native-fast-tflite
| - cpp
| - tensorflow
| - lite (folder)
| - compiler (folder)
I'm trying to add this library to my react native project, but I'm getting this error when I try to run on android:
I already tried deleted android/.gradle, clean the project, fresh install etc.
"react-native-vision-camera": "^4.5.3", "react-native": "^0.75.4", "react-native-fast-tflite": "^1.4.0",