Compiling MPlayer on OpenSolaris, this time with a GUI

In my previous blog entry about MPlayer I wrote the instructions to compile command-line version of MPlayer. Based on request of a reader of this blog I also describe how to build MPlayer with a GUI.

\* First of all, you need the source code. Get it from here. Unzip the source in your home directory and switch to the MPlayer directory: cd MPlayer-1.0rc2

\* Install GCC, gmake and desktop header files by running: pfexec pkg install SUNWgcc SUNWgmake SUNWxorg-headers SUNWGtk SUNWsfwhea

\* Replace the configure script with an updated script (two small changes were necessary for OpenSolaris - the original configure script won't work). The new configure script can be downloaded from here.

\* Run configure: ./configure --prefix=/opt/mplayer --enable-gui

\* Run gmake: gmake

\* Run install (as root): gmake install

\* Download a skin for MPlayer from MPlayer download page. If you can't make a choice, this skin looks quite OK. Unzip the skin and copy contents of it's directory into /opt/mplayer/share/mplayer/skins/default (only the files, do not create a subdirectory in the "default" directory).

\* Choose a font for subtitles. The Dejavu Sans font is a good choice. To configure the font, run: ln -s /usr/X11/lib/X11/fonts/TTF/DejaVuSans.ttf ~/.mplayer/subfont.ttf

Supposing everything went well (it should), mplayer is now available and you can run it's GUI by running: /opt/mplayer/bin/gmplayer

Now you can enjoy your favorite movies with a GUI on OpenSolaris :)



Comments:

Although I happily use Totem with Fluendo's fantastic plugins many thanks for posting this. Before the glory days of Fluendo plugins I had so much trouble finding such clear and concise directions on getting MPlayer compiled. It's good to know that new users will stumble across your instructions in the future :)

Posted by Ché Kristo on March 30, 2009 at 06:44 PM GMT #

Timing is a funny thing. I was testing mplayer which was built on Solaris 8 on OpenSolaris and you can see that here : http://www.blastwave.org/dclarke/blog/?q=node/136

A better build is almost certainly possible that can be released to the Solaris 10 users of the world also, I'll have to look into your instructions here.

Posted by Dennis Clarke on March 30, 2009 at 11:46 PM GMT #

If you find that mplayer fails with some x264 media just recompile it with a more recent version of gcc 4.x.

Posted by marcelo on March 31, 2009 at 06:26 AM GMT #

Also needed to add SUNWgawk and set PATH accordingly to /usr/gnu/bin if not all ready set.

Posted by Enda O'Connor on March 31, 2009 at 09:47 AM GMT #

I followed the instructions but I had to edit config.mak in order to successfully do gmake install
I had to change all references of 'cc' to 'gcc' and 'install' to '/usr/bin/ginstall'
Not sure if 'ginstall' was really necessary, but since I was editing that file, I changed it.
That happened on two different OpenSolaris systems. One based on kernel snv_110 and the other based on kernel snv_111

Posted by acruz on April 03, 2009 at 11:31 AM GMT #

Thanks for posting this tutorial!

Posted by Frank on April 04, 2009 at 01:39 PM GMT #

Strange thing: I compiled mplayer with gui, but then every time I open a videofile (avi, mpg, mov etc.) with gmplayer, it crashes. If I start Mplayer it works fine...

Posted by frank on April 05, 2009 at 01:01 AM GMT #

hi i got error while configuring mplayer GUI
any help

Undefined first referenced
symbol in file
vo_setwindow gui/libgui.a(interface.o)
ld: fatal: Symbol referencing errors. No output written to mplayer
collect2: ld returned 1 exit status
gmake: \*\*\* [mplayer] Error 1

Posted by srinivas miriyala on April 05, 2009 at 07:45 AM GMT #

Thanks Roman,
very useful for my notebook (white-book).

Posted by Muchlis Sadat on April 06, 2009 at 04:41 AM GMT #

i've followed your instruction but when i execute
gmake command, i got error like this :

gmake[1]: Leaving directory `/export/home/wehol/Desktop/MPlayer-1.0rc2/input'
gmake -C vidix
gmake[1]: Entering directory `/export/home/wehol/Desktop/MPlayer-1.0rc2/vidix'
LC_ALL=C awk -f pci_db2c.awk pci.db
awk: syntax error near line 67
awk: illegal statement near line 67
awk: syntax error near line 76
awk: illegal statement near line 76
awk: syntax error near line 128
awk: bailing out near line 128
gmake[1]: \*\*\* [pci_names.c] Error 2
gmake[1]: Leaving directory `/export/home/wehol/Desktop/MPlayer-1.0rc2/vidix'
gmake: \*\*\* [vidix/libvidix.a] Error 2
wehol@opensolaris:~/Desktop/MPlayer-1.0rc2#

can u help me Roman ...

Posted by Rachmat Febrianto on April 08, 2009 at 08:55 PM GMT #

@Rachmat febrianto

I got the same Error. See the Comment from Enda O'Connor and install SUNWgawk and set the Path:

export PATH=/usr/gnu/bin:$PATH

HTH

Posted by gman on April 10, 2009 at 04:17 AM GMT #

Very good information! Now, if you could post instructions on how to compile VLC player, it would be very good! :o)

Posted by Kebabbert on April 11, 2009 at 08:28 AM GMT #

<blockquote>The recommended way to install MPlayer is to compile from current SVN source</blockquote>

Issue the following command to get the latest sources:

<code>svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</code>

A directory named mplayer will be created in the current directory. You can later update your sources by typing

<code>svn update</code>

Posted by Naresh V on April 24, 2009 at 09:12 AM GMT #

I tried this in virtualbox and I don't know it is due to virtualbox or what but gmplayer gives -vo error (I remember I got it using ubuntu also but got around it 'll try that here soon) but mplayer works f9 except for sound which is because opensolaris doesn't recognize my virtual soundcard

Posted by Vaibhav on April 24, 2009 at 11:56 AM GMT #

update:
now it is working fine, seems like I messed up the font part now I just have to figure out how to start audio part

Posted by Vaibhav on April 24, 2009 at 02:39 PM GMT #

Is it "Monty Python's Flying Circus" on the screenshot, right? :)

Posted by ptecza on June 27, 2009 at 06:28 AM GMT #

I first downloaded the binary package from sunfreepacks and installed but a right click when playing the movie results in an immediate crash. So I thought I'd have a got at building from source - that worked but it also crashes on a right click while playing the movie
with the same error. MPlayer interrupted by signal 11 in module: vo_check_events
- MPlayer crashed by bad usage of CPU/FPU/RAM.

Any suggestions?

I am on OpenSolaris 2009.06 with an AMD X2 4200

Posted by Alan on July 15, 2009 at 08:03 AM GMT #

I am having trouble running gmake i get an error like this

gmake: \*\*\* No targets specified and no makefile found. Stop.

can u help me at all... i am really new to this stuff and I just want to be able to use wmv files without paying any money.

Posted by nick on September 11, 2009 at 05:10 PM GMT #

I am having trouble running gmake i get an error like this

gmake: \*\*\* No targets specified and no makefile found. Stop.

can u help me at all... i am really new to this stuff and I just want to be able to use wmv files without paying any money.

Posted by nick on September 11, 2009 at 05:11 PM GMT #

Hi everybody.
Thanx to the creator of this content.
I have just installed the command-line ver. of MPlayer and works just fine.
Now that I've found this other howto, I want to install this GUI version.
How do I uninstall th command-line version to proceed with this howto?
Thanxs.

Posted by felixalvador on October 08, 2009 at 03:58 PM GMT #

Hi again... I guess I already cleared my question myself.
I ran through:

$ sudo gmake uninstall
Password:
rm -f /opt/mplayer/bin/mplayer /opt/mplayer/bin/gmplayer
rm -f /opt/mplayer/bin/mencoder
rm -f /opt/mplayer/share/man/man1/mencoder.1 /opt/mplayer/share/man/man1/mplayer.1
rm -f /opt/mplayer/share/pixmaps/mplayer.xpm
rm -f /opt/mplayer/share/applications/mplayer.desktop
for l in en ; do \\
if test "$l" != "en"; then \\
rm -f /opt/mplayer/share/man/$l/man1/mplayer.1 \\
/opt/mplayer/share/man/$l/man1/mencoder.1 \\
/opt/mplayer/share/man/$l/man1/gmplayer.1 ; \\
fi ; \\
done

So, I'm going to install the graphic ver. :)

Posted by felixalvador on October 09, 2009 at 09:09 AM GMT #

Hi every1 again.

Well, I'm trying to install this MPlayer GUI ver.

felixsal@SPI-proyecs:~$ bunzip2 MPlayer-1.0rc2.tar.bz2
felixsal@SPI-proyecs:~$ tar xvf MPlayer-1.0rc2.tar
felixsal@SPI-proyecs:~$ cd MPlayer-1.0rc2
felixsal@SPI-proyecs:~/MPlayer-1.0rc2$ mv configure configure.old
felixsal@SPI-proyecs:~/MPlayer-1.0rc2$ wget http://blogs.sun.com/observatory/resource/configure
felixsal@SPI-proyecs:~/MPlayer-1.0rc2$ chmod +x configure
felixsal@SPI-proyecs:~/MPlayer-1.0rc2$ ./configure --prefix=/opt/mplayer --enable-gui
felixsal@SPI-proyecs:~/MPlayer-1.0rc2$ gmake

but I'm having the same error as "srinivas miriyala" on 'gmake' command:

Undefined first referenced
symbol in file
vo_setwindow gui/libgui.a(interface.o)
ld: fatal: symbol referencing errors. No output written to mplayer
collect2: ld returned 1 exit status
gmake: \*\*\* [mplayer] Error 1

Please, any help? any suggestions?

Thanx a lot in advance.

Posted by felixalvador on October 09, 2009 at 09:41 AM GMT #

Hi ppl.

I was "googling" and found the steps described here:

http://solaris.homeunix.com/?q=node/24

I followed that procedure and now everything is working just fine.

(I am still interested to know how to configure MPlayer with the steps described here, so any help is welcome)

Thanx in advance.

Posted by felixalvador on October 09, 2009 at 10:45 AM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today