gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Is SDL needed for libmad or ffmpeg? And what about GTK a


From: Bastiaan Jacques
Subject: Re: [Gnash-dev] Is SDL needed for libmad or ffmpeg? And what about GTK and renderers?
Date: Sun, 9 Dec 2007 21:36:07 +0100 (CET)

Alright, a little bit of (understandable) confusion here.

On Thu, 15 Nov 2007, Jeremy C. Reed wrote:
The README says GTK (GtkGlExt) and FLTK2 are alternatives to SDL. And
suggests GTK version is better due to full event handling.

It is important to distinguish between GUI and not GUI related. In the
GUI, SDL, GTK, and FLTK2 are indeed all valid choices.

But it looks like default media mad or ffmpeg still use SDL. Why use GTK
and SDL?

In this instance, SDL is not meant in the GUI sense. SDL, here, is used
for audio but it has no bearing on the GUI. You can use any GUI,
including SDL, regardless.

Does adding SDL with GTK cause: "The SDL version has no event
handling, which means mouse clicks and keys pressed get ignored. Also the
windows don't resize, and occasionally they overrun their boundaries." ??

No. If you see this message it means you opted to use the SDL GUI (which
is not the default). If you build the SDL GUI then GTK is not a
dependency.  It should, however, be possible to build both the
SDL and GTK GUIs, because the build system allows you to build any
GUI for which you have dependencies installed. For instance, you could
configure with --enable-gui=gtk,sdl,kde and they would all be built.

But if you *just* want the GTK GUI, you specify --enable-gui=gtk.

Also README says cairo is an renderer option. But later it says it is
required when using GTK. So are opengl and agg only options when not using
GTK?

Another distinguishment here: We use Cairo (the library) directly in our
Cairo-based renderer. However, new versions of GTK (the library) depend on Cairo (the library) and building generally requires that we link in this dependency. So no matter which renderer you use, Cairo (the library) will be required to build the GTK GUI. However, Gnash won't use Cairo (the
library) directly unless you specify the Cairo renderer.

I should also point out that not all GUI-renderer combinations are
possible at this time. For example, the FLTK2 GUI is not compatible with
the OpenGL renderer.

Hope that clears things up.

Bastiaan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]