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

Building libraries(MySQL) on new versions of NDK(r18b)

Discussion in 'Android Development' started by MazyCrazy, Jun 24, 2019.

  1. MazyCrazy

    MazyCrazy Lurker
    Thread Starter

    Hello.
    I'm new to Android development.
    I need to build MySQL for Android. I found a detailed and working guide how to do it for Android NDK r10e. The problem is that I use some kind of framework (Qt 5.12.3) that only works with recent versions of the Android NDK, for example r18b. In this and newer versions, the file structure has been greatly changed, and now I cannot find the headers, libraries and programs I need.

    Here are the variables that I need to declare to successfully build all the libraries (libiconv, OpenSSL, MariaDB):
    Code (Text):
    1. export ANDROID_NDK_ROOT=/c/android-ndk-r10e
    2. export SR="$ANDROID_NDK_ROOT"/platforms/android-19/arch-arm
    3. export BR="$ANDROID_NDK_ROOT"/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-
    4. export CPP="$BR"cpp
    5. export AR="$BR"ar
    6. export STRIP="$BR"strip
    7. export RANLIB="$BR"ranlib
    8. export LINKER="$BR"ld
    9. export OBJDUMP="$BR"objdump
    10. export CC="$BR"gcc
    11. export CFLAGS="--sysroot=$SR"
    12. export CPPFLAGS="$CFLAGS"
    13. export C_INCLUDE_PATH=$SR/include
    14. export ANDROID_DEV=$SR/usr
    15. export MAKEDEPPROG="$CC -M"
    About problem, for example, in the $BR folder there are no more necessary compiler programs, and there are no headers in the $SR folder.
    Note: $SR - "sysroot", $BR - common path to binaries in old Anroid NDK versions.

    Thanks for help.
     

    Advertisement

Loading...
Similar Threads - Building libraries MySQL
  1. Steven58
    Replies:
    5
    Views:
    218
  2. Dan Tudor Morar
    Replies:
    0
    Views:
    293
  3. Android Andy
    Replies:
    3
    Views:
    339
  4. LemonZest
    Replies:
    1
    Views:
    1,096
  5. Xavier Black
    Replies:
    6
    Views:
    492
  6. Tao_2019
    Replies:
    1
    Views:
    235
  7. notableuser
    Replies:
    1
    Views:
    393
  8. Cyberdev
    Replies:
    17
    Views:
    765
  9. Rana Yehya
    Replies:
    2
    Views:
    287
  10. Dr Lightning
    Replies:
    0
    Views:
    199

Share This Page

Loading...