要播放一些旧的 Flash 动画,我需要一个用于 ubuntu 20.04 的 Flash 播放器。我曾经使用Gnash,但这不再随 ubuntu 一起提供。所以我尝试自己编译它,即克隆了 git 存储库,做了./autogen.sh
,./configure
并尝试安装所有缺少的库。这工作除了:
ERROR: GST media handling requested but gstreamer-0.10+ not found
Install it from http://www.gstreamer.net
or .deb users: apt-get install libgstreamer0.10-dev
or .rpm users: yum install gstreamer-devel
or yast users: yast install gstreamer010-devel
ERROR: Base plugins are required for gstreamer media!
Install gstreamer-plugins-base from http://www.gstreamer.net
or .deb users: apt-get install
libgstreamer-plugins-base0.10-dev
or .rpm users: yum install gstreamer-plugins-base-devel
ERROR: No xulrunner development package is installed!
Install it from
http://releases.mozilla.org/pub/mozilla.org/xulrunner
or .deb users: apt-get install xulrunner-dev
or maybe : apt-get install npapi-sdk-dev
or maybe : apt-get install firefox-dev
or .rpm users: yum install xulrunner-devel
or specify --disable-npapi
对于最后一个,我没有在 ubuntu 存储库中找到一个xulrunner-dev
或一个包,但是安装了. 这不起作用,所以我使用.npapi-dev
firefox-dev
--disable-npapi
对于gstreamer
插件,我安装了 1.0 版。但如果我这样做,make
我会收到以下错误消息:
make all-recursive
make[1]: Entering directory '/home/myuser/build/gnash'
Making all in desktop
make[2]: Entering directory '/home/myuser/build/gnash/desktop'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myuser/build/gnash/desktop'
Making all in libdevice
make[2]: Entering directory '/home/myuser/build/gnash/libdevice'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/myuser/build/gnash/libdevice'
Making all in libbase
make[2]: Entering directory '/home/myuser/build/gnash/libbase'
sed -e 's|@DEFAULT_FLASH_PLATFORM_ID[@]|LNX|g' -e 's|@DEFAULT_FLASH_MAJOR_VERSION[@]|10|g' -e 's|@DEFAULT_FLASH_MINOR_VERSION[@]|1|g' -e 's|@DEFAULT_FLASH_REV_NUMBER[@]|999|g' -e 's|@DEFAULT_STREAMS_TIMEOUT[@]|60|g' -e 's|@DEFAULT_SOL_SAFEDIR[@]|~/.gnash/SharedObjects|g' './gnashrc.in' >gnashrc
make[2]: Leaving directory '/home/myuser/build/gnash/libbase'
Making all in libmedia
make[2]: Entering directory '/home/myuser/build/gnash/libmedia'
CXX libgnashmedia_la-AudioDecoderGst.lo
In file included from gst/AudioDecoderGst.cpp:20:
gst/AudioDecoderGst.h:27:10: fatal error: gst/gst.h: No such file or directory
27 | #include <gst/gst.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1126: libgnashmedia_la-AudioDecoderGst.lo] Error 1
make[2]: Leaving directory '/home/myuser/build/gnash/libmedia'
make[1]: *** [Makefile:1163: all-recursive] Error 1
make[1]: Leaving directory '/home/myuser/build/gnash'
make: *** [Makefile:1071: all] Error 2
那么我怎样才能gnash
在 ubuntu 20.04 上工作呢?