Click to See Complete Forum and Search --> : I need help adding GUI support to MPlayer
donJulio
11-20-2003, 11:05 PM
I've already managed to compile and install this once from source, but w/o the GUI support. I added Win32, Quicktime and RealPlayer codecs to the following directory:
/usr/local/lib/codecs
as per the documentation.
Then I just used the following commands from the MPlayer directory:
./configure
make
make install
It's working well. But I need GUI support. To do that, instead of using ./configure, I would use:
./configure --enable-gui
make
make install
The problem is I don't know where to put the skin. Blue is the default and I have it downloaded, but I don't know where to put it. This is what the MPLayer documentation says:
As MPlayer doesn't have a skin included, you have to download them if you want to use the GUI. See the download page. They should be extracted to the usual system-wide directory ($PREFIX/share/mplayer/Skin), or to $HOME/.mplayer/Skin. MPlayer by default looks in these directories for a directory named default, but you can use the -skin newskin option, or the skin=newskin config file directive to use the skin in */Skin/newskin directory.
My problem is, what is $PREFIX? Where is that? is $PREFIX=/usr? It also says MPlayer looks in that directory for a directory named default. So would I create a $PREFIX/share/mplayer/Skin/default directory and then copy all the .png files from the Blue directory to there? This is confusing me :(
Lastly, it says to execute the gmplayer binary to turn on GUI mode. My problem is the definition of a binary. Is the mplayer command I use from the shell a binary? If it is, then can I assume that gmplayer would have been installed to /usr/local/bin/ just like mplayer .
Finally, by adding a skin to the appropriate directory, will there be any problems if I re-run the following commands:
./configure --enable-gui
make
make install
...even though I've already installed this once? Thanks for any help you can provide :)
ph34r
11-20-2003, 11:16 PM
When compiling from source, I typically do something like
./configure --prefix=/usr/local/AppName
So if you do
./configure --prefix=/usr/local/mplayer --enable-gui
Then your $PREFIX would be /usr/local/mplayer
Otherwise it defaults to /usr/local or /usr IIRC...
bosox79
11-20-2003, 11:29 PM
Originally posted by ph34r
When compiling from source, I typically do something like
./configure --prefix=/usr/local/AppName
So if you do
./configure --prefix=/usr/local/mplayer --enable-gui
Then your $PREFIX would be /usr/local/mplayer
Otherwise it defaults to /usr/local or /usr IIRC...
in addition to what ph34r said what distro are you running? there may already be a precompiled package for your distro that includes a gui or at least gives you a way to install it fairly easily:D
donJulio
11-20-2003, 11:39 PM
I'm running RedHat 9.0. I had tried using the rpms, but for some reason it didn't work for me. It seemed easier to just compile from source, and it was. I just need GUI support now.
I'm recomiling it right now. I used:
./configure --prefix=/usr/local/mplayer --enable-gui
I first had to creat the directory, along w/ several subdirectories. Using /usr/local/mplayer as the $PREFIX, this is where I installed on the files from the Blue folder:
/usr/local/mplayer/share/mplayer/Skin/default
Let's hope this works :)
EDIT: By the way, what is the gmplayer binary?
bosox79
11-21-2003, 03:44 AM
Originally posted by donJulio
I'm running RedHat 9.0. I had tried using the rpms, but for some reason it didn't work for me. It seemed easier to just compile from source, and it was. I just need GUI support now.
I'm recomiling it right now. I used:
./configure --prefix=/usr/local/mplayer --enable-gui
I first had to creat the directory, along w/ several subdirectories. Using /usr/local/mplayer as the $PREFIX, this is where I installed on the files from the Blue folder:
/usr/local/mplayer/share/mplayer/Skin/default
Let's hope this works :)
EDIT: By the way, what is the gmplayer binary?
You should be able to get mplayer along with the gui package gmplayer, installed via apt4rpm see my sig.
Liakoni
11-21-2003, 05:25 AM
When i am installing Mplayer the skins are supposed to extract in /usr/local/mplayer/Skin .
I am using Mandrake 9.2 (just upgraded from Mandrake 9.0)
:) :cool:
donJulio
11-21-2003, 02:18 PM
I'm making some progress. First I used this:
./configure --prefix=/usr/local/mplayer --enable-gui
And I got an error about not having libpng or libpng-devel
Anyhow, I did this:
rpm -qa | grep libpng
and I did have libpng-1.2.2-16. I downloaded and installed the libpng-devel-1.2.2-16 from rpmfind.net.
Now when I try to reconfigure, it gives me this error:
Error: X11 support required for GUI configuration
This is where you have to forgive my ignorance. What is X11? Where do I go to get it? My distro is RedHat 9.0. Thanks :)
bosox79
11-21-2003, 04:09 PM
Originally posted by donJulio
I'm making some progress. First I used this:
./configure --prefix=/usr/local/mplayer --enable-gui
And I got an error about not having libpng or libpng-devel
Anyhow, I did this:
rpm -qa | grep libpng
and I did have libpng-1.2.2-16. I downloaded and installed the libpng-devel-1.2.2-16 from rpmfind.net.
Now when I try to reconfigure, it gives me this error:
Error: X11 support required for GUI configuration
This is where you have to forgive my ignorance. What is X11? Where do I go to get it? My distro is RedHat 9.0. Thanks :)
unless I am mistaken X11 is part of the core or libraries for x-windows. So if you have X windows installed you should have the library, if I am mistaken about any of this someone please feel free to chime in :D
asklepios
11-21-2003, 05:09 PM
the easiest thing to do would be to d/l and install rpm's
http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
that ^ link have a gui enabled mplayer package but if you REALLY WANT to compile it yourself then you will need devel packages of X11. find them on your CD's.
donJulio
11-22-2003, 02:12 PM
I added all the packages for X Windows development from my RedHat CD's and I don't get that error anymore. I'm still using:
./configure --prefix=/usr/local/mplayer --enable-gui
However now I get this error (though I think/hope I'm getting close to the end of this):
Error: the GUI requires GTK (which was not found)
Check "configure.log" if you do not understand why it failed.
I used this: rpm -qa | grep gtk and this is the result:
gtk2-2.2.1-4
gnome-python2-gtkhtml2-1.99.14-5
authconfig-gtk-4.3.4-1
gtk-engines-0.11-16
mtr-gtk-0.52-2
gtk+-1.2.10-25
gtkhtml2-2.2.0-5
pygtk2-1.99.14-4
pygtk2-libglade-1.99.14-4
gtkhtml-1.1.8-5
gtk2-engines-2.2.0-2
usermode-gtk-1.67-2
gtkam-0.1.7-3
Shouldn't one of these be the correct library for gtk in the compilation of MPlayer w/GUI? Or am I barking up the wrong tree?
asklepios
11-23-2003, 03:01 PM
whenever u get an error about something missing at the time of compiling, 99% of times it is cos of missing devel packages. here you will need devel packages of gtk.
S.D.Willie
11-24-2003, 01:57 AM
this is why apt for redhat is kick a$$.
apg-get install mplayer mplayer skins
you will get EVERYTHING(yes, the gui too) needed and it will install beautifully. i like compiling it too but when its so easy...............just get the codecs and put them in /usr/local/lib/codecs before.
oh yeah..........you need to have apt installed first. synaptic is nice too.
SD