{"id":24,"date":"2005-10-03T04:58:00","date_gmt":"2005-10-03T09:58:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=24"},"modified":"2010-02-10T23:57:24","modified_gmt":"2010-02-11T04:57:24","slug":"installing-mplayerplug-in-for-firefox-1-0-4","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2005\/10\/03\/installing-mplayerplug-in-for-firefox-1-0-4\/","title":{"rendered":"Installing mplayerplug-in for Firefox-1.0.4"},"content":{"rendered":"<p>I love the site www.big-boys.com but in linux it would not play so I wanted to install a browser plugin that would play wmv files.<br \/>Here&#8217;s how I went about it. First I installed mplayer using yum (I use FC4 with kernel 2.6.13.2).<br \/><span style=\"font-family:verdana;\">yum install mplayer<\/span><br \/>Make sure the internet connection is present when you run this command.<\/p>\n<p>Then I went to <a href=\"http:\/\/plugindoc.mozdev.org\/linux.html#mplayer\">Linux Plugins site<\/a> to get the mplayerplugin. It redirected me to <a href=\"http:\/\/mplayerplug-in.sourceforge.net\/\">Mplayer Sourceforge<\/a> site.<\/p>\n<p>Then I downloaded the source of mplayerplug-in from <a href=\"http:\/\/prdownloads.sourceforge.net\/mplayerplug-in\/mplayerplug-in-3.11.tar.gz?download\">Sourceforge download page for Mplayerplug-in<\/a>.<br \/>Once I did that then came the main struggle of compiling and getting this to run.<\/p>\n<p>I first untarred the file with command:<br \/><span style=\"font-family:verdana;\"><br \/>tar zxvf mplayerplug-in-3.11.tar.gz<br \/>cd mplayerplug-in<br \/>.\/configure &#8211;with-gecko-sdk=\/usr\/include\/mozilla-1.7.8\/<br \/>make<br \/><\/span><br \/>But this resulted in a bunch of errors.<br \/>I realized that an extra slash was put in there so I opened the <span style=\"font-family:verdana;\">Makefile<\/span> with <span style=\"font-family:verdana;\">vim<\/span> and removed the extra slash at the end of the string <span style=\"font-family:verdana;\">\/usr\/include\/mozilla-1.7.8<b>\/<\/b><\/span> in the Makefile.<br \/>Tried to <span style=\"font-family:verdana;\">make<\/span> again but again errors this time around some include files called <span style=\"font-family:verdana;\">prtypes.h<\/span> was missing.<\/p>\n<p>I noticed that in the <span style=\"font-family:verdana;\">CFLAGS<\/span> section of the <span style=\"font-family:verdana;\">Makefile<\/span> there was a space between <span style=\"font-family:verdana;\">-I<\/span> and <span style=\"font-family:verdana;\">\/usr\/include<\/span>. Deleted those.<\/p>\n<p>So opened the <span style=\"font-family:verdana;\">Makefile<\/span> in <span style=\"font-family:verdana;\">vim<\/span> again and added the string <span style=\"font-family:verdana;\">-I\/usr\/include\/mozilla-1.7.8\/nspr\/<\/span> to the <span style=\"font-family:verdana;\">CFLAGS<\/span> section of the <span style=\"font-family:verdana;\">Makefile<\/span>.<\/p>\n<p>Also added <span style=\"font-family:verdana;\">-L\/usr\/lib\/firefox-1.0.4\/<\/span> to the <span style=\"font-family:verdana;\">LFLAGS<\/span> section coz I was getting some linker errors after that. The struggle was not over.<\/p>\n<p>I got a linker error :<br \/><span style=\"font-family:verdana;\"><br \/>\/usr\/bin\/ld: cannot find -lxpcomglue<br \/>collect2: ld returned 1 exit status<br \/><\/span><br \/>Changed the -lxpcomglue in Makefile to -lxpcom.<br \/>Finally, the compilation and the build were successful. Then the final command<br \/><span style=\"font-family:verdana;\">cp mplayerplug-in*.so \/usr\/lib\/firefox-1.0.4\/plugins\/<\/span><br \/>And now I have mplayerplug-in live and kicking!<\/p>\n<p>-Rajat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I love the site www.big-boys.com but in linux it would not play so I wanted to install a browser plugin that would play wmv files.Here&#8217;s how I went about it. First I installed mplayer using yum (I use FC4 with kernel 2.6.13.2).yum install mplayerMake sure the internet connection is present when you run this command. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[335,298,341,342],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-howto","tag-firefox","tag-kubuntu","tag-mplayer","tag-plugins"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}