可选库:
Gstreamer Optional libgstreamer0.8-dev //跟视频播放有关,与FFMPEG不能同时选择。可选。
FFMPEG Possibly Required ffmpeg-dev //跟视频播放有关,与Gstreamer不能同时选择。可选。
gst-ffmpeg Possibly Required gstreamer0.8-ffmpeg-dev //选择Gstreamer作为视频播放时,必须加入
gst-ffmpeg Possibly Required gstreamer0.8-ffmpeg-dev //选择Gstreamer作为视频播放时,必须加入
SDL Possibly Required libsdl1.2-dev
AGG Possibly Required 2.4 or higher libagg-dev
OpenGL Possibly Required libgl1-mesa-dev
FLTK Possibly Required 2.0 or higher No distribution packages are available.
Cairo Possibly Required libcairo2-dev
(上边的这些是还没有验证的信息,还有很多库需要做验证,达到最少库的需求。)
gnash中configure 配置项解析
在configure配置项中,有三个项目是最为重要的,分别是—enable-gui= [gtk|kde|fltk|sdl|riscos|aqua|fb|hildon|alp|qtopia|dump]、—enable- renderer=[opengl|cairo|agg]、—enable-media=[GST|ffmpeg]。
首先,我们来看—enable-gui= [gtk|kde|fltk|sdl|riscos|aqua|fb|hildon|alp|qtopia|dump],这是选择gnash支持的gui 界面,其中我们选择的应该是qtopia[疑问:对于kde来说,他是基于qt,那kde与qtopia有什么区别],--enable- gui=gtk|sdl|kde|fltk|fb|hildon|alp|qtopia 默认的选项是gtk kde ,这个选项是gnash的gui界面,可以根据实际情况选择。需要说明的是:
GTK
The GTK+ toolkit, which is the default GUI. Said to interwork particularly well with firefox.
Hildon
The Hildon toolkist is based on GTK+, and is use by some mobile devices.
ALP
The ALP "Hiker" GUI is used for the Access Linux platform.
SDL
Simple DirectMedia Layer, a simple and portable GUI. Its sound facilities are used when --enable-media=ffmpeg regardless of whether it is also in charge of the GUI.
KDE
An interface adapted to the KDE Desktop Environment. This must be selected when building the Konqueror plugin "klash". Furthermore, the only renderer that currently works with KDE is opengl.
FLTK
Fast Light ToolKit, low on resource usage. Since all builds using fltk are now broken, we declare it "for developers".
FB
The Linux Frame Buffer, also known as /dev/fb0. AGG is the only renderer that can currently be used with the framebuffer GUI.
qtopia
support Trolltech qtopia as gui lib, if chose this option , the system must have qt lib support
再次,来看—enable-renderer=[opengl|cairo|agg],gnash根据不同的选项,可以支持三种不同类型对图像和音频的渲染方式,通过下边的选项来设置:
--enable-renderer=opengl
--enable-renderer=cairo d
--enable-renderer=agg (default) 注: renderer 渲染,只能选择一个选项
关于三种渲染方式的介绍:
OpenGL
OpenGL (Open Graphics Library) is a standard specification defining a cross-language cross-platform API for writing applications that produce 3D and 2D computer graphics. Accelerated graphic cards usually provide OpenGL at the hardware level. Please refer to Wikipedia for availability of free software OpenGL hardware drivers. A free software implementation of the API is available (Mesa). OpenGL can be used as a renderer in Gnash.
Cairo
Cairo is a 2D graphics library with support for multiple output devices. Can be used as a renderer in Gnash. A useful feature of Cairo is that it will automatically use graphic card acceleration when available. Cairo has an experimental OpenGL backend.
AGG
AGG is the AntiGrain 2D graphics library, which can be used as a renderer in Gnash. It is faster than OpenGL on systems without hardware graphics acceleration. As of Gnash version 0.8.2 it is the more feature complete renderer.
对于这个选项,选用默认的是最好的了,通常情况下,我们的系统没有图形加速卡,所以只能选用agg .