Opened 9 years ago
Closed 9 years ago
#9082 closed Bugs (wontfix)
Android build error " 'pthread_rwlock_t' does not name a type"
Reported by: | anonymous | Owned by: | Andrey Semashev |
---|---|---|---|
Milestone: | To Be Determined | Component: | log |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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:
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
I builded following libraries: date_time, filesystem, regex, program_options, signals, system and thread I am also adding full build log
Attachments (1)
Change History (2)
by , 9 years ago
Attachment: | boost_build.7z added |
---|
comment:1 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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. This may be of help.
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.
output of the boost.Build