Boost-for-Android
Boost-for-Android copied to clipboard
problem with building NDK-r16b, Boost-1.66.0
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...
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.