You need to be logged in to post in the forums. If you do not have an account, please sign up first.
64-bit Opera + 32-bit plugins SOLUTION!
Hey guys. I decided to give the new 64-bit Opera a go and thought I'd try my luck with nspluginwrapper. No joy there as other people have found but just as I went back to the 32-bit version, I had a brilliant idea. Opera effectively runs its plugins in a wrapper anyway - operapluginwrapper. So what if I take operapluginwrapper from the 32-bit version and replace the 64-bit version? It was certainly worth a shot. I replaced both operapluginwrapper and operaplugincleaner, fired up 64-bit Opera and... IT WORKS!!
Am I the first person to try this? I don't see it mentioned here. Doing this will prevent any 64-bit plugins from working but there aren't exactly many of those around. But I could reckon I could write a script that would somehow allow both to work. A wrapper for the wrapper! I'll let you know if I try that.
#!/bin/sh
if [[ -n `echo ${@} | egrep "\/[^ ]*64"` ]]; then
exec ${OPERA_BINARYDIR}/operapluginwrapper64 ${@}
else
exec ${OPERA_BINARYDIR}/operapluginwrapper32 ${@}
fi
Any plugins with 64 in the path will use the 64-bit version. Anything else will use the 32-bit version. If you use nspluginwrapper for Firefox, make sure you put the 32-bit paths above the 64-bit ones or just disable the 64-bit ones entirely. Also remember that Flash must be picked up from a folder without "netscape" in the path otherwise things like YouTube won't work properly.
Originally posted by Chewi:
If you use nspluginwrapper for Firefox, make sure you put the 32-bit paths above the 64-bit ones or just disable the 64-bit ones entirely.
What paths do you mean? Currently Opera shows only the 32-bit plugins, but I want to use the 64-bit plugins, too.
Originally posted by feld:
I attempted to make this work before you went as far as using the script for 64bit/32bit and just replaced them with the 32bit ones, right? Well flash didn't work. All I got was a grey box. The plugin showed up in opera:plugins, but it just wouldn't work. What flash version are you using?
In my experience it doesnt work with the latest (yesterdays) weekly, but it does with the previous two...
The paths you should use and the order you should put them in may depend on your distro and where you have your plugins installed. I'm on Gentoo and have libflashplayer.so and nppdf.so in /opt/netscape/plugins with symlinks in /usr/lib32/nsbrowser/plugins. I also have nspluginwrapper in /usr/lib64/nsbrowser/plugins. My order is...
/usr/lib32/nsbrowser/plugins
/usr/lib64/nsbrowser/plugins
/opt/opera/lib/opera/plugins
/home/chewi/.netscape6/plugins
/home/chewi/.netscape/plugins
/opt/netscape/plugins
I have /usr/lib64/nsbrowser/plugins disabled since I don't have any 64-bit plugins besides nspluginwrapper (which is useless for Opera) and I have /opt/netscape/plugins disabled because all the plugins there are symlinked in /usr/lib32/nsbrowser/plugins. Enabling these doesn't break anything though since the order ensures that the right plugins are loaded from the right locations.
Originally posted by Chewi:
I'm on Gentoo
Just curious.
Does the 64-bit mplayerplug-in work w/ Opera 1589. I'm strictly x86 and the emerge of mplayerplug-in works w/ Opera 1589 i.e. no need to compile mplayerplug-in it w/ --enable-x.
Distribution doesn't matter so much, I can figure some thing out from interence, but being a newbie, as one might guess I run ubuntu and help with that type of debian filestructure would be most useful.
Originally posted by rwf:
Just curious.
Does the 64-bit mplayerplug-in work w/ Opera 1589. I'm strictly x86 and the emerge of mplayerplug-in works w/ Opera 1589 i.e. no need to compile mplayerplug-in it w/ --enable-x.
Good god! You're right! I haven't seen mplayerplug-in work in Opera for years and now it's working better than I've ever seen! Wow. I'm happy!
Case, I'm puzzled over how you could be using the r60 beta, I can't get it to work in Opera at all and from what I've seen, neither can anyone else.
Originally posted by Chewi:
Case, I'm puzzled over how you could be using the r60 beta, I can't get it to work in Opera at all and from what I've seen, neither can anyone else.
Well, that makes two of us, then
However no other flash version works for me in 1589 build, 32bit or 64bit. Tested in Arch64 and Ubuntu Gutsy, as I've said. Beats me.Originally posted by Chewi:
Good god! You're right! I haven't seen mplayerplug-in work in Opera for years and now it's working better than I've ever seen! Wow. I'm happy!
gecko-mediaplayer and gnome-mplayer work even better on my x86 system. cvs version.
One question: Since you run Gentoo and have 64-bit Opera, does 64-bit java java work with Opera ? The ebuild says something about plugins not workking, but Opera doesn't use the java plugin. Just curious.
I meant to mention earlier that it would probably make sense for the Opera guys to officially add this capability to Opera. Instead of choosing a wrapper based on the plugin path, they could query the binary format of each plugin or perhaps they could simply try both wrappers and see which one works. We can't do the latter ourselves because Opera expects operapluginwrapper to only run once for each call.
The Flash plugin is in /usr/lib/flashplugin-nonfree. The 64-bit plugins are in /usr/lib/firefox/plugins. The order makes no difference.

Thanks for the hack!
Linux User #264449
Powered By Debian Sid on AMD64
Originally posted by Chewi:
Any plugins with 64 in the path will use the 64-bit version. Anything else will use the 32-bit version.
Maybe I should have made that clearer. Presumably you have a /usr/lib64 symlink? On Gentoo, /usr/lib is the symlink. Either way, you need to add the path as /usr/lib64/firefox/plugins in order for it to work.
Originally posted by Chewi:
Originally posted by Chewi:
Any plugins with 64 in the path will use the 64-bit version. Anything else will use the 32-bit version.
Maybe I should have made that clearer. Presumably you have a /usr/lib64 symlink? On Gentoo, /usr/lib is the symlink. Either way, you need to add the path as /usr/lib64/firefox/plugins in order for it to work.
Sorry, I don't get it.
In which directory is a symbolic (?) link necessary and to which directory should it point? The only symbolic links, which I found are this one, which are in /usr/lib/firefox/plugins and point to /usr/lib/mozilla/plugins. The content of /usr/lib/ and /usr/lib64/ is the same.
Sorry for my thick-wittedness ^^
[Paths]
/usr/lib/opera/plugins=1
/usr/lib32/mozilla/plugins=1
/usr/lib/mozilla/plugins=1
and grepping 32 instead of 64 now:
if [[ -n `echo ${@} | egrep "\/[^ ]*32"` ]]; then
exec ${OPERA_BINARYDIR}/operapluginwrapper32 ${@}
else
exec ${OPERA_BINARYDIR}/operapluginwrapper64 ${@}
fi
Version: 9.50 Alpha
Build: 1567
Platform: Linux
System: x86_64, 2.6.20-16-generic
Qt library: 3.3.7
Java: Java Runtime Environment installed
I used to have 32-bit Opera 9.0 installed with --force-architecture, but it was never very stable. I used it only because I managed to get flash working in it, plus Amazon doesn't let me log in with "that other alternative browser" because it thinks cookies are not enabled (they are). Today I needed to order a book for a class, so I went to Amazon with Opera, and Opera crashed on the main Amazon page. In desperation I installed 9.23 32-bit, but it won't launch -- error messages about wrong ELF class. Eventually I decided that the 32-bit Opera was always so unstable that I might as well try the 64-bit alpha version. It installed fine, runs fine, and I got the book ordered.
But now I want to get flash working again. I have read this whole thread, but I don't even understand where to start. I'm just a desktop user and I don't know what a symlink is. I also have no idea what versions are still installed, although I know I am typing this using the version listed above, which I copied and pasted from the Help > About. I'd be really grateful if someone could please translate the instructions in explicit step-by-step language.
John Jason Jordan, if you're not sure, I would suggest waiting until this is officially sorted in Opera, though I must admit that we haven't yet seen any indication that this will happen. If you want to have a go, download the 32-bit version and copy the operapluginwrapper file over the one in your 64-bit installation. All that symlink stuff doesn't come into it unless you're trying to use the script.
http://ubuntuforums.org/showthread.php?p=3457000#post3457000
4. October 2007, 19:05:47 (edited)
opera x86_64-linux build 1600
(flash plugin version 9 r48 works, tested on youtube)
$ ls /usr/lib32/mozilla/plugins
flashplayer.xpt libflashplayer.so
$cat ~/.opera/pluginpath.ini
[Paths] /usr/lib/opera/plugins=1 /usr/lib32/mozilla/plugins=1 /usr/lib/mozilla/plugins=1
modified wrapper script above to work fine with 64bit plugins in ubuntu
$cat /usr/lib/opera/9*/operapluginwrapper
#!/bin/sh
VER=`echo ${@} | egrep "\/[^ ]*32"`
if [ -n "$VER" ]; then
exec ${OPERA_BINARYDIR}/operapluginwrapper32 ${@}
else
exec ${OPERA_BINARYDIR}/operapluginwrapper64 ${@}
you allso need to put all another 32-bit plugins like realplayer and etc in /usr/lib32/mozilla/plugins
<a href="http://www.bimmermania.com/">bimmermania.com</a>
<a href="http://www.operawatch.com/">operawatch.com</a>
The same thing happened in previous version of opera. Works fine in firefox. I guess it has to do with how opera manages the plugins, perhaps not being able to initialize two instances of the same plugin or something?
Can anyone confirm this behavious? You don't have to be a member to check this out. Just go to kongregate.com and click on any game.
Thanks.
Originally posted by Chewi:
Sweet! Thanks! Just got this working on my system.That script was easier to write than I thought. Turns out the 64-bit operaplugincleaner works with either. Rename the 64-bit operapluginwrapper to operapluginwrapper64. Grab the 32-bit operapluginwrapper and call that operapluginwrapper32. Then create a new file called operapluginwrapper and insert the code below. Don't forget to chmod 755 it.

Peace...
Working for me in 1633 and in 1636 in Ubuntu 7.04 x64.
However, I do encounter the problem that Odegard mentioned (flash disappears and turns light grey) from time to time. It usually only happens when I have a few windows open that are using flash content. Ex. 2-3 youtube videos open or something. They all turn grey.
Could some asnwer my question from above..
Originally posted by kyleabaker:
Just curious, are you all able to fullscreen youtube videos? I've done this nifty trick as well and flash is working pretty good (Ubuntu Feisty Fawn x64), but when I try to fullscreen videos it just stops the video and I have to click play again and start from the beginning. I wasn't sure if I did something wrong or if there was a fix for this. Thanks for the trick by the way!
<a href="http://www.bimmermania.com/">bimmermania.com</a>
<a href="http://www.operawatch.com/">operawatch.com</a>
Originally posted by Thruth:
it works but I've extra concern.
Would the 64bit cleaner clean the operapluginwrapper32 in mem?
I think it just kills off some processes using PIDs or something. It shouldn't be a problem.
The script in general is still working for me in 1636 but, unfortunately, mplayerplug-in has stopped working. I get sound but no video. It's still working in Firefox so I guess it must be Opera.
I've had the "Flash turning light grey" (or purple in my case) problem ever since Flash 9 came out. It's always been unstable for me both in 32-bit and 64-bit.
Originally posted by Chewi:
The script in general is still working for me in 1636 but, unfortunately, mplayerplug-in has stopped working. I get sound but no video. It's still working in Firefox so I guess it must be Opera.
For me -- 32-bit system -- it got broken at 1633. I copied the operapluginwrapper from 1629 into 1633 (and 1636) .directorie(s) to get around the problem.
I have copied operapluginwrapper and operaplugincleaner from opera-9.50-20071024.6-shared-qt.i386-1643/usr/lib/opera/9.50-20071024.6 to /usr/lib64/opera/9.50-20070903.2/ to override the once lying there before.
Then installed the flashplugin-nonfree and fired opera up and I still only get a gray box.
Im using debian unstable, but cant se what that should matter.
Any suggestions?
Just grab the .deb from the ftp server and check that everything is there in opera:plugins.
I was almost in tears when I saw that even the mplayer plugin worked!
Linux User #264449
Powered By Debian Sid on AMD64
For me, beta1 version still didn't work with nspluginwrapper, i'm on gentoo too, so i've modified your script.
Using readelf, it is no more necessary to rename your plugins:
#!/bin/sh
RIGHT=/$(echo ${@}|cut -d "/" -f 2-)
BIT=$(readelf -h $RIGHT |grep "Class:"|cut -d "F" -f 2)
if [[ $BIT = 64 ]]; then
exec ${OPERA_BINARYDIR}/operapluginwrapper64 ${@}
else
exec ${OPERA_BINARYDIR}/operapluginwrapper32 ${@}
fi
Cheers ;-)
If somebody could tell me how to make use of any of these options to get media going in opera I'd much appreciate it. TIA.
Showing topic replies 1 - 50 of 55.
Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD