NDK build fail ?! MacOS + android-ndk-r10e
See original GitHub issueI clone the code and try to run the example. But it always fail !!!
My environment: MacOS ndk: android-ndk-r10e
Fail trace:
make: Entering directory /Users/cw/work/mine/android/kkprojects/react-native/ReactAndroid/src/main/jni/react/jni' [armeabi-v7a] Compile++ thumb: reactnativejni <= JSCPerfLogging.cpp [armeabi-v7a] Compile++ thumb: reactnativejni <= JSLogging.cpp [armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp [armeabi-v7a] Compile++ thumb: reactnativejni <= ProxyExecutor.cpp [armeabi-v7a] SharedLibrary : libglog_init.so /Users/cw/work/develop/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/include/mutex Error:(779) undefined reference to 'std::__get_once_mutex()' Error:(783) undefined reference to 'std::__set_once_functor_lock_ptr(std::unique_lock<std::mutex>*)' Error:(790) undefined reference to 'std::__set_once_functor_lock_ptr(std::unique_lock<std::mutex>*)' /Users/cw/work/mine/android/kkprojects/react-native/ReactAndroid/src/main/jni/first-party/fbgloginit/glog_init.cpp Error:(140) undefined reference to 'std::__once_functor' Error:(140) undefined reference to '__once_proxy' Error:error: ld returned 1 exit status make: *** [/Users/cw/work/mine/android/kkprojects/react-native/ReactAndroid/build/tmp/buildReactNdkLib/local/armeabi-v7a/libglog_init.so] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory
/Users/cw/work/mine/android/kkprojects/react-native/ReactAndroid/src/main/jni/react/jni’
:ReactAndroid:buildReactNdkLib FAILED
Error:Execution failed for task ‘:ReactAndroid:buildReactNdkLib’.
Process ‘command ‘/Users/cw/work/develop/android-ndk-r10e/ndk-build’’ finished with non-zero exit value 2
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
The movies sample has been removed from the core RN repo, so I think we can close this
@ericvicenti Did you even read this issue in the first place? It literally had nothing to do with movies sample app.