--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/30a73534-c5c9-4994-8f0e-b2400b370a45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/fb60a0a1-ba91-48e9-9863-8706e963325e%40googlegroups.com.
Note that if you do rely on loading the libraries from the device, your app isn't going to work on N or newer: https://developer.android.com/about/versions/nougat/android-7.0-changes.html#ndk
On Mar 6, 2017 07:13, "Alex Cohn" <sasha...@gmail.com> wrote:
To use the AOSP libraries, I suggest the following change to your Android.mk:--LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_C_INCLUDES := \../includeLOCAL_SRC_FILES := \../src/sample.cLOCAL_LDLIBS := -Llibs \-lcutils -lhardwareLOCAL_MODULE := sampleLOCAL_MODULE_TAGS := optionalinclude $(BUILD_EXECUTABLE)
You could define libcutils and libhardware them as PREBUILT_SHARED_LIBRARIES, but this is mostly irrelevant for BUILD_EXECUTABLE (you don't rely on ndk-build to copy the libraries to your APK), and you really don't want to copy system libraries, but rather to use the ones actually installed on your device.Note that ndk-build may complain about using non-official libraries in LOCAL_LDLIBS, but you can ignore these warnings.BR,Alex CohnOn Sunday, March 5, 2017 at 7:44:45 PM UTC+2, techxpl...@gmail.com wrote:* Edit: I am able to instruct ndk-build in locating the headers files, but am not able to instruct it to locate the library files. The (ASOP) library files are currently located in a libs folder in my project root directory.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
Note that if you do rely on loading the libraries from the device, your app isn't going to work on N or newer: https://developer.android.com/about/versions/nougat/android-7.0-changes.html#ndk
On Mar 6, 2017 07:13, "Alex Cohn" <sasha...@gmail.com> wrote:
To use the AOSP libraries, I suggest the following change to your Android.mk:--LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_C_INCLUDES := \../includeLOCAL_SRC_FILES := \../src/sample.cLOCAL_LDLIBS := -Llibs \-lcutils -lhardwareLOCAL_MODULE := sampleLOCAL_MODULE_TAGS := optionalinclude $(BUILD_EXECUTABLE)
You could define libcutils and libhardware them as PREBUILT_SHARED_LIBRARIES, but this is mostly irrelevant for BUILD_EXECUTABLE (you don't rely on ndk-build to copy the libraries to your APK), and you really don't want to copy system libraries, but rather to use the ones actually installed on your device.Note that ndk-build may complain about using non-official libraries in LOCAL_LDLIBS, but you can ignore these warnings.BR,Alex CohnOn Sunday, March 5, 2017 at 7:44:45 PM UTC+2, techxpl...@gmail.com wrote:* Edit: I am able to instruct ndk-build in locating the headers files, but am not able to instruct it to locate the library files. The (ASOP) library files are currently located in a libs folder in my project root directory.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
Dan, it's not clear: are you blocking dlopen("/system/lib/libicuuc.so")?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/3b20467f-ac19-4fd0-9415-457ef527b78a%40googlegroups.com.