Skip to content
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

Android tutorial build failed on MacOS ( gnustl_static is no longer supported ) #3

Closed
dom607 opened this issue Jan 29, 2019 · 1 comment
Labels

Comments

@dom607
Copy link

dom607 commented Jan 29, 2019

MacOS version : 10.14.3
Android Studio version : 3.3
SDK : 26.1.1
NDK : r16b

I tried to build Tutorial01 on my MacBook Pro with android studio, but it was failed. No problems on gradle sync.

After change '-DANDROID_STL=gnustl_static' on build.gradle file to '-DANDROID_STL=c++_static' or '-DANDROID_STL=c++_shared' , it work correctly. Error codes below.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':Common:generateJsonModelDebug'.
> Build command failed.
  Error while executing process /Users/june/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/Users/june/DiligentEngine -B/Users/june/DiligentEngine/Common/NativeApp/Android/.externalNativeBuild/cmake/debug/armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-21 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/june/DiligentEngine/Common/NativeApp/Android/build/intermediates/cmake/debug/obj/armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=/Users/june/Library/Android/sdk/ndk-bundle -DCMAKE_TOOLCHAIN_FILE=/Users/june/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/june/Library/Android/sdk/cmake/3.6.4111459/bin/ninja -GAndroid Gradle - Ninja -DANDROID_PLATFORM=android-21 -DANDROID_TOOLCHAIN=clang -DANDROID_STL=gnustl_static -DENABLE_TESTS=TRUE}
  -- Configuring incomplete, errors occurred!
  
  CMake Error at /Users/june/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:249 (message):
    gnustl_static is no longer supported.  Please switch to either c++_shared
    or c++_static.  See
    https://developer.android.com/ndk/guides/cpp-support.html for more
    information.
  Call Stack (most recent call first):
    /Users/june/Library/Android/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)
    CMakeLists.txt:5 (project)
  
  
  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
@DiligentGraphics
Copy link
Collaborator

Apparently the configuration is out-of-date, will fix it.

@dom607 dom607 changed the title Android tutorial build failed on MacOS ( gnustl_static is no longer support ) Android tutorial build failed on MacOS ( gnustl_static is no longer supported ) Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant