Will upgrading NDK upgrade the zlib version? #1968
-
Suppose I have a CMakeLists.txt to build an Android library with native C++ code:
The zlib library should be a prebuilt library provided by the Android system, I'm wondering if we can upgrade the zlib version (for example from 1.2.11 to 1.2.13) via upgrading our NDK tool version? This confuses me a lot because it is said that the zlib library is prebuilt and located on the Android device. Besides, I checked my library artifact, I didn't find the zlib.so included. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
"it's complicated". (and the result of a historical accident --- if we were creating the NDK today, we just wouldn't include libz.)
you're right that https://developer.android.com/ndk/guides/stable_apis#zlib_compression could be more helpful. i'll fix that today... |
Beta Was this translation helpful? Give feedback.
"it's complicated". (and the result of a historical accident --- if we were creating the NDK today, we just wouldn't include libz.)
the headers get updated every NDK release.
the libz.a static library gets updated every NDK release.
but the libz.so shared library comes from the device, so "you get what you get".
you're right that https://developer.android.com/ndk/guides/stable_apis#zlib_compression could be more helpful. i'll fix that today...