Boost-for-Android icon indicating copy to clipboard operation
Boost-for-Android copied to clipboard

problem with building NDK-r16b, Boost-1.66.0

Open olyaee opened this issue 7 years ago • 1 comments

I am tring to build Boost-1.66.0 with NDK-r16b. Although I have "cstddef" file in NDK folder I get the following error.

clang-linux.compile.c++.without-pth ..\build\build\arm64-v8a\boost\bin.v2\libs\atomic\build\clang-gnu-
linux-arm64v8a\release\link-static\target-os-android\threadapi-pthread\threading-multi\lockpool.o

libs\atomic\src\lockpool.cpp:15:10: fatal error: 'cstddef' file not found

#include <cstddef>

         ^~~~~~~~~

1 error generated.



  "clang++" -c -x c++ -O3 -Wno-inline -Wall -m64  -DBOOST_ALL_NO_LIB=1 
-DBOOST_ATOMIC_SOURCE -DBOOST_ATOMIC_STATIC_LINK=1 -DNDEBUG -I"." -o "..\build\build
\arm64-v8a\boost\bin.v2\libs\atomic\build\clang-gnu-linux-arm64v8a\release\link-static\target-os-
android\threadapi-pthread\threading-multi\lockpool.o" "libs\atomic\src\lockpool.cpp"



...failed clang-linux.compile.c++.without-pth ..\build\build\arm64-v8a\boost\bin.v2\libs\atomic\build
\clang-gnu-linux-arm64v8a\release\link-static\target-os-android\threadapi-pthread\threading-
multi\lockpool.o...

olyaee avatar Mar 27 '18 15:03 olyaee

I tried a lot but finally I couldn't solve all the problems in windows. Then I decided to make the binaries in Linux and it worked very well.

olyaee avatar Apr 16 '18 15:04 olyaee