configure-android won't support both ffmpeg and openssl?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm seeing confusing behavior in the 'configure-android' step (PJSIP 2.7.2, android arm64-v8a target architecture).

I can build just fine with openh264 and openssl. I was having some video issues with various softphone apps (some seem to only support H263), so I'm trying to switch from openh264 to ffmpeg, but for some reason the configure step fails to detect openssl capabilities.

This command works fine (only enabling openssl support):

ANDROID_NDK_ROOT=/Users/cdavis/src/android-ndk-r15c \
NDK_TOOLCHAIN_VERSION=4.9 \
TARGET_ABI=arm64-v8a \
APP_ABI=arm64-v8a \
APP_PLATFORM=android-23 \
./configure-android --use-ndk-cflags --with-ssl=/Users/cdavis/src/pjsip2.7.2/openssl-1.0.2o


The output from the configure script shows it detects openssl just fine:

Using SSL prefix... /Users/cdavis/src/pjsip2.7.2/openssl-1.0.2o
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... no
aconfigure: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!
aconfigure: WARNING: openssl/ssl.h: proceeding with the compiler's result
checking for openssl/ssl.h... yes
checking for ERR_load_BIO_strings in -lcrypto... yes
checking for SSL_CTX_new in -lssl... yes
OpenSSL library found, SSL support enabled
checking for EVP_aes_128_gcm in -lcrypto... yes
OpenSSL has AES GCM support, SRTP will use OpenSSL


I was having similar success detecting and building with openssl when I enabled openh264. It looks like all my libraries are in the right place. But, this is what happens when I try to add support for ffmpeg:

ANDROID_NDK_ROOT=/Users/cdavis/src/android-ndk-r15c \
NDK_TOOLCHAIN_VERSION=4.9 \
TARGET_ABI=arm64-v8a \
APP_ABI=arm64-v8a \
APP_PLATFORM=android-23 \
./configure-android --use-ndk-cflags --with-ssl=/Users/cdavis/src/pjsip2.7.2/openssl-1.0.2o --with-ffmpeg=/Users/cdavis/src/android-ndk-r15c/sources/ffmpeg/android/arm64-v8a


The configure script suddenly seems unable to find the openssl libraries! What gives?

Using ffmpeg prefix... /Users/cdavis/src/android-ndk-r15c/sources/ffmpeg/android/arm64-v8a
checking for pkg-config... pkg-config
checking ffmpeg packages...  libavdevice libavformat libavcodec libswscale libavutil
checking for enum AVPixelFormat... no
checking for v4l2_open in -lv4l2... no
Checking if OpenH264 is disabled... yes
Skipping Intel IPP settings (not wanted)
checking for OpenSSL installations..
Using SSL prefix... /Users/cdavis/src/pjsip2.7.2/openssl-1.0.2o
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... no
aconfigure: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!
aconfigure: WARNING: openssl/ssl.h: proceeding with the compiler's result
checking for openssl/ssl.h... yes
checking for ERR_load_BIO_strings in -lcrypto... no
checking for SSL_CTX_new in -lssl... no
** OpenSSL libraries not found, disabling SSL support **


Does anyone know what's going on? The last two tests shown are suddenly failing (the ones involving 'ERR_load_BIO' and 'SSL_CTX_new') when they were passing before.

By the way, these are the contents of config_site.h:

#define PJ_CONFIG_ANDROID 1
#define PJ_HAS_SSL_SOCK 1
#define PJSIP_HAS_TLS_TRANSPORT 1
#define PJMEDIA_HAS_VIDEO 1

For the attempts using '--with-ffmpeg=', I added a line:
#define PJMEDIA_HAS_FFMPEG 1

Thanks in advance for your help,

-Caleb

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux