gnash-0.8.10

Introduction to gnash

Gnash is the GNU Flash movie player and browser plugin. This is useful for watching YouTube videos or simple flash animations.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

Additional Downloads

gnash Dependencies

Required

agg-2.5, Boost-1.55.0, cURL-7.35.0, gst-ffmpeg-0.10.13, NPAPI-SDK-0.27.2, and giflib-5.0.5

Optional

DejaGnu-1.5.1, GConf-3.2.6, git-1.9.0, kdelibs-4.12.2, libogg-1.3.1, libvorbis-1.3.4, Qt-4.8.5, Speex-1.2rc1, Wget-1.15, SWFTools, Swfmill , Mtasc, Netcat, Csound, LibGSM and Libdc1394.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gnash

Installation of gnash

Install gnash by running the following commands:

patch -Np1 -i ../gnash-0.8.10-CVE-2012-1175-1.patch &&
sed -i '/^LIBS/s/\(.*\)/\1 -lboost_system/' \
  gui/Makefile.in utilities/Makefile.in &&
sed -i "/DGifOpen/s:Data:&, NULL:" libbase/GnashImageGif.cpp &&
sed -i '/#include <csignal>/a\#include <unistd.h>' plugin/klash4/klash_part.cpp &&
./configure --prefix=/usr --sysconfdir=/etc               \
  --with-npapi-incl=/usr/include/npapi-sdk --enable-media=gst \
  --with-npapi-plugindir=/usr/lib/mozilla/plugins         \
  --without-gconf &&
make

To test the results issue make check.

Now, as the root user:

make install &&
make install-plugin

Command Explanations

sed -i '/^LIBS/s/\(.*\)/\1 -lboost_system/' ...: This fixes linking to the current boost libraries.

sed -i "/DGifOpen/s:Data:&, NULL:" ...: This sed fixes building with recent versions of Giflib.

sed -i '/#include <csignal>/a\#include <unistd.h>' ...: This fixes building when kdelibs has been installed.

--enable-media=gst: This tells it to use Gstreamer for to play video and audio (--enable-media=ffmpeg is broken with FFmpeg-0.11.1).

--with-npapi-incl=/usr/include/npapi-sdk: This option tells it where to find some Mozilla headers that it needs.

--with-npapi-plugindir=/usr/lib/mozilla/plugins: This option tells it to install the Mozilla browser plugin into /usr/lib/mozilla/plugins.

--without-gconf: Omit this switch if you have GConf installed and wish gnash to use it.

make install-plugin: This command installs the Mozilla browser plugin.

Contents

Installed Program: gnash-gtk-launcher
Installed Libraries: 2 private libraries in /usr/lib/gnash and libgnashplugin.so.
Installed Directories: /usr/lib/gnash and /usr/share/gnash.

Short Descriptions

gnash-gtk-launcher

launches Gnash.

libgnashplugin.so

is the Mozilla browser plugin.

Last updated on 2014-03-01 19:40:57 -0800