Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Macromedia Flash Player 6 on Linux PPC with Qemu
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
g-rem
n00b
n00b


Joined: 15 Nov 2003
Posts: 30
Location: France

PostPosted: Tue Dec 23, 2003 1:07 pm    Post subject: Macromedia Flash Player 6 on Linux PPC with Qemu Reply with quote

Hello,

I found out how to run Macromedia Flash stand alone player 6 on a Linux PPC with qemu.

Follow step by step:
- Compile and install qemu 0.5 or CVS (Savannah is working again). Note that you have to remove "sparc-user" in "config-host.mak" after the "./cofigure".
- Mount a i386 system with gflashplayer installed. (I'll make a package with flash player and its dependencies as soon as I can)
UPDATE : The package is here : (http://g-remy.isa-geek.org/flash_x86.tar.bz2)

- Run gflashplayer:
Code:

# qemu-i386 -L /mnt/i386/ /mnt/i386/usr/bin/gflashplayer

qemu: Unsupported syscall: 149

Gtk-WARNING **: /usr/lib/gtk/themes/engines/libindustrial.so: ELF file data encoding not little-endian

Gtk-WARNING **: /usr/lib/gtk/themes/engines/libindustrial.so: ELF file data encoding not little-endian

Gtk-WARNING **: /usr/lib/gtk/themes/engines/libindustrial.so: ELF file data encoding not little-endian

qemu: Unsupported syscall: 117

Gdk-WARNING **: shmget failed: error 38 (Function not implemented)

qemu: Unsupported syscall: 117

qemu: Unsupported syscall: 117

qemu: Unsupported syscall: 117

#

- Note that's working fine even if there are few warnings.

Here is a screenshot:
[img:279491718e]http://g-remy.isa-geek.org/img/flash_ppc.png[/img:279491718e]

With this swf qemu-i386 takes around 30% of my cpu (G3 800Mhz)

In order to play flash in mozilla, we could use Plugger (http://fredrik.hubbe.net/plugger.html).
I'm working on it


Last edited by g-rem on Tue Dec 23, 2003 9:55 pm; edited 3 times in total
Back to top
View user's profile Send private message
g-rem
n00b
n00b


Joined: 15 Nov 2003
Posts: 30
Location: France

PostPosted: Tue Dec 23, 2003 1:35 pm    Post subject: Reply with quote

This works with plugger but the flash is opened in a separate window (even if I use -window-id $window to launch gflashplayer).
(http://g-remy.isa-geek.org/img/flash_ppc-mozilla.png)
Back to top
View user's profile Send private message
shr1nk
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2003
Posts: 90

PostPosted: Thu Dec 25, 2003 6:10 am    Post subject: Reply with quote

has anyone else tried this?
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Thu Dec 25, 2003 9:12 am    Post subject: Reply with quote

Sweet! This actually really works 8) Thanks a lot for providing the binary package...
The speed for most animations is quite decent on my Pismo Powerbook (except for big flash sites like 2advanced.com). Sound is severly distorted, so you should turn off your loudspeakers before entering some flash site.

g-rem wrote:
This works with plugger but the flash is opened in a separate window (even if I use -window-id $window to launch gflashplayer).
(http://g-remy.isa-geek.org/img/flash_ppc-mozilla.png)

I managed to have the flash animations displayed inside the browser window by letting plugger swallow the gflashplayer window. This is my config in /etc/pluggerrc-5.0:
Code:
##
## Flash for PPC
##
application/x-shockwave-flash:swf:Flash animation
 swallow(Macromedia Flash Player 6): /usr/local/bin/qemu-i386 -L /usr/local/flash_x86/ /usr/local/flash_x86/usr/bin/gflashplayer "$file"

Unfortunately, this still leaves the gflashplayer menu bar on, and I don't see a way around this... This also leads to problems when the flash is embedded in a web site with fixed dimensions and is cut off at the edges since the menu bar takes away a lot of space.
Here is a screenshot of Firebird 0.7 running a flash animation inside the browser window:
http://www.freewebs.com/diskbreaker/flashppc.png

So what's next? Maybe we can get the x86 codecs to run on mplayer? I think that would be pretty cool...

thx,
disk
Back to top
View user's profile Send private message
g-rem
n00b
n00b


Joined: 15 Nov 2003
Posts: 30
Location: France

PostPosted: Thu Dec 25, 2003 9:58 am    Post subject: Reply with quote

Thanks for the pluggerrc !!
Did the html links inside flash works for you ? Not for me...

Else, I'm working on another plugger which can launch directly Linux x86 plugin (.so) and maybe Windows plugin. The state is in progress but I don't know if this can really works.
_________________
iBook 12" G3 800Mhz - Airport - MomoBay RX-1 - DVD+-R LiteOn 811S - iPod 20Go - Debian Sid
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sat Dec 27, 2003 4:52 am    Post subject: Reply with quote

No, html links don't work for me either.
Please let me know if you manage to run the x86 plugin alone with qemu :)

Disk
Back to top
View user's profile Send private message
bergs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 141
Location: Bern, Switzerland

PostPosted: Tue Dec 30, 2003 10:49 am    Post subject: Reply with quote

This is great, thank you!

However, I have still a problem with this site:

http://www.alfaromeo.ch/DE/index.htm

(aahh, Alfa Romeo!)

Plugger says:

Plugger: No approperiate application for type application/octet-stream found!

Do I need to specify an octet-stream application in plugger? I guess this is also the flash player?

If someone could post his pluggerrc with this running, I'd be very happy!

Thanks

Simon
Back to top
View user's profile Send private message
g-rem
n00b
n00b


Joined: 15 Nov 2003
Posts: 30
Location: France

PostPosted: Tue Dec 30, 2003 1:14 pm    Post subject: Reply with quote

Here is my /etc/mozpluggerrc
Code:
# Configure file for MozPlugger
# Commands which are not installed on your system will not be used.
                                                                                                                             
video/mpeg: mpeg, mpg, mpe: MPEG animation
video/x-mpeg: mpeg, mpg, mpe: MPEG animation
video/x-mpeg2: mpv2, mp2ve: MPEG2 animation
        stream noisy ignore_errors: mplayer -really-quiet -nojoystick -nofs -wid $window -vo x11 -ao oss,alsa9,arts,esd,null -zoom -osdlevel 0 -vc mpeg12 "$file" </dev/null
        exits nokill noisy: xine -pq "$file"
        loop: mtvp -l -W$window "$file"
        : mtvp -W$window "$file"
        loop: xanim +Av100 -Zr +W$window +q +f "$file"
        : xanim +Av100 -Zr +W$window +q +Ze +f "$file"
                                                                                                                             
video/msvideo: avi: AVI animation
video/x-msvideo: avi: AVI animation
video/fli: fli, flc: FLI animation
video/x-fli: fli, flc: FLI animation
        stream noisy ignore_errors: mplayer -really-quiet -nojoystick -nofs -wid $window -vo x11 -ao oss,alsa9,arts,esd,null -zoom -osdlevel 0 "$file" </dev/null
        exits noisy nokill: xine -pq "$file"
                                                                                                                             
application/x-mplayer2: wmv,asf,mov: Windows Media
video/x-ms-asf: asf,asx,wma,wax,wmv,wvx: Windows Media
video/x-ms-wmv: wmv: Windows Media
        stream noisy ignore_errors: mplayer -really-quiet -nojoystick -nofs -wid $window -vo x11 -ao oss,alsa9,arts,esd,null -zoom -osdlevel 0 "$file" </dev/null
                                                                                                                             
video/quicktime: mov,qt: Quicktime animation
video/x-quicktime: mov,qt: Quicktime animation
        stream noisy ignore_errors: mplayer -really-quiet -nojoystick -nofs -wid $window -vo x11 -ao oss,alsa9,arts,esd,null -zoom -osdlevel 0 "$file" </dev/null
        exits noisy nokill: xine -pq "$file"
                                                                                                                             
video/dl: dl: DL animation
video/x-dl: dl: DL animation
video/sgi-movie: movie,movi,mv: SGI animation
video/x-sgi-movie: movie,movi,mv: SGI animation
video/anim: iff,anim5,anim3,anim7: IFF animation
video/x-anim: iff,anim5,anim3,anim7: IFF animation
        loop: xanim +Av100 -Zr +W$window +q +f "$file"
        : xanim +Av100 -Zr +W$window +q +Ze +f "$file"
 
audio/mid: midi,mid: MIDI audio file
audio/x-mid: midi,mid: MIDI audio file
audio/midi: midi,mid: MIDI audio file
audio/x-midi: midi,mid: MIDI audio file
        noisy: timidity "$file"
        : playmidi "$file"
 
audio/mod: mod: Soundracker audio Module
audio/x-mod: mod: Soundracker audio Module
        loop noisy: mikmod -q --interpolate "$file"
        noisy: mikmod -q --interpolate "$file"
        loop noisy: xmp -l --nocmd "$file"
        noisy: xmp --nocmd "$file"
 
audio/mp3: mp3: MPEG audio
audio/x-mp3: mp3: MPEG audio
audio/mpeg2: mp2: MPEG audio
audio/x-mpeg2: mp2: MPEG audio
audio/mpeg3: mp3: MPEG audio
audio/x-mpeg3: mp3: MPEG audio
audio/mpeg: mpa,abs,mpega: MPEG audio
audio/x-mpeg: mpa,abs,mpega: MPEG audio
        stream noisy ignore_errors: mplayer -really-quiet -ao oss,alsa9,arts,esd,null "$file" </dev/null
        repeat noisy swallow(alsaplayer): alsaplayer -q "$file"
        : mpg123 -q -b 128 "$file"
        : splay -t 200 "$file"
        : amp -b 200 -q "$file"
        : maplay "$file"
        : mpeg3play "$file"
        nokill exits: xmms "$file"
 
audio/mpeg-url: m3u: MPEG music resource locator
audio/x-mpeg-url: m3u: MPEG music resource locator
audio/mpegurl: m3u: MPEG music resource locator
audio/x-mpegurl: m3u: MPEG music resource locator
        nokill exits: xmms "$file"
 
audio/x-ogg: ogg: OGG audio
audio/x-scpls: pls: OGG audio
application/x-ogg: ogg: OGG audio
        stream noisy: ogg123 -q -b 128 "$file"
 
audio/x-sidtune: sid,psid: Commodore 64 Audio
audio/sidtune: sid,psid: Commodore 64 Audio
audio/psid: psid,sid: Commodore 64 Audio
audio/x-psid: psid,sid: Commodore 64 Audio
        stream noisy: sidplay -16 -f44100 -a "$file"
 
audio/basic: au,snd: Basic audio file
audio/x-basic: au,snd: Basic audio file
        : play "$file"
        : sox "$file" -t .au - > /dev/audio
 
audio/wav:wav: Microsoft wave file
audio/x-wav:wav: Microsoft wave file
        repeat noisy swallow(alsaplayer): alsaplayer -q "$file"
        : play "$file"
        : wavplay -q "$file"
        noisy: bplay "$file"
        : splay "$file"
        nokill exits: xmms "$file"
 
image/sun-raster: rs: SUN raster image
image/x-sun-raster: rs: SUN raster image
image/x-rgb: rgb: RGB Image
image/x-portable-pixmap: ppm: PPM Image
image/x-portable-graymap: pgm: PGM Image
image/x-portable-bitmap: pbm: PBM Image
image/x-portable-anymap: pnm: PBM Image
image/tiff: tiff,tif: TIFF image
image/x-tiff: tiff,tif: TIFF image
        repeat noisy swallow(gqview) fill: gqview -t "$file"
        repeat noisy swallow(xli) fill: xli -quiet "$file"
        repeat noisy swallow(xloadimage) fill: xloadimage -quiet "$file"
        exits: xli -quiet -windowid $window "$file"
        exits: xloadimage -quiet -windowid $window "$file"
        exits: display -window $window -backdrop "$file"
 
audio/x-pn-realaudio-plugin: rpm: RealPlayer Plugin Metafile
audio/x-pn-realaudio: ra,rm,ram: Realaudio-plugin resource locator
audio/x-realaudio: ra,rm,ram: RealAudio file
application/vnd.rn-realmedia: rm: RealMedia file
application/smil: smi: RealPlayer
audio/vnd.rn-realaudio: ra,ram: RealAudio file
audio/vnd.rn-realvideo: rv: RealVideo file
        nokill exits: realplay "$file"
 
application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
        repeat swallow(acrobatreader) fill: acroread -geometry +9000+9000 +useFrontEndProgram -tempFileTitle acrobatreader "$file"
        repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
        repeat noisy event_swallow(gv:) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"
 
application/x-dvi: dvi: DVI file
        repeat swallow(kviewshell) fill: kdvi "$file"
        repeat swallow(xdvi) fill: xdvi -safer -hush -geometry +9000+9000 "$file"
 
application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
        repeat noisy event_swallow(gv:) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file"
        repeat swallow(Pageview) fill: pageview "$file"
 
application/rtf: rtf: Rich Text Format
        repeat noisy event_swallow(Ted:) fill: Ted "$file"
        repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file"
 
application/x-msword: doc, dot: Microsoft Word Document
application/msword: doc, dot: Microsoft Word Document
        nokill exits: oowriter "$file"
        nokill exits: kword "$file"
        repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file"
 
application/vnd.ms-excel: xls, xlb: Microsoft Excel Document
        repeat swallow(PluggerGnumeric) fill: gnumeric --class PluggerGnumeric "$file"
 
# OpenOffice MimeTypes (http://framework.openoffice.org/documentation/mimetypes/mimetypes.html)
application/vnd.sun.xml.writer: sxw: OpenOffice Writer 6.0 documents
application/vnd.sun.xml.writer.template: stw: OpenOffice Writer 6.0 templates
application/vnd.sun.xml.writer.global: sxg: OpenOffice Writer 6.0 global documents
application/vnd.stardivision.writer: sdw: StarWriter 5.x documents
application/vnd.stardivision.writer-global: sgl: StarWriter 5.x global documents
application/x-starwriter: sdw: StarWriter 4.x documents
        nokill exits: oowriter "$file"
 
application/vnd.sun.xml.calc: sxc: OpenOffice Calc 6.0 spreadsheets
application/vnd.sun.xml.calc.template: stc: OpenOffice Calc 6.0 templates
application/vnd.stardivision.calc: sdc: StarCalc 5.x spreadsheets
application/x-starcalc: sdc: StarCalc 4.x spreadsheets
        nokill exits: oocalc "$file"
 
application/vnd.sun.xml.draw: sxd: OpenOffice Draw 6.0 documents
application/vnd.sun.xml.draw.template: std: OpenOffice Draw 6.0 templates
application/vnd.stardivision.draw: sda: StarDraw 5.x documents
application/x-stardraw: sda: StarDraw 4.x documents
        nokill exits: oodraw "$file"
 
application/vnd.sun.xml.impress: sxi: OpenOffice Impress 6.0 presentations
application/vnd.sun.xml.impress.template: sti: OpenOffice Impress 6.0 templates
application/vnd.stardivision.impress: sdd: StarImpress 5.x presentations
application/vnd.stardivision.impress-packed: sdp: StarImpress Packed 5.x files
application/x-starimpress: sdd: StarImpress 4.x presentations
application/vnd.ms-powerpoint: ppt: PowerPoint
        nokill exits: ooimpress "$file"
 
application/vnd.sun.xml.math: sxm: OpenOffice Math 6.0 documents
application/vnd.stardivision.math: smf: StarMath 5.x documents
application/x-starmath: smf: StarMath 4.x documents
        nokill exits: oomath "$file"
 
application/x-shockwave-flash:swf:Flash animation
        swallow(Macromedia Flash Player 6): qemu-i386 -L /opt/flash_x86/ /opt/flash_x86/usr/bin/gflashplayer "$file"

_________________
iBook 12" G3 800Mhz - Airport - MomoBay RX-1 - DVD+-R LiteOn 811S - iPod 20Go - Debian Sid
Back to top
View user's profile Send private message
bergs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 141
Location: Bern, Switzerland

PostPosted: Wed Dec 31, 2003 11:27 am    Post subject: Reply with quote

Uhm, I can't find octet-stream in your config file. Have you visited the alfa romeo site and was it working?

Thanks

Simon
Back to top
View user's profile Send private message
g-rem
n00b
n00b


Joined: 15 Nov 2003
Posts: 30
Location: France

PostPosted: Wed Dec 31, 2003 11:42 am    Post subject: Reply with quote

Yes it works
_________________
iBook 12" G3 800Mhz - Airport - MomoBay RX-1 - DVD+-R LiteOn 811S - iPod 20Go - Debian Sid
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Mon Feb 23, 2004 10:54 am    Post subject: Re: Macromedia Flash Player 6 on Linux PPC with Qemu Reply with quote

g-rem wrote:
UPDATE : The package is here : (http://g-remy.isa-geek.org/flash_x86.tar.bz2)

The links is borken, I'm unable to download it! :(
Please fix it!
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
g-rem
n00b
n00b


Joined: 15 Nov 2003
Posts: 30
Location: France

PostPosted: Mon Feb 23, 2004 9:31 pm    Post subject: Reply with quote

Sorry, this is fixed !
Please let me know if you use it with success.
_________________
iBook 12" G3 800Mhz - Airport - MomoBay RX-1 - DVD+-R LiteOn 811S - iPod 20Go - Debian Sid
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Mon Feb 23, 2004 11:32 pm    Post subject: Reply with quote

g-rem wrote:
Sorry, this is fixed !
Please let me know if you use it with success.

I've successfully downloaded the package, but I got this error:
Code:
qemu-i386 flash_x86/usr/bin/gflashplayer
/lib/ld-linux.so.2: No such file or directory
Segmentation fault

I don't understand the meaning of qemu's -L option:
Code:
qemu-i386 --help
qemu-i386 version 0.5.2, Copyright (c) 2003 Fabrice Bellard
usage: qemu-i386 [-h] [-d] [-L path] [-s size] program [arguments...]
Linux CPU emulator (compiled for i386 emulation)

-h           print this help
-L path      set the elf interpreter prefix (default=/usr/gnemul/qemu-i386)
-s size      set the stack size in bytes (default=524288)

debug options:
-d           activate log (logfile=/tmp/qemu.log)
-p pagesize  set the host page size to 'pagesize'

Isn't it optional :?:
As you can see I'm using qemu 0.5.2, taken from portage tree
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
KruzeS
n00b
n00b


Joined: 10 Jul 2003
Posts: 60
Location: Portugal

PostPosted: Tue Feb 24, 2004 6:36 am    Post subject: Reply with quote

Most programs are dynamically linked, as I'm sure you know. Qemu can not emulate all the libraries every single program uses, nor can it link a little endian i386 binary to big endian ppc libraries. You must have i386 compiled libraries present somewhere where qemu can find them, -L option gives it the location.

I supose the package g-rem created includes all the libraries you need to run gflashplayer. From his further instructions it seems you should have unpacked the package to /mnt/i386.

You just unpacked it to another place... so change -L option accordingly!

It will then run the advertised way.
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Tue Feb 24, 2004 3:55 pm    Post subject: Reply with quote

I was very stupid... :oops:
I've unpacked the tarball into my home and I lunched:
Code:
micron@melindo micron $ qemu-i386 -L flash_x86/ flash_x86/usr/bin/gflashplayer

While I had to specify the full path :!:
Using:
Code:
qemu-i386 -L /home/micron/flash_x86/ /home/micron/flash_x86/usr/bin/gflashplayer

all worked fine :D
Thanks to all!

UPDATE: also plugger works! now I can see all flash animation inside mozilla and also konqueror 8)
Does anybody found a way to remove gflashplayer's menu-bar inside the browser :?:
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
eisenack
n00b
n00b


Joined: 07 Apr 2004
Posts: 23

PostPosted: Tue May 25, 2004 5:57 pm    Post subject: Reply with quote

does anyone know how to fix the colors and sound ?

anyway: thanks for all till now

(i still can't believe that the flash-installer does not work for ppc...)[/u]
Back to top
View user's profile Send private message
born
n00b
n00b


Joined: 25 May 2004
Posts: 53
Location: Germany

PostPosted: Sun Jun 20, 2004 1:54 pm    Post subject: Reply with quote

It seems to work, but not really fast. I've an iBook G3 800.

The swallow parameter in mozplugger seems only to work sometimes, so on some web sites I get about 3-4 new windows.

Is there a better solution? The posts here are quite old...


Greets!
Back to top
View user's profile Send private message
gfs
n00b
n00b


Joined: 31 Jul 2004
Posts: 39

PostPosted: Mon Sep 13, 2004 6:31 am    Post subject: Reply with quote

Anyone have a copy of the 'flash_x86.tar.bz2' file from this thread? The link is broken....
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 631
Location: New Zealand

PostPosted: Mon Sep 13, 2004 11:15 pm    Post subject: Reply with quote

gfs wrote:
Anyone have a copy of the 'flash_x86.tar.bz2' file from this thread? The link is broken....


Yes I do, but I don't have a web page or anything to post it on.
If no one else post it, send me a private message with your
email address and i will send it to you straight away.

Note the file in question is 3.7MB in size.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 375
Location: Sherbrooke, QC, Canada

PostPosted: Mon Sep 13, 2004 11:30 pm    Post subject: Reply with quote

fb wrote:
gfs wrote:
Anyone have a copy of the 'flash_x86.tar.bz2' file from this thread? The link is broken....

Yes I do, but I don't have a web page or anything to post it on.
If no one else post it, send me a private message with your
email address and i will send it to you straight away.

I can host it on my machine if that's OK with you. Gimme a shout to bruda (at) cs (dot) ubishops (dot) ca
in case of an affirmative answer (and maybe even attach the file to the message, I do not mind). I will post the URL in this thread once the file is up.

Stefan
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Mon Sep 13, 2004 11:34 pm    Post subject: Reply with quote

gfs wrote:
Anyone have a copy of the 'flash_x86.tar.bz2' file from this thread? The link is broken....

Try this
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 375
Location: Sherbrooke, QC, Canada

PostPosted: Tue Sep 14, 2004 1:35 am    Post subject: Reply with quote

Here is fb's version too since I am at it.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
gfs
n00b
n00b


Joined: 31 Jul 2004
Posts: 39

PostPosted: Tue Sep 14, 2004 9:17 pm    Post subject: Reply with quote

Much Thanks guys!
Back to top
View user's profile Send private message
mimac
n00b
n00b


Joined: 27 Sep 2004
Posts: 4

PostPosted: Tue Sep 28, 2004 12:29 pm    Post subject: Reply with quote

I have manage to use gflasplayer on both mozilla(1.7) and opera(7.54) :))

this might be long to explain...

1) get qemu-i386 http://fabrice.bellard.free.fr/qemu/
do "make install"

2) get plugger http://fredrik.hubbe.net/plugger.html
do "make localinstall_mozilla" to install the plugger
make a link of plugger.so to opera/plugins folder
add this line to /root/.plugger/pluggerrc:

application/x-shockwave-flash:swf:Flash animation
ignore_errors url: perl /bin/gfla.pl "$url" $hexwindow


3) get gflashplayer http://macromedia.rediris.es/site_ri.html
extract the file install_flash_player_6_linux_sa.tar.gz
move the /usr folder to /usr/gnemul/qemu-i386
move gflashplayer to /usr/gnemul/qemu-i386/usr/bin

4) get IBMJava2-JRE-142.ppc.tgz form http://simonraven.nuit.ca/src/java/
uninstall any previous java that you might have (previous java give a gflashplayer bug in opera)
move the /jre folder form IBMJava2 to /usr/lib
make a link from /usr/lib/jre/bin/java to /bin

5) get the pc rpm (i used ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/mandrake/9.2/i586/Mandrake/RPMS to get the pkgs). This metod is good to install any pc lib but you might just copy the 'flash_x86.tar.bz2' file from this thread

do "mkdir /usr/gnemul/qemu-i386/var" "mkdir /usr/gnemul/qemu-i386/var/lib" "mkdir /usr/gnemul/qemu-i386/var/lib/rpm" (this allow using rpm to install packages)

install with "rpm --ignorearch -root= /usr/gnemul/qemu-i386 PKGNAME" any missing pkg will be asked by rpm. (start with glibc)

5.1) after installing you must update the ld.so.cache to make the pc lib usefull
add this line to /usr/gnemul/qemu-i386/etc/ld.so.conf:

/usr/X11R6/lib

do "qemu-i386 /usr/gnemul/qemu-i386/sbin/ldconfig -v" them copy the /etc/ld.so.cache to /usr/gnemul/qemu-i386/etc/ld.so.cache
do "ldconfig -v" to restore your etc/ld.so.cache file

6) type "qemu-i386 /usr/gnemul/qemu-i386/usr/bin/gflashplayer"
you should get a missing lib (libstdc++) from gflah. install with "rpm --ignorearch -root= /usr/gnemul/qemu-i386 PKGNAME"

7) gflashplayer should run now! - only at 8 color depth :(
i think this might be a qenu or XFree86 bug...

8) the plugger call a perl script. copy this code to kwrite and save it to /bin/gfla.pl

#!/usr/bin/perl

use POSIX;
use Gnome2::Vte;
use IO::File;
use Gtk2 '-init';
use Gtk;
use Glib;

my $tt=Gnome2::Vte::Terminal->new;
my $u;
my $i;
my $p;
my $v;
my $fh;
my $n;
my $c=0;
my $a1='';
my $a2='';
my $pp;

foreach (@ARGV){if ($a1 eq ''){$a1=$_}else{if ($a2 eq ''){$a2=$_}}};
if (not $a1 eq '')
{
while ($c<length($a1))
{
$c=$c+1;
if (substr($a1, $c,1) eq "?")
{
$a1=substr($a1, 1,$c-1);
$c=length($a1);
};
};
if (substr(join('',$a1), length($a1)-3) eq "SWF" || substr(join('',$a1), length($a1)-3) eq "swf"){}else{exit}

};

if ($a1 eq ''){$pp=$tt -> fork_command("qemu-i386", ["qemu-i386", "/usr/gnemul/qemu-i386/usr/bin/gflashplayer"], [""], "/", 0, 0, 0);}
else{$pp=$tt -> fork_command("qemu-i386", ["qemu-i386", "/usr/gnemul/qemu-i386/usr/bin/gflashplayer",$a1], [""], "/", 0, 0, 0);};
#if ($a1 eq ''){$pp=system("qemu-i386 /usr/gnemul/qemu-i386/usr/bin/gflashplayer");}
#else{$pp=system(join '',"qemu-i386 /usr/gnemul/qemu-i386/usr/bin/gflashplayer ",$a1);};
if ($pp<=0){exit(0)};
if (not $a1 eq '')
{
while ($v==0)
{
$n=int(rand(0)*1000000);
#system("rm -f gflashplayertemp*");
system(join ("xlsclients -l >> gflashplayertemp1",'',$n));
if ($a1 eq ''){system(join '',"grep gflashplayer -B 2 gflashplayertemp1",'',$n," >> gflashplayertemp2",'',$n)}else{
system(join '',"grep ",'"',"gflashplayer '",$a1,"'",'"'," -B 2 gflashplayertemp1",'',$n," >> gflashplayertemp2",'',$n);
system(join '',"grep ",'"',"gflashplayer ",$a1,'"'," -B 2 gflashplayertemp1",'',$n," >> gflashplayertemp2",'',$n);
};

$fh =IO::File->new;
if ($fh->open(join("< gflashplayertemp2",'',$n)))
{
$u=<$fh>;
$fh->close;
if (defined($u))
{
$v= substr($u, 7);
$v= substr($v, 0,length($v)-2);
$v=hex($v);
if ($v eq ''){$v=0};
}
};
system(join '',"rm -f gflashplayertemp1",$n);
system(join '',"rm -f gflashplayertemp2",$n);
};

#system(join '',"rm -f gflashplayertemp1",$n);
$v=$v+2;#???????????????????????????

my $zz=0;
do
{
$zz=Gtk2::Gdk::Window->foreign_new($v);
if (not defined($zz)){$zz=Gtk2::Gdk::Window->foreign_new($v+1)};
}until defined($zz) ;
$v=$zz->XWINDOW;
$zz->hide;
#$zz4->set_type_hint(GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
#my $zz2=0;
#do {$zz2=Gtk2::Gdk::Window->foreign_new($v+15)} until defined($zz2); #menu
#$zz2->hide;
#my $zz0=0;
#do {$zz0=Gtk2::Gdk::Window->foreign_new($v+23)} until defined($zz0); #url text
#$zz0->hide;
#my $zz3=0;
#do {$zz3=Gtk2::Gdk::Window->foreign_new($v+20)} until defined($zz3); #url bar
#$zz3->hide;
#my $zz4=0;
# do
#{
#$zz4=Gtk2::Gdk::Window->foreign_new($v+24);
#}until defined($zz4) ;
#$zz4->hide;
#$zz->set_title($a2);
#$zz4->reparent($zz4->get_parent,0,0);
#$zz->reparent($zz4,-10000,-10000);
#$zz4->set_title(join '',"gflashplayer",$a2);
#$zz4->set_type_hint(GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
#$zz4->set_type_hint(GDK_WINDOW_TYPE_HINT_DIALOG);
my $wx=400;
my $wy=200;
my $x=0;
my $y=0;
#$zz->set_title("gflashplayer");
#$zz->set_icon_name(join ('',"gflashplayer ",@ARGV));

if ($a2 eq '')
{
my $w=new Gtk2::Widget (Gtk2::Window ,"toplevel");
$w->set_events(GDK_ALL_EVENTS_MASK);
$w->show;
$w->set_title($a1);
$w->signal_connect ( "destroy", sub { Gtk->exit( 0 ); } );
#$w->add($v);
@l = $zz->get_geometry;
$c=0;
foreach (@l)
{
$c=$c+1;
if ($c==1) {$x=$_};
if ($c==2) {$y=$_};
if ($c==3) {$wx=$_};
if ($c==4) {$wy=$_};
};
$w->resize($wx,$wy-50);
$zz->reparent($w->window,0,-50);
$w->signal_connect ( "event", sub
{
#my ($widget, $event) = @_;
#print ($widget," -- ",$event,,"\n");
$zz->resize($wx,$wy);
$zz->move(0,-50);
});
$w->show_all;
Gtk2->main();
}else
{
$a2=hex($a2);
my $zz5=0;
do{$zz5=Gtk2::Gdk::Window->foreign_new($a2)}until defined($zz5) ;
@l = $zz5->get_geometry;
$c=0;
foreach (@l)
{
$c=$c+1;
if ($c==1) {$x=$_};
if ($c==2) {$y=$_};
if ($c==3) {$wx=$_};
if ($c==4) {$wy=$_};
};
$zz->reparent($zz5,0,-50);
do
{
$zz->resize($wx,$wy+50);
$zz->move(0,-50);
}until not defined($zz);
}

}

kill ($pp);
exit(0);

9) type "perl /bin/gfla.pl" to test it
you might need to install some perl PPC packages to make it run (perl-Gtk2 and perl-Gnome2-Vte at least)

10) you know should be able to use mozilla, opera and see flash movies :)
Back to top
View user's profile Send private message
mimac
n00b
n00b


Joined: 27 Sep 2004
Posts: 4

PostPosted: Tue Sep 28, 2004 12:37 pm    Post subject: Reply with quote

A little bug in the rpm command - it should be:

"rpm -i --ignorearch --root /usr/gnemul/qemu-i386 PKGNAME"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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