jimbofoo
jimbofoo
This build error on Android is still happening randomly. Trying to investigate this issue, it seems the generated cmake config file: react-native-worklets-coreConfig.cmake seems to be missing the IMPORTED_LOCATION section, which...
> [@jimbofoo](https://github.com/jimbofoo) Can you solve the problem in your way? No, what seems to cause this is some kind of race condition. The cmake build of react-native-visition-camera completes before the...
Related: https://github.com/mrousavy/react-native-vision-camera/issues/1708 https://github.com/mrousavy/react-native-vision-camera/issues/1770 https://github.com/mrousavy/react-native-vision-camera/issues/1913 https://github.com/mrousavy/react-native-vision-camera/issues/2290 https://github.com/mrousavy/react-native-vision-camera/issues/2013 https://github.com/mrousavy/react-native-vision-camera/issues/3054 https://github.com/margelo/react-native-worklets-core/issues/242 https://github.com/margelo/react-native-worklets-core/issues/235 https://stackoverflow.com/questions/78123397/react-native-error-regards-to-react-native-vision-camera-and-react-native-reanim
Linking the worklets library explicit as a workaround works here: ``` diff --git a/node_modules/react-native-vision-camera/android/CMakeLists.txt b/node_modules/react-native-vision-camera/android/CMakeLists.txt index 17097c1..c3baf4d 100644 --- a/node_modules/react-native-vision-camera/android/CMakeLists.txt +++ b/node_modules/react-native-vision-camera/android/CMakeLists.txt @@ -63,6 +63,18 @@ target_link_libraries( fbjni::fbjni #