Closed nvmanh closed 4 years ago
I am sorry but I think this is out of the scope of libSRTP project. With cmake there is now support for building libSRTP for android, from there it should not be difficult to make a jni wrapper. I think in your case it is the contents of native-lib.cpp that is the problem, but with out looking at that file it is hard to now. Hope you find a solution. If you think it is a libSRTP issue then please provide some way of reproducing the issues.
Dear all,
Please help me to resolve this issue which occur on building android in Windows. Build other C++ project works
I tried to write jni wrapper for used in my project in android studio. All source code of libsrtp was copied to cpp folder in android studio to build
Build command failed. Error while executing process C:\Users\User\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\Users\User\AndroidStudioProjects\WrapperLibSRTP\app.cxx\cmake\debug\x86 srtp2} ninja: Entering directory `C:\Users\User\AndroidStudioProjects\WrapperLibSRTP\app.cxx\cmake\debug\x86' [1/1] Linking CXX shared library C:\Users\User\AndroidStudioProjects\WrapperLibSRTP\app\build\intermediates\cmake\debug\obj\x86\libsrtp2.so FAILED: C:/Users/User/AndroidStudioProjects/WrapperLibSRTP/app/build/intermediates/cmake/debug/obj/x86/libsrtp2.so cmd.exe /C "cd . && C:\Users\User\AppData\Local\Android\Sdk\ndk\20.1.5948944\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android16 --gcc-toolchain=C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libsrtp2.so -o C:\Users\User\AndroidStudioProjects\WrapperLibSRTP\app\build\intermediates\cmake\debug\obj\x86\libsrtp2.so CMakeFiles/srtp2.dir/srtp/ekt.c.o CMakeFiles/srtp2.dir/srtp/srtp.c.o CMakeFiles/srtp2.dir/crypto/cipher/cipher.c.o CMakeFiles/srtp2.dir/crypto/cipher/null_cipher.c.o CMakeFiles/srtp2.dir/crypto/cipher/aes.c.o CMakeFiles/srtp2.dir/crypto/cipher/aes_icm.c.o CMakeFiles/srtp2.dir/crypto/hash/auth.c.o CMakeFiles/srtp2.dir/crypto/hash/null_auth.c.o CMakeFiles/srtp2.dir/crypto/hash/hmac.c.o CMakeFiles/srtp2.dir/crypto/hash/sha1.c.o CMakeFiles/srtp2.dir/crypto/kernel/alloc.c.o CMakeFiles/srtp2.dir/crypto/kernel/crypto_kernel.c.o CMakeFiles/srtp2.dir/crypto/kernel/err.c.o CMakeFiles/srtp2.dir/crypto/kernel/key.c.o CMakeFiles/srtp2.dir/crypto/math/datatypes.c.o CMakeFiles/srtp2.dir/crypto/math/stat.c.o CMakeFiles/srtp2.dir/crypto/replay/rdb.c.o CMakeFiles/srtp2.dir/crypto/replay/rdbx.c.o CMakeFiles/srtp2.dir/crypto/replay/ut_sim.c.o CMakeFiles/srtp2.dir/native-lib.cpp.o -latomic -lm && cd ." C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'mod_srtp' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_add_stream' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_append_salt_to_key' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_create' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_128_null_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_192_hmac_sha1_32' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_192_null_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_256_hmac_sha1_32' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_cm_256_null_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_gcm_128_16_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_gcm_128_8_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_gcm_128_8_only_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_gcm_256_16_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_gcm_256_8_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_aes_gcm_256_8_only_auth' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_from_profile_for_rtcp' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_from_profile_for_rtp' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_null_cipher_hmac_null' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_null_cipher_hmac_sha1_80' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_rtcp_default' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_crypto_policy_set_rtp_default' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_dealloc' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_get_protect_rtcp_trailer_length' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_get_protect_trailer_length' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_get_stream' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_get_stream_roc' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_get_user_data' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_get_version' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_get_version_string' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_init' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_install_event_handler' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_install_log_handler' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_list_debug_modules' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_profile_get_master_key_length' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_profile_get_master_salt_length' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_protect' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_protect_mki' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_protect_rtcp' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_protect_rtcp_mki' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_remove_stream' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_set_debug_module' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_set_stream_roc' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_set_user_data' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_shutdown' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_stream_init' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_stream_init_keys' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_unprotect' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_unprotect_mki' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_unprotect_rtcp' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_unprotect_rtcp_mki' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_update' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: CMakeFiles/srtp2.dir/native-lib.cpp.o: multiple definition of 'srtp_update_stream' C:/Users/User/AppData/Local/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: CMakeFiles/srtp2.dir/srtp/srtp.c.o: previous definition here clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.