Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4180

Impossible to build Thrift C++ library for Android (NDK)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.10.0
    • None
    • C++ - Library
    • None
    • Ubuntu Linux 16.04 x86_64
      Android NDK r14b

    Description

      1) make standalone clang ndk toolchain (gnustl_static)

      2) build boost 1.63 and inject its headers & libs to toolchain's sysroot

      3) configure thrift:
      ./configure --with-sysroot=$toolchains/arm/sysroot --host=arm-linux-androideabi CXX="$toolchains/arm/bin/arm-linux-androideabi-clang++"

      4) cd lib/cpp

      5) make

      GOT ERRORS:

      1) rpl_malloc & rpl_realloc symbols are not found during compilation
      CAN BE FIXED BY: removing
      #define malloc rpl_malloc
      and
      #define realloc rpl_realloc
      from ./src/thrift/config.h

      2) ./src/thrift/protocol/TCompactProtocol.tcc:37:3: error: "TCompactProtocol currently only works if a signed right shift is arithmetic"

      Attachments

        Activity

          People

            Unassigned Unassigned
            andreya108 Andrey Alekseenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: