[ 
https://issues.apache.org/jira/browse/THRIFT-4180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allen George updated THRIFT-4180:
---------------------------------
    Priority: Major  (was: Blocker)

> Impossible to build Thrift C++ library for Android (NDK)
> --------------------------------------------------------
>
>                 Key: THRIFT-4180
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4180
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.10.0
>         Environment: Ubuntu Linux 16.04 x86_64
> Android NDK r14b
>            Reporter: Andrey Alekseenko
>            Priority: Major
>
> 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"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to