Skip to content

Instantly share code, notes, and snippets.

@dhoetger
Last active March 6, 2018 02:36
Show Gist options
  • Save dhoetger/011743e493ca88c0c69d61e713d618ba to your computer and use it in GitHub Desktop.
Save dhoetger/011743e493ca88c0c69d61e713d618ba to your computer and use it in GitHub Desktop.
Compiling VLC 2.2.8 on PiCore 9.0.3
tce-load -iw compiletc
tce-load -iw autoconf
tce-load -iw gettext
tce-load -iw automake
tce-load -iw libtool
tce-load -iw liba52
tce-load -iw libavahi
tce-load -iw avahi-dev
tce-load -iw bzip2-dev
tce-load -iw dbus-glib-dev
tce-load -iw gst-plugins-base-dev
tce-load -iw gst-plugins-good
tce-load -iw faad2-dev
tce-load -iw lua-dev
tce-load -iw libmpeg2-dev
tce-load -iw gdk-pixbuf-dev
tce-load -iw gtk2-dev
tce-load -iw pulseaudio-dev
tce-load -iw libxml2-bin
tce-load -iw libxml2-dev
tce-load -iw libnotify-dev
tce-load -iw alsa-plugins-dev
tce-load -iw libgcrypt-dev
tce-load -iw libva-dev
tce-load -iw libssh2-dev
tce-load -iw libid3tag-dev
tce-load -iw gnutls-dev
tce-load -iw gsm-dev
tce-load -iw libjpeg-turbo-bin
tce-load -iw libmad-dev
tce-load -iw librsvg-dev
tce-load -iw taglib-dev
tce-load -iw libtheora-dev
tce-load -iw libomxil-bellagio-dev
tce-load -iw coreutils
tce-load -iw sdl-dev sdl
tce-load -iw libXpm libXt libxkbfile-dev libxkbfile
tce-load -iw x264-dev x264-lib x265-dev x265 xcb-util-dev xcb-util xvid-dev xvid
# Download and load qt4 dev
cd /mnt/mmcblk0p2/tmp
mkdir qt4
cd qt4
wget http://www.tinycorelinux.net/7.x/armv6/tcz/qt4-base.tcz
wget http://www.tinycorelinux.net/7.x/armv6/tcz/qt4-dev.tcz
tce-load -i qt4-dev
# FFMPEG COMPILATION (v9 distro includes too new version of libavutil)
cd /mnt/mmcblk0p2/tmp/ffmpeg-2.8.14
./configure --enable-gpl --enable-nonfree --bindir=/usr/local/bin
sudo make
mkdir ../ffmpeg
sudo make install DESTDIR=/mnt/mmcblk0p2/tmp/ffmpeg
cd ..
mksquashfs ffmpeg ffmpeg.tcz
mv ffmpeg.tcz /mnt/sda1
cd ffmpeg
tar zcvf ../ffmpeg.tar.gz ./
cd /tmp
mv ffmpeg.tar.gz /mnt/sda1
export CFLAGS="-I/usr/local/include/ -I/usr/local/include/interface/vcos/pthreads \
-I/usr/local/include/interface/vmcs_host/linux -I/usr/local/include/interface/mmal \
-I/usr/local/include/interface/vchiq_arm -I/usr/local/include/IL -I/usr/local/include/GLES2 \
-I/usr/local/include/EGL -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" \
CXXFLAGS="-I/usr/local/include/ -I/usr/local/include/interface/vcos/pthreads \
-I/usr/local/include/interface/vmcs_host/linux -I/usr/local/include/interface/mmal \
-I/usr/local/include/interface/vchiq_arm -I/usr/local/include/IL -I/usr/local/include/GLES2 \
-I/usr/local/include/EGL -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/usr/local/lib"
# Load FFMPEG 3.1.3 (requires VLC patch)
tce-load ffmpeg ffmpeg-dev
# SDL_IMAGE COMPILATION
cd /mnt/mmcblk0p2/tmp/SDL_image-1.2.12
./configure --prefix=/usr/local
make
mkdir ../SDL_image
make install DESTDIR=/mnt/mmcblk0p2/tmp/SDL_image
cd ..
mksquashfs SDL_image SDL_image.tcz
tce-load -i SDL_image
# VLC COMPILATION
cd /mnt/mmcblk0p2/tmp
wget https://download.videolan.org/vlc/2.2.8/vlc-2.2.8.tar.xz
tar -xJf vlc-2.2.8.tar.xz
cd vlc-2.2.8
./bootstrap
patch -Np1 -i ../vlc-2.2.8-ffmpeg3-1.patch
sed -i 's/error-implicit-function-declaration//' configure
./configure --prefix=/usr/local --enable-omxil --enable-omxil-vout --enable-rpi-omxil \
--disable-mmal-codec --disable-mmal-vout --enable-gles2 --disable-dc1394 --disable-dv1394 \
--disable-linsys --disable-dvdread --disable-dvdnav --disable-bluray --disable-opencv \
--disable-decklink --disable-vcd --disable-libcddb --disable-gnomevfs \
--disable-shout --disable-sid --disable-mod --disable-shine --disable-theora \
--disable-freerdp --disable-vnc --disable-zvbi --disable-mfx \
--disable-kate --disable-fluidsynth --disable-dca --disable-projectm --disable-vsxu \
--disable-goom --disable-mtp --disable-upnp --disable-notify --disable-jack \
--disable-caca --disable-chromaprint --disable-schroedinger
# only errors on configure should be live555/livemedia, libva-x11, xcb-keysyms, librsvg-2.0 >= 2.9.0
make -j3
mkdir ../vlc
make install DESTDIR=/mnt/mmcblk0p2/tmp/vlc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment