Compiling MPlayer on OpenSolaris, this time with a GUI
By Roman Strobl on Mar 30, 2009
\* 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 :)