Firstly for the record, fedora 18 comes with gtk, zlib, and alsa installed by default, BUT to configure and build mplayer with the gui interface (hence gmplayer) one needs development versions of include (and possibly libraries). So the following command is necessary BEFORE you "configure --enable-gui"
64 bit:
yum install zlib-devel.x86_64 gtk2-devel.x86_64 alsa-lib-devel.x86_64
for 32 bit, you also need yasm - so
yum install zlib-devel.i686 gtk2-devel.i686 alsa-lib-devel.i686 yasm-devel.i686
The error message from configure is almost worthless (except for yasm) - it mumbles about needing zlib even if it is alsa that is required. The config.log file is worthless for gtk, zlib and alsa as the last line only says checking on the gui.
--- After adding the above I was able to build mplayer and gmplayer successfully.
On the 64 bit machine, all runs fine. On the 32 bit machine mplayer runs fine, but gmplayer brings up a window for graphics for only a split second and then just continues with the audio portion. I logged stuff to see what happened - mostly the same, but ..
gmplayer used a full path to the video while mplayer uses ./
Here is the trailing stuff from mplayer stdout:
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.92.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
================================================== ========================
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 96.0 kbit/3.40% (ratio: 11999->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
================================================== ========================
AO: [alsa] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [gl_nosw] 640x360 => 640x360 Planar YV12
A: 0.2 V: 0.0 A-V: 0.231 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
...
Here is the comparable portion from gmplayer stdout:
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.92.100 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 96.0 kbit/3.40% (ratio: 11999->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
================================================== ========================
AO: [alsa] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A: 0.0 (00.0) of 278.8 (04:38.7) ??,?%
...
and stderr from gmplayer also logs
[AO_ALSA] Unable to find simple control 'PCM',0.
[AO_ALSA] Unable to find simple control 'PCM',0.
...
Obviously gmplayer launches mplayer poorly but I have no idea what is being left out of the path or ...
I can live without the graphics version but it sure would be nice to have it working.
PS - I had this working with fedora 16