Hello again. I am new to this and am not sure about these things. Does anyone know what to use to include the libcrypt.so and libssl.so in the pjsua2 project? I have tried a few variants from different howtos I googled but I can't get it right. This page <http://raulherbster.blogspot.no/2014/08/problem-on-linking-openssl-into-you r.html> mentions copying the files from the device, but I tried copying the built openssl libraries libcrypto.so.1.0.0 and libssl.so.1.0.0 to the third-party folder and symlinked them as libcrypto.so and libssl.so, then adding this line in user.mak (I tried to adapt it from this page <http://www.bdsound.com/support/?p=139> ): export LDFLAGS += -L$(PJDIR)/third_party/lib/-lssl -lssl -L$(PJDIR)/third_party/lib/-lcrypto -lcrypto not sure about that one and it doesn't work. If I run in eclipse I get: 09-22 11:48:14.352: D/dalvikvm(22179): Trying to load lib /data/app-lib/org.pjsip.pjsua2.app-1/libpjsua2.so 0x421ac300 09-22 11:48:14.358: E/dalvikvm(22179): dlopen("/data/app-lib/org.pjsip.pjsua2.app-1/libpjsua2.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libcrypto.so.1.0.0" needed by "libpjsua2.so"; caused by load_library(linker.cpp:745): library "libcrypto.so.1.0.0" not found 09-22 11:48:14.358: W/dalvikvm(22179): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/pjsip/pjsua2/app/MyApp; 09-22 11:48:14.358: D/AndroidRuntime(22179): Shutting down VM 09-22 11:48:14.358: W/dalvikvm(22179): threadid=1: thread exiting with uncaught exception (group=0x41ba29a8) 09-22 11:48:14.361: E/AndroidRuntime(22179): FATAL EXCEPTION: main 09-22 11:48:14.361: E/AndroidRuntime(22179): java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libcrypto.so.1.0.0" needed by "libpjsua2.so"; caused by load_library(linker.cpp:745): library "libcrypto.so.1.0.0" not found 09-22 11:48:14.361: E/AndroidRuntime(22179): at java.lang.Runtime.loadLibrary(Runtime.java:365) 09-22 11:48:14.361: E/AndroidRuntime(22179): at java.lang.System.loadLibrary(System.java:514) 09-22 11:48:14.361: E/AndroidRuntime(22179): at org.pjsip.pjsua2.app.MyApp.<clinit>(MyApp.java:235) 09-22 11:48:14.361: E/AndroidRuntime(22179): at org.pjsip.pjsua2.app.MainActivity.onCreate(MainActivity.java:85) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.app.Activity.performCreate(Activity.java:5122) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.app.ActivityThread.access$600(ActivityThread.java:156) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.os.Handler.dispatchMessage(Handler.java:99) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.os.Looper.loop(Looper.java:153) 09-22 11:48:14.361: E/AndroidRuntime(22179): at android.app.ActivityThread.main(ActivityThread.java:5299) 09-22 11:48:14.361: E/AndroidRuntime(22179): at java.lang.reflect.Method.invokeNative(Native Method) 09-22 11:48:14.361: E/AndroidRuntime(22179): at java.lang.reflect.Method.invoke(Method.java:511) 09-22 11:48:14.361: E/AndroidRuntime(22179): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:8 33) 09-22 11:48:14.361: E/AndroidRuntime(22179): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 09-22 11:48:14.361: E/AndroidRuntime(22179): at dalvik.system.NativeStart.main(Native Method) Is there anyone that has this working and have a good howto or pointers? Thanks, Erik Johansson From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Roberto Fichera Sent: 19. september 2014 12:23 To: pjsip list Subject: Re: Building PJSIP with TLS for Android On 09/19/2014 09:43 AM, Erik Johansson wrote: Hi Erik, Hey, thanks. It does build now, when I built openssl for android <http://wiki.openssl.org/index.php/Android> and specified it like you said. There is no mention of it on the Android wiki page though. Your are right! The Wiki is not really updated ;-) ! Erik From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Roberto Fichera Sent: 17. september 2014 14:57 To: pjsip list Subject: Re: Building PJSIP with TLS for Android On 09/17/2014 12:46 PM, Erik Johansson wrote: Hello. Hi Erik, I am trying to build pjsip with TLS for Android, but "./configure-android" keeps reporting that OpenSSL is not installed. . checking for OpenSSL installations.. Using SSL prefix... yes checking openssl/ssl.h usability... no checking openssl/ssl.h presence... no checking for openssl/ssl.h... no checking for ERR_load_BIO_strings in -lcrypto... no checking for SSL_library_init in -lssl... no ** OpenSSL libraries not found, disabling SSL support ** . If I run "./configure" right after it, I get . checking for OpenSSL installations.. checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for ERR_load_BIO_strings in -lcrypto... yes checking for SSL_library_init in -lssl... yes OpenSSL library found, SSL support enabled checking for SSLv2_method in -lssl... no . This seems strange, as the "configure-android" wrapper calls "configure". I checked the configure file but I couldn't see why the check's result changed. I am running on Ubuntu 14.04 with openssl and libssl-dev installed from apt-get. Is TLS something that PJSIP on Android is not supporting just yet? I couldn't find any specific mention of it online. Is there something else happening that I am missing here? have you specified the --with-ssl = <path_of_your_ssl_for_android_directory> as configure argument? Cheers, Roberto Fichera. Thanks, Erik Johansson _______________________________________________ Visit our blog: <http://blog.pjsip.org> http://blog.pjsip.org pjsip mailing list <mailto:pjsip at lists.pjsip.org> pjsip at lists.pjsip.org <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: <http://blog.pjsip.org> http://blog.pjsip.org pjsip mailing list <mailto:pjsip at lists.pjsip.org> pjsip at lists.pjsip.org <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140924/d05b90f0/attachment.html>