saki4510t/UVCCamera

libUVCCamera.so : shared library text segment is not shareable

hamric-id opened this issue · 0 comments

when I click run in Android Studio, there is a problem with libuvccamera:ndkBuild like this:


[x86] Compile++      : UVCCamera <= utilbase.cpp
[x86] Compile++      : UVCCamera <= _onload.cpp
[armeabi-v7a] Install        : libuvc.so => libs/armeabi-v7a/libuvc.so
[x86] Compile++      : UVCCamera <= UVCCamera.cpp
[x86] Compile++      : UVCCamera <= UVCPreview.cpp
[x86] Compile++      : UVCCamera <= UVCButtonCallback.cpp
[x86] Compile++      : UVCCamera <= UVCStatusCallback.cpp
[x86] Compile++      : UVCCamera <= Parameters.cpp
[x86] Compile++      : UVCCamera <= serenegiant_usb_UVCCamera.cpp
[x86] Install        : libusb100.so => libs/x86/libusb100.so
[x86] SharedLibrary  : libjpeg-turbo1500.so
[armeabi-v7a] SharedLibrary  : libUVCCamera.so
C:/Users/Hamzah/AppData/Local/Android/Sdk/ndk/17.2.4988734/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**
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'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/x86/libjpeg-turbo1500.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `C:/Users/Hamzah/AndroidStudioProjects/camera-bts-detector-master/camera-bts-detector-master/libuvccamera/src/main'

How to set libUVCCamera.so to be shareable ?