-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':react-native-fast-tflite:buildCMakeDebug[arm64-v8a] #99
Comments
Guten Tag, Hans here 🍻, Thanks for reporting ze issue! It looks like you are missing a critical file from ze TensorFlow library: Also, since you are running into build errors, I recommend checking if you have followed all installation instructions in ze documentation for If you find this library helpful, consider supporting its maintenance through sponsorship. Let’s get this sorted!
|
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? |
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. |
For iOS use version 1.4.0 This is the solution I found. |
Yes, It is working for me on both iOS and Android on these versions.
make sure you have copied exact folders in ../node_modules/react-native-fast-tflite/cpp |
@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 |
That is correct, it worked for me because I am using the 0.74.5 version of react native |
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 ([email protected]) 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]'. |
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
|
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",
The text was updated successfully, but these errors were encountered: