-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Custom C/C++ failed with more errors in: autolinking.cpp and react-native-safe-area-context #47904
Comments
Can you clarify what you're attempting to do here? |
I need to run user c++ code. At first I had a problem with EarlyJsError, so I follow your #47352 (comment) advice
Now I don't have that problem anymore, but C++ still can't be compiled, and I get errors that seem to have nothing to do with my C++. |
I see. |
hi did you find solution i am also facing same problem.
|
This is fixed by: It has been included in 0.76.6 so you should be able to use it already |
Nop, version 0.76.6 this problem do not resolve. I updated error information. |
Then please provide a reproducer as originally requested. We can't really help without it |
Hi @cortinico , I found some time and created reproducer: https://github.com/ObscurusGrassator/reactNativeIssue47904 . ( EDIT:
|
Thanks for the reproducer @ObscurusGrassator this really helped me understand your problem. The issue you're facing is related to C++ warnings, that are converted to being error because of those 2 lines: If you comment those 2 lines, you'll be able to build successfully. The C++ compiler will emit those warnings but it won't fail your build |
Description
In old architecture (v.:0.74.2) this work ok.
In new architecture I (by instruction of #47352 (comment)) add
include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake)
line to CMakeLists.txtSteps to reproduce
Path to CMakeLists.txt: JJAssistant / android / app / src / main / срр / openWakeWord-cpp / src / android / CMakeLists.txt
include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake)
line to CMakeLists.txtandroid/build.gradle
package.json
React Native Version
0.76.6
Affected Platforms
Runtime - Android, Build - MacOS
Areas
Bridgeless - The New Initialization Flow
Output of
npx react-native info
/android/app/build.gradle:
Stacktrace or Logs
Reproducer
https://github.com/ObscurusGrassator/reactNativeIssue47904
The text was updated successfully, but these errors were encountered: