question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NDK build fail ?! MacOS + android-ndk-r10e

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ericvicenticommented, Mar 30, 2017

The movies sample has been removed from the core RN repo, so I think we can close this

0reactions
hey99xxcommented, Apr 1, 2017

@ericvicenti Did you even read this issue in the first place? It literally had nothing to do with movies sample app.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NDK is not configured issue in android studio - Stack Overflow
My Application is built successfully on Eclipse but fails to Build on android studio. It returns the error code Ndk is not Configured....
Read more >
NDK Downloads | Android NDK - Android Developers
Select the NDK package for your development platform. For information about the changes in the latest version of the NDK and earlier ...
Read more >
Use the NDK with other build systems - Android Developers
The NDK contains official support for ndk-build and CMake. ... The Clang compiler in the NDK is useable with only minimal configuration ...
Read more >
CMake - NDK - Android Developers
The Android NDK supports using CMake to compile C and C++ code for your application. This page discusses how to use CMake with...
Read more >
Install and configure the NDK and CMake - Android Developers
You do not need this component if you only plan to use ndk-build. ... the version of CMake you specified in your build.gradle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found