Boost C++ Libraries: Ticket #9082: Android build error " 'pthread_rwlock_t' does not name a type" https://svn.boost.org/trac10/ticket/9082 <p> I am trying to build boost 1.54 for android, I succeeded doing it without log libraries but when I add log libraries it gave many error such as: </p> <pre class="wiki">In file included from libs\log\src\attribute_name.cpp:32:0: ./boost/log/detail/light_rw_mutex.hpp:131:5: error: 'pthread_rwlock_t' does not name a type ./boost/log/detail/light_rw_mutex.hpp: In constructor 'boost::log::v2s_mt_posix::aux::light_rw_mutex::light_rw_mutex()': ./boost/log/detail/light_rw_mutex.hpp:136:30: error: 'm_Mutex' was not declared in this scope </pre><p> I builded following libraries: date_time, filesystem, regex, program_options, signals, system and thread I am also adding full build log </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9082 Trac 1.4.3 anonymous Thu, 05 Sep 2013 12:18:09 GMT attachment set https://svn.boost.org/trac10/ticket/9082 https://svn.boost.org/trac10/ticket/9082 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_build.7z</span> </li> </ul> <p> output of the boost.Build </p> Ticket Andrey Semashev Sun, 08 Sep 2013 11:28:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9082#comment:1 https://svn.boost.org/trac10/ticket/9082#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Read/write locks are defined by POSIX and as far as I can see, are supported by NDK r8e since API version android-9. I have no experience with Android development, but it seems you have to specify the correct APP_PLATFORM value somewhere in your project. <a class="ext-link" href="http://stackoverflow.com/questions/14551113/android-ndk-multiple-api-levels"><span class="icon">​</span>This</a> may be of help. </p> <p> For building Boost itself you should correct your CXXFLAGS to contain the include path to /platforms/android-9/arch-arm/usr/include or /platforms/android-14/arch-arm/usr/include. </p> Ticket