Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Howto, sortof] How I got mplayerplug-in working with opera
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Sloden
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2004
Posts: 93
Location: Nidaros: Card Board Box, Second Floor

PostPosted: Sat Oct 29, 2005 1:46 am    Post subject: [Howto, sortof] How I got mplayerplug-in working with opera Reply with quote

It took me a couple of hours of eager googling and tinkering to succeed at getting mplayerplug-in working with opera, but hopefully it will help you getting there faster.

Initially I had the following emerged:

Code:
     www-client/opera-8.50
      net-www/mplayerplug-in-2.80
      www-client/mozilla-launcher-1.42
      net-libs/gecko-sdk-1.7.12-r1


Then I went to the mplayerplug-in sourcecode...

Code:
#cd /urs/portage/distfiles
#ls mplayerplug-in*
mplayerplug-in-2.80.tar.gz


If you at this point can't seem to find the tar-file, do an "emerge mplayerplug-in -avf" to fetch the sources.

Code:
#tar -xzvf mplayerplug-in-2.80.tar.gz
#cd mplayerplug-in/plugingate
#vim np_entry.cpp


Look up lines 108 and 109 - the ones looking like this:

Code:
if(aNPNFuncs->size < sizeof(NPNetscapeFuncs))         
      return NPERR_INVALID_FUNCTABLE_ERROR;


These lines more or less tell the plug-in to not work unless the browser is of type mozilla. You comment them by inserting // in front of each line:

Code:
// if(aNPNFuncs->size < sizeof(NPNetscapeFuncs))
//   return NPERR_INVALID_FUNCTABLE_ERROR;


It's time to make the new, modified plugin. Exit your editor, and exit the directory:

Code:
#cd ..
#./configure --enable-x --with-gecko-sdk=/usr/lib/gecko-sdk
#make
...
#cp mplayerplug-in.so /opt/opera/lib/opera/plugin/
#ln -s /usr/lib/gecko-sdk/lib/libxpcom.so /usr/lib/


From terminal run a:

Code:
$opera -debugplugin
...
opera: [plugin failed ] /opt/opera/lib/opera/plugins/mplayerplug-in.so, libnspr4.so: ...
...

$locate libnspr4.so
/usr/lib/gecko-sdk/lib/libnspr4.so


We have found the file we needed, Next we symlink to somewhere opera will find it:

Code:
#ln -s /usr/lib/gecko-sdk/lib/libnspr4.so /usr/lib/


Again I did a:

Code:
$opera -debugplugin


This time opera ended up not finding libplds4.so, so I repeated my previous procedure:

Code:
ln -s /usr/lib/gecko-sdk/lib/libplds4.so /usr/lib


This time it worked. :) And I hope it does for you all!
_________________
Screenshot of the month
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Thu Nov 10, 2005 11:40 pm    Post subject: Reply with quote

Nice post -- thanks for summarizing everything. Your sequence also works w/ mplayerplug-in-3.11 (one of the Opera developers/testers confirmed this on the opera.linux newsgroup).
Back to top
View user's profile Send private message
EASYdoor
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2004
Posts: 79
Location: Novo mesto

PostPosted: Mon Dec 05, 2005 7:34 pm    Post subject: whoooaaa Reply with quote

thanx man, this was killing me for weeks ;)

nice and it workd with mplayerplug-in 3.15 also
_________________
Pejt na pir! Ne, ne,...se boljs,....JST grem na pir ;)
Back to top
View user's profile Send private message
pamplemousse
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2004
Posts: 89

PostPosted: Wed Dec 07, 2005 9:43 pm    Post subject: Reply with quote

Hello,

I have modified the source and compiled Mplayer plugin. I have made all that Sloden explains. Root can now play videos of Apple trailers in Opera. But a normal user cannot play video. I have looked for permissions of libraries, but there are all executable for normal users.

Does anybody see where my problem is?

Thanks.
_________________
AMD Sempron 2800+ 64bit, 512 Mo RAM, ATI Radeon 7000 (64Mo), Sound Blaster Audigy 2 Value, 32-bit installation.

Pamplemousse aka Sun Wukong, DJ of The Metropolisians
http://themetropolisians.free.fr
http://www.myspace.com/themetropolisians
Back to top
View user's profile Send private message
supie
n00b
n00b


Joined: 18 Dec 2005
Posts: 2

PostPosted: Sun Dec 18, 2005 12:53 am    Post subject: Reply with quote

Hello, I am not a gentoo user yet (I use Ubuntu) but I hope it does not matter. I tried to follow this tutorial, but it somehow fails. I compiled the plugins with sdk 1.7 using gtk2, mplayerplugins3.17 (could this be the problem, should I use the --enable-x option instead - just tried that and it does not work either), removed lines that shoul be removed. It ocmpiled, I moved them to /usr/lib/opera/plugins/ started opera with -debugplugin option, but it did not say anything, so I went to preferences>advanced>content>plugin, hit the find new plugins and opera found all the mplayer plugins and they asociated with many filetypes. However, when I tried to watch same trailers on www.apple.com/trailers, it did not work. There is just a big white rectangle insted of the trailer (with no text "plugin-content" like when no plugins were installed). I do not have mplayer installed, but it should not be a problem, I hope?
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Sun Dec 18, 2005 4:36 am    Post subject: Reply with quote

The plugin invokes mplayer to show/play the video. Install mplayer on your system.
Back to top
View user's profile Send private message
supie
n00b
n00b


Joined: 18 Dec 2005
Posts: 2

PostPosted: Fri Dec 23, 2005 3:18 pm    Post subject: Reply with quote

Hm, I installed mplayer and it still did not work, so I recompiled mplayer and also installed Merlin - technical preview for Opera 9.0 and it started to work, to my surprise. But I do not know if it is related to Merlin or recompilation of mplayer.
Back to top
View user's profile Send private message
Dirkson
n00b
n00b


Joined: 29 Dec 2005
Posts: 1

PostPosted: Thu Dec 29, 2005 7:41 pm    Post subject: Almost Reply with quote

I tried the fix, but I get the following:

opera: [plugin failed ] /opt/netscape/plugins/mplayerplug-in.so, /opt/netscape/plugins/mplayerplug-in.so: cannot open shared object file: No such file or directory

I checked, and /opt/netscape/plugins/mplayerplug-in.so is a valid file, so it sounds like the classic "That file is in 64 bits and I don't want to deal with it!" complaint. Any ideas on how to fix this? I'd love an mplayerplug-in-bin, but that doesn't seem to be happening...

(Pardon if this should be in the amd64 forum. As it's mostly related to this thread, I figured it would make more sense here. I'll move it if need be.)
Back to top
View user's profile Send private message
pamplemousse
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2004
Posts: 89

PostPosted: Thu Dec 29, 2005 10:03 pm    Post subject: Reply with quote

Hello,

I have seen that 3.15 version of MPlayerplug-in is ready for Opera. No more need to link libraries in /usr/lib. But for me, users can still not play videos.

If you install Mplayerplug-in 3.15, don't forget to remove /o/opt/opera/lib/opera/plugin/mplayerplug-in.so before emerging, or you could end with segmentation fault when viewing videos with Opera.
_________________
AMD Sempron 2800+ 64bit, 512 Mo RAM, ATI Radeon 7000 (64Mo), Sound Blaster Audigy 2 Value, 32-bit installation.

Pamplemousse aka Sun Wukong, DJ of The Metropolisians
http://themetropolisians.free.fr
http://www.myspace.com/themetropolisians
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Dec 30, 2005 1:29 am    Post subject: Reply with quote

Moved from Desktop Environments to DT&T.
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Anon5710
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 232
Location: Belgium

PostPosted: Thu Feb 09, 2006 12:09 pm    Post subject: Reply with quote

Thanks for that guide :)
it worked like a charm:)
Back to top
View user's profile Send private message
zorth
l33t
l33t


Joined: 17 Feb 2004
Posts: 780
Location: Lovin' Gentoo

PostPosted: Tue Feb 28, 2006 2:08 am    Post subject: Reply with quote

thanks a lot sloden :)

thanks to your post, i can finally play videos browsing with opera ;)

regards.
_________________
Geŋtoo Worłd Rułe§
Back to top
View user's profile Send private message
gyaresu
n00b
n00b


Joined: 18 Sep 2005
Posts: 4

PostPosted: Sat Mar 04, 2006 10:14 am    Post subject: Re: Almost Reply with quote

Dirkson wrote:
I tried the fix, but I get the following:

opera: [plugin failed ] /opt/netscape/plugins/mplayerplug-in.so, /opt/netscape/plugins/mplayerplug-in.so: cannot open shared object file: No such file or directory

I checked, and /opt/netscape/plugins/mplayerplug-in.so is a valid file, so it sounds like the classic "That file is in 64 bits and I don't want to deal with it!" complaint. Any ideas on how to fix this? I'd love an mplayerplug-in-bin, but that doesn't seem to be happening...

(Pardon if this should be in the amd64 forum. As it's mostly related to this thread, I figured it would make more sense here. I'll move it if need be.)


Ditto. amd64 here also. path is correct, file is there. opera won't use it.
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Sat Mar 04, 2006 6:11 pm    Post subject: Re: Almost Reply with quote

gyaresu wrote:

Ditto. amd64 here also. path is correct, file is there. opera won't use it.


When you manually compiled it, what were your CFLAGS and CXXFLAGS setting? I suspect it was compiled for your default system.

Code:

~% objdump -a /opt/netscape/plugins/mplayerplug-in.so

/opt/netscape/plugins/mplayerplug-in.so:     file format elf32-i386
/opt/netscape/plugins/mplayerplug-in.so


will tell ya.

Maybe try setting CFLAGS (and CXXFLAGS) to -march=i386 when you compile it.

Just a guess.
Back to top
View user's profile Send private message
Slegge
n00b
n00b


Joined: 16 Dec 2004
Posts: 14

PostPosted: Thu Mar 23, 2006 8:46 pm    Post subject: Reply with quote

For AMD64 you need to download the gecko-sdk manualy and extract it to /emul/linux/x86/usr/lib and then compile the plugin using this command

Code:

./configure --enable-x --with-gecko-sdk=/emul/linux/x86/usr/lib/gecko-sdk/ --enable-x86_64 --x-libraries=/emul/linux/x86/usr/lib32/
make       


After that you can follow the original post and it should work.
Back to top
View user's profile Send private message
Riddick
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2005
Posts: 102
Location: Rome or Bristol

PostPosted: Wed May 03, 2006 7:02 pm    Post subject: Reply with quote

brilliant! Thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum