View previous topic :: View next topic |
Author |
Message |
Sloden Tux's lil' helper
Joined: 30 Dec 2004 Posts: 93 Location: Nidaros: Card Board Box, Second Floor
|
Posted: Sat Oct 29, 2005 1:46 am Post subject: [Howto, sortof] How I got mplayerplug-in working with opera |
|
|
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 |
|
|
rwf Apprentice
Joined: 24 Jan 2004 Posts: 234 Location: mi.us
|
Posted: Thu Nov 10, 2005 11:40 pm Post subject: |
|
|
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 |
|
|
EASYdoor Tux's lil' helper
Joined: 21 Aug 2004 Posts: 79 Location: Novo mesto
|
Posted: Mon Dec 05, 2005 7:34 pm Post subject: whoooaaa |
|
|
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 |
|
|
pamplemousse Tux's lil' helper
Joined: 09 Feb 2004 Posts: 89
|
Posted: Wed Dec 07, 2005 9:43 pm Post subject: |
|
|
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 |
|
|
supie n00b
Joined: 18 Dec 2005 Posts: 2
|
Posted: Sun Dec 18, 2005 12:53 am Post subject: |
|
|
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 |
|
|
rwf Apprentice
Joined: 24 Jan 2004 Posts: 234 Location: mi.us
|
Posted: Sun Dec 18, 2005 4:36 am Post subject: |
|
|
The plugin invokes mplayer to show/play the video. Install mplayer on your system. |
|
Back to top |
|
|
supie n00b
Joined: 18 Dec 2005 Posts: 2
|
Posted: Fri Dec 23, 2005 3:18 pm Post subject: |
|
|
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 |
|
|
Dirkson n00b
Joined: 29 Dec 2005 Posts: 1
|
Posted: Thu Dec 29, 2005 7:41 pm Post subject: Almost |
|
|
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 |
|
|
pamplemousse Tux's lil' helper
Joined: 09 Feb 2004 Posts: 89
|
Posted: Thu Dec 29, 2005 10:03 pm Post subject: |
|
|
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 |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Fri Dec 30, 2005 1:29 am Post subject: |
|
|
Moved from Desktop Environments to DT&T. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
Anon5710 Apprentice
Joined: 23 Jul 2004 Posts: 232 Location: Belgium
|
Posted: Thu Feb 09, 2006 12:09 pm Post subject: |
|
|
Thanks for that guide
it worked like a charm:) |
|
Back to top |
|
|
zorth l33t
Joined: 17 Feb 2004 Posts: 780 Location: Lovin' Gentoo
|
Posted: Tue Feb 28, 2006 2:08 am Post subject: |
|
|
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 |
|
|
gyaresu n00b
Joined: 18 Sep 2005 Posts: 4
|
Posted: Sat Mar 04, 2006 10:14 am Post subject: Re: Almost |
|
|
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 |
|
|
rwf Apprentice
Joined: 24 Jan 2004 Posts: 234 Location: mi.us
|
Posted: Sat Mar 04, 2006 6:11 pm Post subject: Re: Almost |
|
|
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 |
|
|
Slegge n00b
Joined: 16 Dec 2004 Posts: 14
|
Posted: Thu Mar 23, 2006 8:46 pm Post subject: |
|
|
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 |
|
|
Riddick Tux's lil' helper
Joined: 22 Apr 2005 Posts: 102 Location: Rome or Bristol
|
Posted: Wed May 03, 2006 7:02 pm Post subject: |
|
|
brilliant! Thanks a lot! |
|
Back to top |
|
|
|