<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Say Hello 2 Software</title>
	<atom:link href="http://sayhello2software.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sayhello2software.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 22 Jan 2009 21:10:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sayhello2software.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Say Hello 2 Software</title>
		<link>http://sayhello2software.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sayhello2software.wordpress.com/osd.xml" title="Say Hello 2 Software" />
	<atom:link rel='hub' href='http://sayhello2software.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Compile XMMS and MPlayer for OpenSolaris 2008.11</title>
		<link>http://sayhello2software.wordpress.com/2009/01/22/compile-xmms-and-mplayer-for-opensolaris-200811/</link>
		<comments>http://sayhello2software.wordpress.com/2009/01/22/compile-xmms-and-mplayer-for-opensolaris-200811/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 17:04:13 +0000</pubDate>
		<dc:creator>Alexandru</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>

		<guid isPermaLink="false">http://sayhello2software.wordpress.com/?p=3</guid>
		<description><![CDATA[For those of you who want to use OpenSolaris[7] as an alternative for Linux, music and videos playback is essential. In order to do that, installing mplayer[1] (and probably xmms[2]) is a must. I couldn&#8217;t find any pre-compiled packages that would actually work on my system, so I had to compile them. Moreover, compiling MPlayer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sayhello2software.wordpress.com&amp;blog=6278312&amp;post=3&amp;subd=sayhello2software&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For those of you who want to use <em>OpenSolaris</em>[7] as an alternative for Linux, music and videos playback is essential. In order to do that, installing <em>mplayer</em>[1] (and probably <em>xmms</em>[2]) is a must. I couldn&#8217;t find any pre-compiled packages that would actually work on my system, so I had to compile them. Moreover, compiling <em>MPlayer</em> graphical user interface (GUI) is also important.</p>
<p>I used OpenSolaris 2008.11 running on i386 system on 32 bits.</p>
<p><strong>Installing necessary packages</strong></p>
<p>First of all, I needed to install the compiler and the compiling tools: <em>gcc</em>, <em>gmake </em>and <em>gawk</em>. The first two can be found in the opensolaris.org repository. I got the last one from the <em>Blastwave</em>[8] repository.</p>
<p>I noticed that <em>Midnight Commander</em>[9] was not installed. This program is very important to me, so I decided to install it.</p>
<blockquote><p>$ pfexec pkg install SUNWgnu-mc</p></blockquote>
<p>As a first step, I added <em>Blastwave</em> to the repositories list</p>
<blockquote><p>$ pfexec pkg set-authority -O http://blastwave.network.com:10000/ Blastwave</p></blockquote>
<p>The second step was to install the compiler packages</p>
<blockquote><p>$ pfexec pkg install SUNWgcc SUNWgmake IPSgawk</p></blockquote>
<p>Next, I needed to install some libraries, mostly used for the GUI (<em>gtk</em>, <em>glib</em>, <em>iconv</em>, etc<em>).</em></p>
<blockquote><p>$ pfexec pkg install SUNWGlib SUNWGtk SUNWgnome-common-devel</p></blockquote>
<p>The last thing I did was to install some headers used for compilation (usually called <em>the devel packages</em> in <em>Linux</em>).</p>
<blockquote><p>$ pfexec pkg install SUNWsfwhea SUNWaudh SUNWxorg-headers</p></blockquote>
<p>Some configuration was still necessary. It appears that pkg-config is not configred when it is installed. I had to set the PKG_CONFIG_PATH myself.</p>
<blockquote><p>$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig</p></blockquote>
<p>Next, I had to change the PATH variable a little. It seems that <em>awk</em> provided by <em>SUN</em>[10] with <em>OpenSolaris</em> is different from the <em>GNU</em>[11] version, so I had to change the PATH so that the compiler will get to the GNU version first (and use it).</p>
<blockquote><p>$ export PATH=/opt/csw/bin:$PATH</p></blockquote>
<p><strong>Downloading XMMS and MPlayer source</strong></p>
<p>I downloaded <em>XMMS</em> and <em>MPlayer</em> source code from their respective websites. None of of them has a special source code for <em>Solaris</em> so I used the default Linux version.</p>
<ul>
<li>XMMS 1.2.11[4]</li>
<li>MPlayer latest svn snapshot[5]</li>
</ul>
<p>After downloading, I unzipped the source codes into ~/sources/ (~ has the meaning of the home folser, located on my computer at <em>/export/home/alex</em>).</p>
<p><strong>Building MPlayer</strong></p>
<p>Before running the <em>./configure</em> script, I had to change it a bit. Mplayer uses <em>install</em> utility to install itself into the system. The only problem is that the version supplied by <em>SUN</em> is different from the <em>GNU</em> one that can be found on <em>Linux</em>. To solve this, I changed <em>./configure</em> so that it would use <em>ginstall</em> (<em>_install=install</em> was changed into <em>_install=ginstall</em>).</p>
<p>Another modification that I had to make in <em>./configure</em> is deleting a some lines with some <em>-rdynamic</em> option.</p>
<blockquote><p>./configure: line 508: _install=ginstall</p>
<p>./configure:line 7705:#if test &#8230;     &lt;- comment these lines</p>
<p>./configure:line 7706:# &#8230;</p>
<p>./configure:line 7707:#fi    &lt;- until here</p></blockquote>
<p>Configuring MPlayer was very easy. I enabled the GUI, the OSD Menu and the <em>Real Player</em> codes. Suprisingly or not, <em>OpenSolaris</em> does not have <em>/usr/local/bin</em> in the default PATH. Not to modify the PATH settings, I chose to set the prefix in <em>/usr/gnu</em> as most of the <em>Linux</em> programs are installed there.</p>
<blockquote><p>$ ./configure &#8211;prefix=/usr/gnu &#8211;enable-gui &#8211;enable-real &#8211;enable-menu</p></blockquote>
<p>For building MPlayer, I have used <em>gmake</em> instead of <em>make</em> for the same reason mentioned before: <em>SUN</em>&#8216;s tools are different from <em>GNU</em>&#8216;s.</p>
<blockquote><p>$gmake</p></blockquote>
<p><strong>Building XMMS</strong></p>
<p>XMMS was somehow more difficult to build. It seems like some part of the <em>mpg123</em> code used form <em>mp3</em> decoding cannot be made position independent under <em>SunOS</em> code style. This is why I had to make some changes in <em>./configure</em> by specifically telling the compiler not to build <em>SunOS or Solaris</em> code style.</p>
<blockquote><p>./configure: line 33414:       *-*-netbsd* | *-*openbsd* | *-*-solaris* | *-*-sunos*)</p></blockquote>
<p>Configuring <em>XMMS</em> was pretty straight forward. As for <em>MPlayer</em>, I chose as the installation folder <em>/usr/gnu</em>.</p>
<blockquote><p>$ ./configure &#8211;prefix=/usr/gnu</p></blockquote>
<p>As for <em>MPlayer</em>, I built used <em>gmake</em> for building.</p>
<blockquote><p>$ gmake</p></blockquote>
<p><strong>Installing</strong></p>
<p>Once the compiling of the two programs was done, all that was left to do was installing both of the programs and downloading a skin for <em>MPlayer</em> GUI.</p>
<p>In order to install the programs into the system, I had to login as <em>root</em>.</p>
<blockquote><p>$ su -</p></blockquote>
<p>The actual installing of <em>XMMS</em> and <em>MPlayer</em> is done by running <em>gmake install</em> (in each of the two source folders). Please keep in mind that it is very important to be logged in as <em>root</em>, otherwise you cannot write into <em>/usr/gnu</em>.</p>
<blockquote><p># gmake install</p></blockquote>
<p>The last step was downlaoding a skin for <em>MPlayer</em> GUI. I chose the <em>standard</em> skin, that can be found on <em>MPlayer</em>&#8216;s download page. The skin comes as an archive with a folder have the skin&#8217;s name inside it. The content of the archive has to be copied into <em>/usr/gnu/share/mplayer/skins</em>. Just rename the folder (with the name of the skin) into <em>default</em>. You should have a folder like this:</p>
<blockquote><p>/usr/gnu/share/mplayer/skins/default</p></blockquote>
<p><strong>Running XMMS and MPlayer</strong></p>
<p>One of the downsides of <em>XMMS</em> and <em>MPlayer</em> in <em>OpenSolaris</em> is that after installation, they will not appear in the Graphical Desktop Environment menues. You can run them by thyping <em>xmms</em> or <em>mplayer</em> (<em>gmplayer</em> for GUI) in the run window. You may also create some launchers in the panels.</p>
<blockquote><p>$ xmms</p>
<p>$gmplayer</p></blockquote>
<p>When using <em>XMMS</em>, please be sure to set the output pluign to <em>Solaris audio plugin</em>, as <em>OSS driver</em> will most probably not work.</p>
<p><strong>Problems</strong></p>
<p>There are still some problems that I couldn&#8217;t fix.</p>
<p>For <em>XMMS</em>, the <em>OSS driver</em> did not work. The problem was solved by choosing the <em>Solaris audio plugin</em> as output.</p>
<p>For <em>MPlayer</em>, the font encodings for the subtitles do not work. I still get en error:</p>
<blockquote><p>subtitle-font: prepare-charset failed.</p>
<p>iconv doesn&#8217;t know ucs-4 encoding. Use the source!</p></blockquote>
<p>If anyone knows how to fix this, please leave me a comment.</p>
<p>Enjoy.</p>
<p><strong>Links</strong></p>
<ol>
<li>MPlayer, <a href="http://www.mplayerhq.hu" target="_blank">www.mplayerhq.hu</a></li>
<li>XMMS, <a href="http://www.xmms.org" target="_blank">www.xmms.org</a></li>
<li>Compiling MPlayer on OpenSolaris 2008.05, <a href="http://blogs.sun.com/lewiz/entry/compiling_mplayer_on_opensolaris_2008" target="_blank">http://blogs.sun.com/lewiz/entry/compiling_mplayer_on_opensolaris_2008</a></li>
<li>XMMS Source code, version 1.2.11, <a href="http://alex.ipworkshop.ro/download/opensolaris/xmms-1.2.11.tar.bz2">http://alex.ipworkshop.ro/download/opensolaris/xmms-1.2.11.tar.bz2 </a>(the version with the <em>./configure</em> modified is available for <a href="http://alex.ipworkshop.ro/download/opensolaris/xmms-opensolaris.tgz">download</a>)<a href="http://alex.ipworkshop.ro/download/opensolaris/xmms-1.2.11.tar.bz2"><br />
</a></li>
<li>MPlayer svn snapshot, <a href="http://alex.ipworkshop.ro/download/opensolaris/mplayer-checkout-snapshot.tar.bz2">http://alex.ipworkshop.ro/download/opensolaris/mplayer-checkout-snapshot.tar.bz2 </a>(the version with the <em>./configure</em> modified is available for <a href="http://alex.ipworkshop.ro/download/opensolaris/mplayer-opensolaris.tgz">download</a>)</li>
<li>MPlayer standard skin, <a href="http://alex.ipworkshop.ro/download/opensolaris/standard-1.9.tar.bz2">http://alex.ipworkshop.ro/download/opensolaris/standard-1.9.tar.bz2</a></li>
<li>OpenSolaris, <a href="http://www.opensolaris.com" target="_blank">www.opensolaris.com</a></li>
<li>Blastwave, <a href="http://www.blastwave.org/" target="_blank">www.blastwave.org</a></li>
<li>Midnight Commander, <a href="http://www.midnight-commander.org/" target="_blank">www.midnight-commander.org</a></li>
<li>Sun Microsystems, <a href="http://www.sun.com" target="_blank">www.sun.com</a></li>
<li>The GNU Operating System, <a href="http://www.gnu.org/" target="_blank">www.gnu.org</a></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sayhello2software.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sayhello2software.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sayhello2software.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sayhello2software.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sayhello2software.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sayhello2software.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sayhello2software.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sayhello2software.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sayhello2software.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sayhello2software.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sayhello2software.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sayhello2software.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sayhello2software.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sayhello2software.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sayhello2software.wordpress.com&amp;blog=6278312&amp;post=3&amp;subd=sayhello2software&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sayhello2software.wordpress.com/2009/01/22/compile-xmms-and-mplayer-for-opensolaris-200811/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6404392aa4c9c9cee1c2212f1a804df9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alex</media:title>
		</media:content>
	</item>
	</channel>
</rss>
