(Disclaimer: this is my first time trying to use c++ with react-native)
Hi, i'm trying to setup my environment, so far i managed to make a successful ./gradlew bundleRelease. I'm using clion and I'm trying to load the CMakeLists so that i can get some intellisense / code completion. But I'm getting several errors. The first one i get without touching anything is:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LOG_LIB
linked by target "cpp" in directory /home/dominick/Projects/testing/android
REACT_NATIVE_JNI_LIB
linked by target "cpp" in directory /home/dominick/Projects/testing/android
CMake Error at CMakeLists.txt:37 (add_library):
Cannot find source file:
../../react-native/ReactCommon/jsi/jsi/jsi.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
[Finished]
if i change the path to jsi to
../node-modules/react-native[...]
i get:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LOG_LIB
linked by target "cpp" in directory /home/dominick/Projects/testing/android
REACT_NATIVE_JNI_LIB
linked by target "cpp" in directory /home/dominick/Projects/testing/android
Any help would be greatly appreciated.