Discussion:
Android compilation problem
(too old to reply)
Robert Bielik
2017-02-28 09:05:54 UTC
Permalink
Hi,

I'm building with Android NDK r13b, API level 12 and I get

C:/code/git/libs/libupnp/externals/asio/asio/include\asio/detail/impl/posix_event.ipp:39:17: error: no member named 'pthread_condattr_setclock' in the global namespace; did you mean 'pthread_condattr_setpshared'?
int error = ::pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
~~^~~~~~~~~~~~~~~~~~~~~~~~~

I've checked that 'pthread_condattr_setclock' is indeed available in libc.a for API-level 12 and up, any ideas ??

Regards
/Robert
Robert Bielik
2017-02-28 09:12:26 UTC
Permalink
I should add that I build for armv7, might be a 32 vs 64 bit issue ??

From: Robert Bielik [mailto:***@dirac.com]
Sent: den 28 februari 2017 10:06
To: asio-***@lists.sourceforge.net
Subject: [asio-users] Android compilation problem

Hi,

I'm building with Android NDK r13b, API level 12 and I get

C:/code/git/libs/libupnp/externals/asio/asio/include\asio/detail/impl/posix_event.ipp:39:17: error: no member named 'pthread_condattr_setclock' in the global namespace; did you mean 'pthread_condattr_setpshared'?
int error = ::pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
~~^~~~~~~~~~~~~~~~~~~~~~~~~

I've checked that 'pthread_condattr_setclock' is indeed available in libc.a for API-level 12 and up, any ideas ??

Regards
/Robert
Robert Bielik
2017-02-28 13:25:25 UTC
Permalink
Never mind, I just needed to build with API level 21.

From: Robert Bielik [mailto:***@dirac.com]
Sent: den 28 februari 2017 10:12
To: asio-***@lists.sourceforge.net
Subject: Re: [asio-users] Android compilation problem

I should add that I build for armv7, might be a 32 vs 64 bit issue ??

From: Robert Bielik [mailto:***@dirac.com]
Sent: den 28 februari 2017 10:06
To: asio-***@lists.sourceforge.net<mailto:asio-***@lists.sourceforge.net>
Subject: [asio-users] Android compilation problem

Hi,

I'm building with Android NDK r13b, API level 12 and I get

C:/code/git/libs/libupnp/externals/asio/asio/include\asio/detail/impl/posix_event.ipp:39:17: error: no member named 'pthread_condattr_setclock' in the global namespace; did you mean 'pthread_condattr_setpshared'?
int error = ::pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
~~^~~~~~~~~~~~~~~~~~~~~~~~~

I've checked that 'pthread_condattr_setclock' is indeed available in libc.a for API-level 12 and up, any ideas ??

Regards
/Robert

Loading...