tutorial: adicionando o VLC ao ardrone

Esse post presume que você já tenha feito todo o setup para compilar o VLC para ardrone.

http://dronespersonalizados.blogspot.com.br/2013/11/cross-compile-vlc-para-ardrone-usando-o.html

O libav é uma das mais completas bibliotecas para codificação e decodificação de audio e vídeo.

> Ambiente de compila ARM

root@ubuntu:~# su -

> Baixar libav do git

root@ubuntu:~# git clone git://git.libav.org/libav.git

root@ubuntu:~# cd libav/

root@ubuntu:~/libav#

> configuração não muito livre

root@ubuntu:~/libav# ./configure –cross-prefix=arm-none-linux-gnueabi- –enable-cross-compile –target-os=linux –arch=arm –cpu=arm926ej-s –disable-debug –disable-altivec –disable-sse –disable-armv6 –disable-armv6t2  –disable-mmx –disable-neon –disable-amd3dnow –enable-shared –enable-static –prefix=/data/video/vlc  –enable-gpl –enable-nonfree –enable-version3

> configuração livre

root@ubuntu:~/libav# ./configure –cross-prefix=arm-none-linux-gnueabi- –enable-cross-compile –target-os=linux –arch=arm –cpu=arm926ej-s –disable-debug –disable-altivec –disable-sse –disable-armv6 –disable-armv6t2  –disable-mmx –disable-neon –disable-amd3dnow –enable-shared –enable-static –prefix=/data/video/vlc

> Compilar e instalar libav

root@ubuntu:~/libav# make

root@ubuntu:~/libav# make install

> Baixar, extrair, configurar, compilar e instalar o pkg-config para ardrone

root@ubuntu:~/libav# cd ~/Downloads

root@ubuntu:~/Downloads# wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz

root@ubuntu:~/Downloads#  tar xfvz pkg-config-0.28.tar.gz

root@ubuntu:~/Downloads# cd pkg-config-0.28

root@ubuntu:~/Downloads/pkg-config-0.28# ./configure –prefix=/data/video/vlc –build=arm-none-linux-gnueabi

root@ubuntu:~/Downloads/pkg-config-0.28# make

root@ubuntu:~/Downloads/pkg-config-0.28# make install

> Colocar o pkg-config no PATH para o build do VLC encontrar

root@ubuntu:~/Downloads/pkg-config-0.28# export PATH=/data/video/vlc/bin:$PATH

> Recompilar o VLC com LIBAV

root@ubuntu:~/Downloads/pkg-config-0.28# cd ../vlc-2.1.1

root@ubuntu:~/Downloads/vlc-2.1.1# ./configure –host=arm-none-linux-gnueabi –disable-lua –disable-mad –disable-swscale –disable-a52 –disable-xcb –disable-libgcrypt –disable-dbus –disable-alsa –disable-pulse –disable-libxml2 –disable-udev –disable-freetype –disable-sdl –disable-caca –disable-bonjour –enable-run-as-root –prefix=/data/video/vlc && make && make install