On Sat, 30 Nov 2019 10:14:40 +0330 Vahid Moslemi <[email protected]> wrote: > and about the Android.mk file: When I tried to use ndk-build with > Android.mk. I faced the error: > > Android NDK: Trying to define local module 'samsung-ipc' in > /external_libsamsung-ipc/app/jni/Android.mk. > Android NDK: But this module was already defined by > /external_libsamsung-ipc/app/jni/Android.mk. > NKD_PATH/build/core/build-module.mk:34: *** Android NDK: Aborting. > . Stop. > Android NDK: Trying to define local module 'samsung-ipc' in > /external_libsamsung-ipc/app/jni/Android.mk. > Android NDK: But this module was already defined by > /external_libsamsung-ipc/app/jni/Android.mk. > NKD_PATH/build/core/build-module.mk:34: *** Android NDK: Aborting. > . Stop. That looks easier to fix.
In Android.mk we have the following being defined twice: > LOCAL_MODULE := libsamsung-ipc This is why it complains. I defined it twice to build both a static library and a dynamic library. A way to fix it would be to make sure that it works fine as a dynamic library with all the Replicant versions that use samsung-ipc master or something based on it. In the meantime you could remove (inside that Android.mk) either the "Shared library version of libsamsung-ipc" or the "Static library version of libsamsung-ipc" section and look if it works. Denis.
pgpQMlzjXjL9x.pgp
Description: OpenPGP digital signature
_______________________________________________ Replicant mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/replicant
