LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   32-bit flash player with nspluginwrapper on slackware 64 (http://www.linuxquestions.org/questions/slackware-14/32-bit-flash-player-with-nspluginwrapper-on-slackware-64-a-755781/)

vik 09-16-2009 11:09 PM

32-bit flash player with nspluginwrapper on slackware 64
 
Hi. I'm trying to use the 32-bit flash player on slackware 64 since the 64-bit alpha version seems a little buggy (no sound sometimes). I've successfully installed nspluginwrapper and got the 32-bit adobe reader plugin working, but the flash player isn't working: I just see a gray screen for flash videos. npconfig -l reports that it's there:
Code:

/usr/lib64/mozilla/plugins/npwrapper.libflashplayer.so
  Original plugin: /usr/lib/mozilla/plugins/libflashplayer.so
  Wrapper version string: 1.2.2
/usr/lib64/mozilla/plugins/npwrapper.nppdf.so
  Original plugin: /usr/lib/mozilla/plugins/nppdf.so
  Wrapper version string: 1.2.2

Here's what I've done so far:
1) created nspluginwrapper package from scratch and installed.
2) built 32-bit flash package sourcing /etc/profile.d/32dev.sh first. unset ARCH as well.
3) installed 32-bit flash package.
4) attempted this: /usr/lib/nspluginwrapper/x86_64/linux/npconfig -v -i /usr/lib/mozilla/libflashplayer.so
5) got an error about missing libnss3.so, so I grabbed Alien Bob's 32 and 64 bit mozilla-nss packages. made a 32-bit compatibility package using convertpkg-compat32. installed both 64 and 32 bit packages.
6) ran ldd /usr/lib/mozilla/libflashplayer.so and no missing dependencies
7) ran command from 4) and it worked.
8) go to adobe's web page and no flash.

Any ideas? Thanks in advance.

Petri Kaukasoina 09-18-2009 12:08 AM

Quote:

Originally Posted by vik (Post 3686332)
64-bit alpha version seems a little buggy (no sound sometimes).

Maybe you run some other program that uses the sound card via OSS emulation? If a program opens the sound device using OSS, only that application can use sound. I would not load the oss compatibility modules in the first place (snd-*-oss), but check the configuration of all the sound applications you use and change them to use ALSA instead of OSS.

(But if you want to use 32-bit flash, you can install the 32-bit firefox binary package, too. I have done that on a 64-bit Slackware-13.0 and it works fine that way. No wrappers needed.)

vik 09-18-2009 11:03 AM

I don't think I have anything else using ALSA OSS emulation, since I only have KDE and firefox running. I gave up on the nspluginwrapper solution and just went back to the 64-bit version. If I continue having problems, I'll try running flash with the 32-bit Firefox per your suggestion. Thank you.

vik 10-10-2009 06:45 PM

In case anyone was curious, here's how I got it working (with help from this thread: http://www.linuxquestions.org/questi...7/ ):

1) grab dbus-glib, curl, libidn, esound, and audiofile off the slackware 13 32-bit CD.
2) grab mozilla-nss from Alien Bob's website: http://connie.slackware.com/~alien/s...a-nss/pkg/12.2 (I know this is for Slackware 12.2 but it works fine for Slackware 13).
3) su to root
4) convertpkg -i <pkg name> -d . (for each package listed above)
5) installpkg <pkg_name-compat32...> (for each compatibility package created above)
6) grab the slackbuild and source for the flash player
7) before running the slackbuild, unset ARCH
8) . /etc/profile.d/32dev.sh
9) run the slackbuild file
10) install the package. If everything goes right you should have /usr/lib/mozilla/plugins/libflashplayer.so (not /usr/lib64!).
11) install nspluginwrapper. I couldn't find a package so I created one.
12) now run ldd /usr/lib/mozilla/plugins/libflashplayer.so to check dependencies
13) now run /usr/lib/nspluginwrapper/x86_64/linux/npconfig -v -i /usr/lib/mozilla/plugins/libflashplayer.so. If all goes well it will say plugin installed.
14) you can run /usr/lib/nspluginwrapper/x86_64/linux/npconfig -l to list plugins.

marnold 06-14-2010 10:15 AM

Just a bump because I'm sure a lot more people will be trying this now because of the 0day exploit and no updated 64bit Flash. I just got this working with Slackware64 13.1. I followed the above instructions, except that I used the AlienBob's 13.0 package for mozilla-nss. I didn't bother with a Flash player Slackbuild. I just grabbed the 32bit version of Flash 10.1 from Adobe's site and extracted it into /usr/lib/mozilla/plugins (I had to create mozilla/plugins). I also had to create a symbolic link in /usr/lib64/mozilla/plugins to npwrapper.so. At first it didn't work, but after running ldconfig everything was OK. Thankfully my i5-750 has CPU cycles to spare so the extra overhead is a non-issue.

ponce 06-14-2010 05:11 PM

I have done slightly differently:
- added /usr/lib/seamonkey (location of seamonkey-solibs-compat32, installed by default in multilib setup) at the end of /etc/ld.so.conf
- ldconfig
- installed the packages of the new flash-player-plugin and nspluginwrapper
- setted it up with
Code:

/usr/lib/nspluginwrapper/x86_64/linux/npconfig -v -i /usr/lib/mozilla/plugins/libflashplayer.so
- relaunched firefox (deleted pluginreg.dat in .mozilla/firefox/*my_profile* before too)

but I'm not too happy of the result: on some videos (like this) controls works partially (I guess because the stuff that works is in javascript/html5), on some others (like this), they don't work at all; settings don't work too;

deleting pluginreg.dat helps but don't fix the thing completely...

the error I got in console is
Code:

*** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown variable>) in NPN_GetValue()
there's also a bug in launchpad about it.

controls/settings work ok for you?

damgar 06-14-2010 05:57 PM

Just my two cents, if you are running multilib already, why not just install a 32 bit browser and 32 bit flash plugin? That was my solution to poor 64bit flash and it turned out to work very well.

marnold 06-14-2010 07:44 PM

Quote:

Originally Posted by ponce (Post 4003611)
controls/settings work ok for you?

I hadn't tried that, but no, they don't. Pity.

marnold 06-14-2010 07:45 PM

Quote:

Originally Posted by damgar (Post 4003636)
Just my two cents, if you are running multilib already, why not just install a 32 bit browser and 32 bit flash plugin? That was my solution to poor 64bit flash and it turned out to work very well.

Some people had reported problems with that, so maybe I gave up too quickly. Won't there be some problems if I jump back and forth between 32bit and 64bit versions of Firefox?

damgar 06-14-2010 08:03 PM

I just did away with the 64 bit firefox and google-chrome. I never noticed that 64 bit browsers were faster or anything like that so I don't feel like I'm losing anything. I've been doing it for months. Maybe I'm missing something? I've had zero problems that I'm aware of aside from a problem with multilib dependencies using google-chrome which I resolved.
http://www.linuxquestions.org/questi...-salix-799710/

http://www.linuxquestions.org/questi...no-ssl-801250/

Those links outline my problem, the solution, and then how I got google-chrome going in multilib with full funcionality.

For what it's worth, the only reason I got rid of the 64 bit versions of those browsers was that it seemed neater to me. I didn't see any kind of problems having them installed, I just didn't need them.

dugan 06-14-2010 08:38 PM

Quote:

Originally Posted by marnold (Post 4003698)
Some people had reported problems with that.

Please link to the threads where these problems were reported, so that those of us who running 32-bit browsers on multilib setups know what to expect.

I currently have the same setup as damgar. So far it works well.

You will not have the same performance in nspluginwrapper as you do in a 32-bit browser. Flash is a very performance-intensive real-time application, and you will feel every bit of overhead that nspluginwrapper introduces.

cwizardone 06-14-2010 11:46 PM

Just tried it, that is, installed a 32 bit browser and the 32 bit Flash plug-in. Browser works, but the plug-in does not.
Oh, well....
Hard to believe Adobe won't release a 64 bit plug-in. Afterall, 64 bit is the "future."
:)

dugan 06-15-2010 12:16 AM

Quote:

Browser works, but the plug-in does not.
There are two people reading this thread who have overcome this, so why don't you post more details about the problem, and we'll help you out.

cwizardone 06-15-2010 08:02 AM

Quote:

Originally Posted by dugan (Post 4003841)
There are two people reading this thread who have overcome this, so why don't you post more details about the problem, and we'll help you out.

Not much to report. Installed the 32 bit browser and it runs fine. Using it at the moment. Downloaded the 10.1 Adobe Flash plug-in and put copies in the appropriate locations (/usr/lib/mozilla/plugins and /usr/lib/opera/plugins), but it doesn't work. Don't know what else to say, but thanks for your interest.
:hattip:

marnold 06-15-2010 07:34 PM

Quote:

Originally Posted by cwizardone (Post 4004191)
Not much to report. Installed the 32 bit browser and it runs fine. Using it at the moment. Downloaded the 10.1 Adobe Flash plug-in and put copies in the appropriate locations (/usr/lib/mozilla/plugins and /usr/lib/opera/plugins), but it doesn't work. Don't know what else to say, but thanks for your interest.
:hattip:

I'd bet that you'd need the other packages listed above. Run ldd libflashplayer.so and I bet it will complain about a lot of things being missing.


All times are GMT -5. The time now is 01:58 AM.