1. Are you ready for the Galaxy S20? Here is everything we know so far!

[SOLVED] Can't get started with ndk on archlinux

Discussion in 'Android Development' started by Abdelillah ARICHE, Jul 29, 2018.

  1. Abdelillah ARICHE

    Thread Starter

    I followed this page https://developer.android.com/ndk/guides/ to install the necessary to getting started.
    So I open new project as I do normally with checking c/c++ and blank example.
    when android studio open the main window, it can't build the default program by giving this error :
    External Native Build issues (2 errors).

    this is the contents of the file CMakeOutput.log :
    Code (Text):
    1.  
    2. The target system is: Android - 1 - armv7-a
    3. The host system is: Linux - 4.17.6-1-ARCH - x86_64
    and this is the contents of the file CMakeError.log
    Code (Text):
    1.  
    2. Determining if the C compiler works failed with the following output:
    3. Change Dir: /home/abdelillah/AndroidStudioProjects/test/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp
    4.  
    5. Run Build Command:"/home/abdelillah/Android/Sdk/cmake/3.6.4111459/bin/ninja" "cmTC_dd920"
    6. [1/2] Building C object CMakeFiles/cmTC_dd920.dir/testCCompiler.c.o
    7. FAILED: /home/abdelillah/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  --target=armv7-none-linux-androideabi --gcc-toolchain=/home/abdelillah/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/abdelillah/Android/Sdk/ndk-bundle/sysroot   -isystem /home/abdelillah/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=15 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -o CMakeFiles/cmTC_dd920.dir/testCCompiler.c.o   -c /home/abdelillah/AndroidStudioProjects/test/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp/testCCompiler.c
    8. /home/abdelillah/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
    9. ninja: build stopped: subcommand faile
    other things, I can't edit "native-lib.cpp" directly in the main window, because it's not appear in the folder cpp in the left side even this file exist, I can see it using terminal. the following image show you what I mean

    help please
     

    Attached Files:


    Advertisement

    #1 Abdelillah ARICHE, Jul 29, 2018
    Last edited: Jul 29, 2018
  2. Abdelillah ARICHE

    Thread Starter

    I found the solution, I had to install
    ncurses5-compat-libs
     
    Deleted User likes this.
Loading...
Similar Threads - SOLVED Can't started
  1. KaptainKris
    Replies:
    5
    Views:
    486
  2. MoodyBlues
    Replies:
    3
    Views:
    302
  3. Adnan fiaz
    Replies:
    4
    Views:
    412
  4. MoodyBlues
    Replies:
    5
    Views:
    577
  5. AmandaxD
    Replies:
    3
    Views:
    361
  6. MrMatthew
    Replies:
    5
    Views:
    375
  7. MoodyBlues
    Replies:
    7
    Views:
    287
  8. MoodyBlues
    Replies:
    7
    Views:
    358
  9. Updog_Design
    Replies:
    5
    Views:
    359
  10. Raelin Hansen
    Replies:
    1
    Views:
    267

Share This Page

Loading...