![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Way Too Much Ubuntu
![]() |
HOWTO: Compile MPlayer with a GTK2 GUI
I've always hated the MPlayer GUI, but could never bring myself to change players because I like having the controls and the movie seperated. After a little bit of googling, I managed to find a patch for the newest version. This is a very simple HOWTO, and I've also included how to compile the mplayer plugin with GTK2, which requires no patching.
Lets start off with the essentials, the source, and the build tools (for those who have never compiled before) You can grab the source from here ftp://ftp.mplayerhq.hu/MPlayer/relea...e7try2.tar.bz2. Once that has downloaded, extract it by either opening nautilus and browsing to it's location and opening it with archive manager, or run this command. Code:
tar xjfv MPlayer-1.0pre7try2.tar.bz2 Code:
sudo apt-get install build-essential sudo apt-get install gcc-3.4 sudo apt-get install libx11-dev sudo apt-get install libxv-dev sudo apt-get install libpng12-0 sudo apt-get install libpng12-dev sudo apt-get install checkinstall sudo apt-get install libavcodec-dev Now, one more thing to download, the patch from here http://seethrubuntu.ath.cx/MPlayer-1...gtk2.patch.bz2 Make sure to download that to the same directory that you downloaded MPlayer-1.0pre7.tar.bz2 to. Once the download is done, do the following. Code:
cd /location/to/MPlayer-1.0pre7try2 bzcat ../MPlayer-1.0pre7-gtk2.patch.bz2 |patch -p1 In the MPlayer-1.0pre7try2 directory run the configure command. Code:
./configure --enable-gui --enable-gtk2 Once configure is done, just run Code:
make && sudo checkinstall KNOWN ISSUES: Right click on the movie window does not work every time, I've found however if you double click it fast, it does work. I'll be looking into this tonight as there is a patch for a previous version of mplayer that fixes this. Now, once thats installed, onto MPlayer plugin. You can grab the source from here http://prdownloads.sourceforge.net/m...ar.gz?download and you'll also need the mozilla gecko-sdk which can be found here http://ftp.mozilla.org/pub/mozilla.o...t-1.8b1.tar.gz Once that is downloaded, extract it, just like we did MPlayer, then browse to the directory it made and run configure again, this time with the following options. Code:
./configure --with-gecko-sdk=/path/to/gecko-sdk --enable-gtk2 Code:
make && sudo checkinstall Last edited by seethru; October 18th, 2005 at 12:21 PM.. |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() Join Date: Jul 2005
Location: Brasil
Beans: 67
Ubuntu 7.04 Feisty Fawn
|
Re: HOWTO: Compile MPlayer with a GTK2 GUI
Other packages you need:
libpng libpng-dev I think libavcodec-dev would be the right package when you mean libavcodec. Another mistake here: bzcat ../MPlayer-1.0pre7-gtk2.patch.bz2 |patch -p1 It should be: bzcat MPlayer-1.0pre7-gtk2.patch.bz2 |patch -p1 When executing: ./configure --with-gecko-sdk=/path/to/gecko-sdk --enable-gtk2 I've got an error: Checking for gcc-3.4 version ... not found Checking for gcc-3.3 version ... not found Checking for gcc-3.2 version ... not found Checking for gcc-3.1 version ... not found Checking for gcc3 version ... not found Checking for gcc-3.0 version ... not found Checking for cc version ... 4.0.2, bad I think the problem is the new breezy gcc version... Then I did: ./configure --enable-gui --enable-gtk2 --disable-gcc-checking OK, but... Error: X11 support required for GUI compilation
__________________
Come on, search is easier than posting! UbuntuForums Search | Ubuntu Wiki | UbuntuGuide | GoogleLinux Last edited by LaSSarD; October 17th, 2005 at 07:34 PM.. |
|
|
|
|
|
#3 | |
|
Way Too Much Ubuntu
![]() |
Re: HOWTO: Compile MPlayer with a GTK2 GUI
Quote:
you also need to change /path/to/hecko-sdk to whatever /path/to is. I'll be sure to add that into the HOWTO. Last edited by seethru; October 17th, 2005 at 07:42 PM.. |
|
|
|
|
|
|
#4 |
|
Way Too Much Ubuntu
![]() Join Date: Apr 2005
Location: Finland
Beans: 288
|
Re: HOWTO: Compile MPlayer with a GTK2 GUI
Okay, once I installed gcc-3.4 it compiled with quite a few warnings. It worked somewhat well, except that the right-click menu stopped working and I had only two video drivers to choose from. The difference in appearance was stunning though.
|
|
|
|
|
|
#5 | |
|
Way Too Much Ubuntu
![]() |
Re: HOWTO: Compile MPlayer with a GTK2 GUI
Quote:
|
|
|
|
|
|
|
#6 | |
|
Way Too Much Ubuntu
![]() |
Re: HOWTO: Compile MPlayer with a GTK2 GUI
Quote:
Can't believe I've missed these, thats what I get for assuming...lol Last edited by seethru; October 17th, 2005 at 09:23 PM.. |
|
|
|
|
|
|
#7 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2004
Location: Ontario
Beans: 187
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Compile MPlayer with a GTK2 GUI
Thank god! Great work, seethru. Any chance of doing the same thing for Xine?
__________________
Last edited by vaskark; October 18th, 2005 at 12:16 AM.. |
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Oct 2005
Location: Astarica
Beans: 104
Ubuntu 6.06
|
Re: HOWTO: Compile MPlayer with a GTK2 GUI
This is a nice howto and compiling and installing went without problems, but:
This method doesn't seem to compile with xv support! mplayer -vo help | grep xv ...verifies this, because a line similar to this should appear: xv X11/Xv But it doesn't (for me at least). I definitely need xv for my S3 Savage video card. Anyone know what's going wrong? |
|
|
|
|
|
#9 |
|
Grande Half-n-Half Cinnamon Ubuntu
![]() |
Re: HOWTO: Compile MPlayer with a GTK2 GUI
You want to install libxv-dev to get xv support compiled.
|
|
|
|
|
|
#10 | |
|
A Carafe of Ubuntu
![]() Join Date: Oct 2005
Location: Astarica
Beans: 104
Ubuntu 6.06
|
Re: HOWTO: Compile MPlayer with a GTK2 GUI
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|