I am trying to create PJSIP on Android with SSL / TLS support.
I successfully built OpenSSL after this answer (without fips, like shared-.so libraries) and set it to ~ / android (which created the ~ / android / ssl directory file).
Now when i do
./configure-android --with-ssl=/home/andrea/android/ssl
and look at config.log, the first status errors
<ndk-directories-and-stuff>/arm-linux-androideabi/bin/ld: warning: libdl.so, needed by /home/andrea/android/ssl/lib/libcrypto.so, not found (try using -rpath or -rpath-link)
many undefined links are executed.
As a result, SSL support is disabled:
aconfigure:7012: result: ** OpenSSL libraries not found, disabling SSL support ** ac_cv_header_openssl_ssl_h=yes ac_cv_lib_ssl_SSL_library_init=no CFLAGS=' -I/home/andrea/android/android-ndk-r8e/platforms/android-14/arch-arm/usr/include -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -I/home/andrea/android/ssl/include' LDFLAGS=' -nostdlib -L/home/andrea/android/android-ndk-r8e/platforms/android-14/arch-arm/usr/lib/ -L/home/andrea/android/ssl/lib' ac_no_ssl='' libssl_present='' openssl_h_present='1'
but libdl.so exists in the ndk directory:
<ndk-dir>/platforms/android-14/arch-arm/usr/lib/
I think I should tell ld where the other libraries are, what does the ld suggestion mean?
try using -rpath or -rpath-link
I cannot understand what -rpath or rpath-link is or where to use them.
any ideas?
source share