-
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
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"