react-native-worklets-core icon indicating copy to clipboard operation
react-native-worklets-core copied to clipboard

react-native-worklets-core:configureCMakeDebug[arm64-v8a]

Open Madhav131 opened this issue 1 year ago • 3 comments

I have install this library but not work Please check this

package.json "dependencies": { "@deliriumproducts/react-native-animated-nav-tab-bar": "^2.0.1", "@react-native-async-storage/async-storage": "^2.1.0", "@react-navigation/elements": "^2.2.5", "@react-navigation/native": "^7.0.14", "@react-navigation/native-stack": "^7.2.0", "axios": "^0.24.0", "react": "18.3.1", "react-native": "0.76.5", "react-native-animatable": "^1.4.0", "react-native-animated-nav-tab-bar": "^3.1.11", "react-native-camera": "^4.2.1", "react-native-element-dropdown": "^2.12.2", "react-native-geolocation-service": "^5.3.1", "react-native-gifted-charts": "^1.4.47", "react-native-image-resizer": "^1.4.5", "react-native-linear-gradient": "^2.8.3", "react-native-modal": "^13.0.1", "react-native-permissions": "^3.1.0", "react-native-qrcode-scanner": "^1.5.5", "react-native-reanimated": "^3.16.6", "react-native-safe-area-context": "^5.0.0", "react-native-screens": "^4.3.0", "react-native-simple-toast": "^3.3.1", "react-native-svg": "^15.10.1", "react-native-textinput-effects": "^0.6.3", "react-native-vector-icons": "^10.2.0", "react-native-vision-camera": "^4.6.3", "react-native-vision-camera-face-detector": "^1.7.2", "react-native-worklets-core": "^1.3.3" },

Task :react-native-worklets-core:configureCMakeDebug[arm64-v8a] FAILED C/C++: CMake Error at CMakeLists.txt:28 (add_library): C/C++: Target "rnworklets" links to target "ReactAndroid::folly_runtime" but the C/C++: target was not found. Perhaps a find_package() call is missing for an C/C++: IMPORTED target, or an ALIAS target is missing? C/C++: CMake Error at CMakeLists.txt:28 (add_library): C/C++: Target "rnworklets" links to target "ReactAndroid::glog" but the target was C/C++: not found. Perhaps a find_package() call is missing for an IMPORTED C/C++: target, or an ALIAS target is missing? C/C++: CMake Error at CMakeLists.txt:28 (add_library): C/C++: Target "rnworklets" links to target "ReactAndroid::reactnativejni" but the C/C++: target was not found. Perhaps a find_package() call is missing for an C/C++: IMPORTED target, or an ALIAS target is missing? C/C++: CMake Error at CMakeLists.txt:28 (add_library): C/C++: Target "rnworklets" links to target "ReactAndroid::hermes_executor" but the C/C++: target was not found. Perhaps a find_package() call is missing for an C/C++: IMPORTED target, or an ALIAS target is missing? C/C++: CMake Generate step failed. Build files cannot be regenerated correctly.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 304 actionable tasks: 293 executed, 11 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

[Fatal Error] jetifier-core-1.0.0-beta10.pom:2:90: The markup in the document following the root element must be well-formed. [Fatal Error] jetifier-core-1.0.0-beta10.pom:2:90: The markup in the document following the root element must be well-formed. No modules to process in combine-js-to-schema-cli. If this is unexpected, please check if you set up your NativeComponent correctly. See combine-js-to-schema.js for how codegen finds modules. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-camera/android/src/main/java/com/google/android/cameraview/Camera2.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-image-resizer/android/src/main/java/fr/bamlab/rnimageresizer/ImageResizerModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-worklets-core:configureCMakeDebug[arm64-v8a]'.

[CXX1429] error when building with cmake using /Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/CMakeLists.txt: -- The C compiler identification is Clang 17.0.2 -- The CXX compiler identification is Clang 17.0.2 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/lenovo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/lenovo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done

C++ build system [configure] failed while executing: /Users/lenovo/Library/Android/sdk/cmake/3.22.1/bin/cmake
-H/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_SYSTEM_VERSION=26
-DANDROID_PLATFORM=android-26
-DANDROID_ABI=arm64-v8a
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
-DANDROID_NDK=/Users/lenovo/Library/Android/sdk/ndk/26.1.10909125
-DCMAKE_ANDROID_NDK=/Users/lenovo/Library/Android/sdk/ndk/26.1.10909125
-DCMAKE_TOOLCHAIN_FILE=/Users/lenovo/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=/Users/lenovo/Library/Android/sdk/cmake/3.22.1/bin/ninja
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/build/intermediates/cxx/Debug/15m3n636/obj/arm64-v8a
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/build/intermediates/cxx/Debug/15m3n636/obj/arm64-v8a
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_FIND_ROOT_PATH=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/.cxx/Debug/15m3n636/prefab/arm64-v8a/prefab
-B/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/.cxx/Debug/15m3n636/arm64-v8a
-GNinja
-DANDROID_STL=c++_shared
-DANDROID_TOOLCHAIN=clang
-DREACT_NATIVE_DIR=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native
-DJS_RUNTIME=hermes
-DHERMES_ENABLE_DEBUGGER=1 from /Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::folly_runtime" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::glog" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::reactnativejni" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::hermes_executor" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Generate step failed. Build files cannot be regenerated correctly. : com.android.ide.common.process.ProcessException: -- The C compiler identification is Clang 17.0.2 -- The CXX compiler identification is Clang 17.0.2 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/lenovo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Users/lenovo/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done

C++ build system [configure] failed while executing: /Users/lenovo/Library/Android/sdk/cmake/3.22.1/bin/cmake
-H/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_SYSTEM_VERSION=26
-DANDROID_PLATFORM=android-26
-DANDROID_ABI=arm64-v8a
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
-DANDROID_NDK=/Users/lenovo/Library/Android/sdk/ndk/26.1.10909125
-DCMAKE_ANDROID_NDK=/Users/lenovo/Library/Android/sdk/ndk/26.1.10909125
-DCMAKE_TOOLCHAIN_FILE=/Users/lenovo/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=/Users/lenovo/Library/Android/sdk/cmake/3.22.1/bin/ninja
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/build/intermediates/cxx/Debug/15m3n636/obj/arm64-v8a
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/build/intermediates/cxx/Debug/15m3n636/obj/arm64-v8a
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_FIND_ROOT_PATH=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/.cxx/Debug/15m3n636/prefab/arm64-v8a/prefab
-B/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android/.cxx/Debug/15m3n636/arm64-v8a
-GNinja
-DANDROID_STL=c++_shared
-DANDROID_TOOLCHAIN=clang
-DREACT_NATIVE_DIR=/Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native
-DJS_RUNTIME=hermes
-DHERMES_ENABLE_DEBUGGER=1 from /Users/lenovo/Desktop/React-Native-Madhav/RoyalDurga/node_modules/react-native-worklets-core/android CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::folly_runtime" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::glog" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::reactnativejni" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:28 (add_library): Target "rnworklets" links to target "ReactAndroid::hermes_executor" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Generate step failed. Build files cannot be regenerated correctly.

Madhav131 avatar Dec 24 '24 11:12 Madhav131

i am getting the same error here

amarouldhamadouche avatar Dec 24 '24 14:12 amarouldhamadouche

i am getting the same error here

cB-Aanand-Kumar avatar Feb 11 '25 06:02 cB-Aanand-Kumar

Just update the package to the most recent version and it should work.

I was at version 1.3.3 and when updated to 1.5.0 worked fine.

"react-native-worklets-core": "1.5.0"

notmarinho avatar Mar 06 '25 16:03 notmarinho