title: Android ndk /i686-linux-android/bin\ld: warning: shared library text segment is not shareable
body: <p>i'm trying to run my android studio(kotlin) project, but there is a problem when ndk build, like this:</p>
  <pre><code>&gt; Task :libuvccamera:ndkBuild
  &gt; Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will *not* be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.    
  &gt; make: Entering directory `C:/Users/Hamzah/AndroidStudioProjects/camera-bts-detector-master/camera-bts-detector-master/libuvccamera/src/main'
  &gt; [x86] SharedLibrary  : libjpeg-turbo1500.so
  &gt; [armeabi-v7a] SharedLibrary  : libuvc.so
  &gt; [armeabi-v7a] Install        : libjpeg-turbo1500.so =&gt; libs/armeabi-v7a/libjpeg-turbo1500.so
  &gt; [armeabi-v7a] Install        : libusb100.so =&gt; libs/armeabi-v7a/libusb100.so
  &gt; [x86] Install        : libusb100.so =&gt; libs/x86/libusb100.so
  &gt; C:/Users/Hamzah/AppData/Local/Android/Sdk/ndk/16.1.4479499/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: shared library text segment is not shareable
  &gt; C:/Users/Hamzah/AppData/Local/Android/Sdk/ndk/24.0.8215888/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\bits/fortify/stdio.h:73: error: undefined reference to '__vsprintf_chk'
  &gt; clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
  &gt; C:/Users/Hamzah/AppData/Local/Android/Sdk/ndk/24.0.8215888/build//../toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\bits/fortify/stdio.h:73: error: undefined reference to '__vsprintf_chk'
  &gt; clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
  &gt; make: *** [obj/local/armeabi-v7a/libuvc.so] Error 1
  &gt; make: *** Waiting for unfinished jobs....
  &gt; make: *** [obj/local/x86/libjpeg-turbo1500.so] Error 1
  &gt; make: Leaving directory `C:/Users/Hamzah/AndroidStudioProjects/camera-bts-detector-master/camera-bts-detector-master/libuvccamera/src/main'
  
  &gt; Task :libuvccamera:ndkBuild FAILED
  Execution failed for task ':libuvccamera:ndkBuild'.
  &gt; Process 'command 'C:\Users\Hamzah\AppData\Local\Android\Sdk\ndk\16.1.4479499/ndk-build.cmd'' finished with non-zero exit value 2
  </code></pre>
  <p>and this is my AndroidManifest:</p>
  <pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.serenegiant.uvccamera&quot;
      android:versionCode=&quot;2&quot;
      android:versionName=&quot;1.1&quot; &gt;
  </code></pre>
  <p>this is local.properties:</p>
  <pre><code>sdk.dir=C\:\\Users\\Hamzah\\AppData\\Local\\Android\\Sdk
  ndk.dir=C\:\\Users\\Hamzah\\AppData\\Local\\Android\\Sdk\\ndk\\16.1.4479499
  </code></pre>
  <p>this is Android.mk:</p>
  <pre><code>######################################################################
  # Make shared library libUVCCamera.so
  ######################################################################
  LOCAL_PATH  := $(call my-dir)
  include $(CLEAR_VARS)
  
  ######################################################################
  # Make shared library libUVCCamera.so
  ######################################################################
  CFLAGS := -Werror
  
  
  LOCAL_C_INCLUDES := \
          $(LOCAL_PATH)/ \
          $(LOCAL_PATH)/../ \
          $(LOCAL_PATH)/../rapidjson/include \
  
  LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
  LOCAL_CFLAGS += -DANDROID_NDK
  LOCAL_CFLAGS += -DLOG_NDEBUG
  LOCAL_CFLAGS += -DACCESS_RAW_DESCRIPTORS
  LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
  
  LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl
  LOCAL_LDLIBS += -llog
  LOCAL_LDLIBS += -landroid
  
  LOCAL_SHARED_LIBRARIES += usb100 uvc
  
  LOCAL_ARM_MODE := arm
  
  LOCAL_SRC_FILES := \
          _onload.cpp \
          utilbase.cpp \
          UVCCamera.cpp \
          UVCPreview.cpp \
          UVCButtonCallback.cpp \
          UVCStatusCallback.cpp \
          Parameters.cpp \
          serenegiant_usb_UVCCamera.cpp
  
  LOCAL_MODULE    := UVCCamera
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  <p>I've tried NDK version 16 and 17, the result is as above.
  I've also tried NDK version 18-24, the result is like:</p>
  <pre><code>Android NDK: android-14 is unsupported. Using minimum supported version android-16
  Android NDK: WARNING: APP_PLATFORM android-16 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml.
  </code></pre>
  <p>any suggestions for me?
  sorry i'm a beginner,
  all answers i appreciate</p>