Skip to content
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

Build failed: react-native-reanimated:configureCMakeDebug[arm64-v8a] #3621

Closed
MejriMarwa opened this issue Sep 28, 2022 · 11 comments
Closed
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android

Comments

@MejriMarwa
Copy link

MejriMarwa commented Sep 28, 2022

Description

Build failed when using react-native-reanimated 2.10.0 with react-native 0.70.0

image

Steps to reproduce

1- Upgrade react-native 0.60.0 to 0.70.0
2-install react-native-reanimated 2.10.0
3-run project

Snack or a link to a repository

https://github.com/software-mansion/react-native-reanimated

Reanimated version

2.10.0

React Native version

0.70.0

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Build type

Debug mode

Device

Real device

Device model

android 12

Acknowledgements

Yes

@MejriMarwa MejriMarwa added the Needs review Issue is ready to be reviewed by a maintainer label Sep 28, 2022
@github-actions
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android labels Sep 28, 2022
@MejriMarwa MejriMarwa changed the title :react-native-reanimated:configureCMakeDebug[arm64-v8a] Build failed: react-native-reanimated:configureCMakeDebug[arm64-v8a] Sep 28, 2022
@saravanaS2108
Copy link

I'm also facing the exact issue. please help us ASAP.

1 similar comment
@JonsonHI
Copy link

I'm also facing the exact issue. please help us ASAP.

@EduFrazao
Copy link

Same problem here folks, with RN 0.70.1

`
CMake Error at CMakeLists.txt:74 (add_library):
Cannot find source file:

  /home/eduardo/Projetos/DavinTI/virtruvio/vitruvio-react-native/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx

CMake Error at CMakeLists.txt:74 (add_library):
No SOURCES given to target: reanimated

`

@Deepa-Palani
Copy link

I am also facing same issue.please help me to fix this issue

@FAIZ117
Copy link

FAIZ117 commented Oct 3, 2022

reanimated =>2.10.0
Change the cmake version in node_modues => react-native-reanimated=> android => build.gradle to 3.24.2

And extract the cmake 3.24.2 dowloaded binary.zip inside your %appdata% => local > android> sdk => cmake and add the path to the cmake /bin to the user environment variable.

this fixed my issue for the time being unless the fix is released.

@bukhari-flip
Copy link

Same problem here folks, with RN 0.70.1

` CMake Error at CMakeLists.txt:74 (add_library): Cannot find source file:

  /home/eduardo/Projetos/DavinTI/virtruvio/vitruvio-react-native/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx

CMake Error at CMakeLists.txt:74 (add_library): No SOURCES given to target: reanimated

`

I think it's because v2.10.0 try to include FabricUtils.cpp which is not found on that version

@AliMSbaee
Copy link

AliMSbaee commented Oct 8, 2022

@EduFrazao
Try building with newArchEnabled=false. This worked for me (with [email protected] & [email protected])

@andreacab2
Copy link

we fixed it with the solution here

@piaskowyk
Copy link
Member

@andreacab2 thanks for posting a solution 🙌

@Shahzaib114
Copy link

resolved....please follow below link
#4971 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests