I am pulling my hair out trying to compile FFMPEG for Android with librtmp enabled. I have successfully built FFMPEG using the Guardian Project here, but it does not have librtmp support. The only answer I found in this problem is the previous stack overflow question ( HERE ), but it does not want to work for me.
At the moment, I have the compiled librtmp.so.0 file from the official rtmpdump android build in the rtmpdump / librtmp folder located in the android-ffmpeg folder. The extract from my configure_ffmpeg.sh file looks like this:
./configure \ $DEBUG_FLAG \ --arch=arm \ --cpu=cortex-a8 \ --target-os=linux \ --enable-runtime-cpudetect \ --prefix=$prefix \ --enable-pic \ --disable-shared \ --enable-static \ --cross-prefix=$NDK_TOOLCHAIN_BASE/bin/$NDK_ABI-linux-androideabi- \ --sysroot="$NDK_SYSROOT" \ --extra-cflags="-I../x264 -mfloat-abi=softfp -mfpu=neon" \ --extra-ldflags="-L../x264" \ --extra-cflags="-I/home/dan/android-ffmpeg/rtmpdump" \ --extra-ldflags="-L/home/dan/android-ffmpeg/rtmpdump -lrtmp" \ --enable-version3 \ --enable-gpl \ \ --disable-doc \ --enable-yasm \ \ --enable-decoders \ --enable-encoders \ --enable-muxers \ --enable-demuxers \ --enable-parsers \ --enable-protocols \ --enable-filters \ --enable-avresample \ --enable-libfreetype \ \ --disable-indevs \ --enable-indev=lavfi \ --disable-outdevs \ \ --enable-hwaccels \ \ --enable-ffmpeg \ --disable-ffplay \ --disable-ffprobe \ --enable-ffserver \ --enable-network \ \ --enable-libx264 \ --enable-zlib \ --enable-librtmp \
When I try to compile this, it ultimately displays an error, and my config.log FFMPEG file tells me that it cannot find -lrtmp. I'm sure I am directing it to the right directory ... does anyone have any ideas?
Hello
Dan
source share