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

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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: C++ - Library
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              andreya108 Andrey Alekseenko

              Dates

              • Created:
                Updated:

                Issue deployment