cmake configure fails with Android NDK for api < 18 (log2() not found) #297

Closed
opened 2026-01-29 20:41:35 +00:00 by claunia · 0 comments
Owner

Originally created by @axnsan12 on GitHub (Nov 23, 2019).

Related: #341, #351.

The underlying issue of log2 availability is fixed. However the cmake script still emits a FATAL_ERROR if the log2 function is not found at configure time:

c435f06675/CMakeLists.txt (L114)

Simply removing the line is enough to build with __ANDROID__ == 15.

Originally created by @axnsan12 on GitHub (Nov 23, 2019). Related: #341, #351. The underlying issue of log2 availability is fixed. However the cmake script still emits a FATAL_ERROR if the log2 function is not found at configure time: https://github.com/google/brotli/blob/c435f066751ef83aa4194445085a70ad9d193704/CMakeLists.txt#L114 Simply removing the line is enough to build with `__ANDROID__` == 15.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#297