Re: Compiling boost_thread for MIPS using NDK

85 views
Skip to first unread message

Pedro Henrique Cavalcante

unread,
Jun 6, 2014, 4:24:59 PM6/6/14
to andro...@googlegroups.com
Hi,

Did you resolved this problem?

Em segunda-feira, 4 de fevereiro de 2013 16h16min54s UTC-4, jerem...@eacceleration.com escreveu:
I am attempting to build boost libraries for all supported architectures using ndk r8d.  Arm, armv7, and x86 all went off without a hitch, but mips is giving me an error:
./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavailable: it has been explicitly disabled with BOOST_DISABLE_THREADS"

After a little investigation, I found this difference in the headers:
$ find android-ndk-r8d/ -name c++config.h | xargs grep GTHR_DEFAULT | grep 4.6
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/mips/include/bits/c++config.h:/* #undef _GLIBCXX_HAVE_GTHR_DEFAULT */
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/x86/include/bits/c++config.h:#define _GLIBCXX_HAVE_GTHR_DEFAULT 1
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include/bits/c++config.h:#define _GLIBCXX_HAVE_GTHR_DEFAULT 1
android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include/bits/c++config.h:#define _GLIBCXX_HAVE_GTHR_DEFAULT 1

Has anyone been able to successfully build boost_thread for mips?  Is this a bug/misconfiguration in the mips toolchain?
Reply all
Reply to author
Forward
0 new messages