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.4 platform.

Package Information

Additional Downloads

gnash Dependencies


agg-2.5, Boost-1.54.0, cURL-7.32.0, gst-ffmpeg-0.10.13, Firefox-23.0.1 or SeaMonkey-2.20 and giflib-5.0.5.


DejaGnu-1.5.1, GConf-3.2.6, git-1.8.4, libogg-1.3.1, libvorbis-1.3.3, Qt-4.8.5, Speex-1.2rc1, Wget-1.14, SWFTools, Swfmill , Mtasc, Netcat, Csound, LibGSM and Libdc1394.

User Notes:

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/ utilities/ &&
sed -i "/DGifOpen/s:Data:&, NULL:" libbase/GnashImageGif.cpp &&
./configure --prefix=/usr --sysconfdir=/etc               \
  --with-npapi-incl=/usr/include/npapi --enable-media=gst \
  --with-npapi-plugindir=/usr/lib/mozilla/plugins         \
  --without-gconf &&

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.

--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: This option tells it where to find some Mozilla headers that it needs. You should have installed these headers when you installed Firefox or SeaMonkey.

--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.


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

Short Descriptions


launches Gnash.

is the Mozilla browser plugin.

Last updated on 2013-09-07 12:48:14 -0700