|
Boost Users : |
Subject: Re: [Boost-users] [boost] Going insane trying to build boost for android
From: Robert Dailey (rcdailey.lists_at_[hidden])
Date: 2017-03-26 17:39:13
On Sun, Mar 26, 2017 at 12:04 PM, John Maddock
<jz.maddock_at_[hidden]> wrote:
>
>> So outside of what I'm already doing, how do I properly tell boost
>> about C++14? I'm sending down a cxxflag for it in my jam file right
>> now, but that's the only way I've been able to find out how to do it
>> from my Google searching.
>
>
> Nod. As far as I know that's the only way, two questions:
>
> * If you build something with the -d2 option do you see all the -std=
> compiler flags you expect to see?
> * If you do so, can you build and *run* libs/config/test/config_info and
> report the output?
(Re-included the boost ML)
With the -d2 option added, this is what I see:
clang-linux.compile.c++.without-pth
bin.v2\libs\atomic\build\clang-linux-android\release\link-static\target-os-android\threadapi-pthread\threading-multi\lockpool.o
"C:/android/ndk/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++"
-c -x c++ -O3 -Wno-inline -Wall
--sysroot=C:/android/ndk/platforms/android-15/arch-arm
-IC:/android/ndk/sources/cxx-stl/llvm-libc++abi/include
-IC:/android/ndk/sources/cxx-stl/llvm-libc++/include
-IC:/android/ndk/sources/android/support/include -std=c++14
-fno-strict-aliasing -D__GLIBC__ -DANDROID -D__ANDROID__
-D_GLIBCXX__PTHREADS -D__arm__ -D_REENTRANT -O2 -DNDEBUG
-DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_SOURCE
-DBOOST_ATOMIC_STATIC_LINK=1 -DNDEBUG -I"." -o
"bin.v2\libs\atomic\build\clang-linux-android\release\link-static\target-os-android\threadapi-pthread\threading-multi\lockpool.o"
"libs\atomic\src\lockpool.cpp"
In file included from libs\atomic\src\lockpool.cpp:16:
In file included from .\boost/config.hpp:57:
In file included from .\boost/config/platform/linux.hpp:15:
C:/android/ndk/sources/cxx-stl/llvm-libc++/include\cstdlib:108:9:
error: no member named 'strtold' in the global namespace
using ::strtold;
~~^
C:/android/ndk/sources/cxx-stl/llvm-libc++/include\cstdlib:126:9:
error: no member named '_Exit' in the global namespace
using ::_Exit;
~~^
C:/android/ndk/sources/cxx-stl/llvm-libc++/include\cstdlib:149:9:
error: no member named 'at_quick_exit' in the global namespace
using ::at_quick_exit;
~~^
C:/android/ndk/sources/cxx-stl/llvm-libc++/include\cstdlib:150:9:
error: no member named 'quick_exit' in the global namespace
using ::quick_exit;
~~^
4 errors generated.
I do see -std=c++14 in there.
As for your second question, why would building and running
config_info help? I'm cross compiling, so I can't run this on Windows.
If you could provide explicit instructions so I properly understand
what you want me to do, that would be ideal.
Thanks.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net