swittk / react-native-lua

Lua Interpreter in React Native
MIT License
10 stars 3 forks source link

android build failed #3

Open TQCasey opened 1 year ago

TQCasey commented 1 year ago

Device Info

info Fetching system and libraries information...
System:
    OS: macOS 12.6.5
    CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
    Memory: 722.63 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.2.0 - ~/.nvm/versions/node/v18.2.0/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.9.0 - ~/.nvm/versions/node/v18.2.0/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK:
      API Levels: 25, 27, 28, 29, 30, 31, 32, 33, 34
      Build Tools: 28.0.2, 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 33.0.0
      Android NDK: Not Found
  IDEs:
    Android Studio: 2022.2 AI-222.4459.24.2221.10121639
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_311 - /Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.8 => 0.71.8
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Description

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:
FBJNI_LIBRARY
linked by target "SKRNNativeLua" in directory /Users/casey/Documents/rnproj/csgo_ios/node_modules/react-native-lua/android

image

It seems cpp dir is empty

TQCasey commented 1 year ago

More Info

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:
FBJNI_LIBRARY
    linked by target "SKRNNativeLua" in directory /Users/casey/Documents/rnproj/csgo_ios/node_modules/react-native-lua/android

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

    /Users/casey/Documents/rnproj/csgo_ios/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/CallInvokerHolder.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:42 (add_library):
  No SOURCES given to target: SKRNNativeLua

CMake Generate step failed.  Build files cannot be regenerated correctly.
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:
FBJNI_LIBRARY
linked by target "SKRNNativeLua" in directory /Users/casey/Documents/rnproj/csgo_ios/node_modules/react-native-lua/android