title: Building FFMPEG with librtmp for android
body: <p>I'm trying to build all-in-one static binary of FFMPEG with NDK r7b and everything works fine untill i try to build it with RTMP support.</p>
  
  <p>I'm usind sources from <a href="https://github.com/guardianproject/android-ffmpeg" rel="noreferrer">https://github.com/guardianproject/android-ffmpeg</a> with librtmp2.4 and custom config like this</p>
  
  <pre><code>.configure \
  --target-os=linux \
  --cross-prefix=arm-linux-androideabi- \
  --arch=arm \
  --sysroot=/home/andrey/android-ndk-r7b/platforms/android-3/arch-arm \
  --enable-static \
  --disable-shared \
  --disable-symver \
  --enable-small \
  --disable-devices \
  --disable-avdevice \
  --enable-gpl \
  --enable-librtmp \
  --prefix=../build/ffmpeg/armeabi \
  --extra-cflags=-I../rtmpdump/librtmp \
  --extra-ldflags=-L../rtmpdump/librtmp \
  </code></pre>
  
  <p>and rtmpdump directory lays on the same level as ffmpeg.
  As i understand last two strings in my config says where compiler may find sources of librtmp.
  But all i get is <code>ERROR: librtmp not found</code></p>
  
  <p>I'm not expereienced with NDK and obviosly i missing some important part but i can't find it by myself.</p>