Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wine on ppc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bergs
Tux's lil' helper
Tux's lil' helper


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

PostPosted: Thu Apr 15, 2004 8:20 am    Post subject: Wine on ppc Reply with quote

Hi

I'd like to run an old windows game on my mac. Therefore I emerged qemu and got the Wine binary from the qemu homepage.

But if I want do start a windows program, it always complaints about a missing kernel32.dll.

- "/usr/local/wine-i386/lib" and "/usr/local/wine-i386/lib/wine" are in my /etc/ld.so.conf. And yes, I did a ldconfig afterwards.

This is the output I get:

qemu-simon@cepheus wine $ qemu-i386 /usr/local/wine-i386/bin/wineserver
qemu-simon@cepheus wine $ i386 /usr/local/wine-i386/bin/wine c:/Program\ Files/panzergen.part01.exe
Warning: could not find wine config [Drive x] entry for current working directory /usr/local/wine-i386/lib/wine; starting in windows directory.
qemu: Unsupported syscall: 186
qemu: Unsupported syscall: 186
err:module:PE_fixup_imports Module (file) KERNEL32.DLL (which is needed by C:\Program Files\panzergen.part01.exe) not found

Even if I copy all dlls from the wine lib directory to c:\windows\system it won't work.

Any ideas? As a side note, "qemu-i386 /usr/local/qemu/tests/i386/ls" works just fine.

Thank you!

Simon
Back to top
View user's profile Send private message
flavio
Apprentice
Apprentice


Joined: 12 Mar 2004
Posts: 161

PostPosted: Thu Apr 15, 2004 8:50 pm    Post subject: Reply with quote

Bergs,

wine is not an emulator, meaning that it won't emulate an intel CPU for your application to run flawlessly on a powerPC architecture.

In order to achieve something like that you need to run an emulator first (like bochs) and then install and run windows in it (or if you want to make it really complicated you can install linux for i386 under bochs and then wine on top of it).

However CPU emulation is not cheap in terms of performance so your game will run much slower.
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Thu Apr 15, 2004 11:06 pm    Post subject: Reply with quote

that's what the qemu part is for, to get the x86 binaries to work on a ppc.
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
ernstp
Apprentice
Apprentice


Joined: 19 Aug 2002
Posts: 155
Location: Lund - Sweden

PostPosted: Thu Apr 15, 2004 11:12 pm    Post subject: Reply with quote

flavio wrote:
wine is not an emulator

but qemu is!

don't think this is supposed to work though.
qemu has two modes, linux-kernel-translation and complete emulation: sure you got #2?
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Fri Apr 16, 2004 9:59 pm    Post subject: Reply with quote

I would check out some of the qemu mailing list archives ... qemu is an art all itself, but works very well.

At one point I had qemu, running wine, running win32 apps , thru binfmt kernel module..

to make a long story short, it allowed me double clickable windows applications from konquerer ....

The steps to make this happen, altho, were not for the faint of heart, and way too involved to get into on this forum.

Also, typically, games play very poorly, so honestly I wouldn't bother as it may not be worth the effort. (even old games that don't take a lof of CPU .. it's more about the steady input/output required for games than graphics)
Back to top
View user's profile Send private message
Granini
n00b
n00b


Joined: 08 May 2003
Posts: 11
Location: Germany

PostPosted: Sat Apr 17, 2004 9:57 pm    Post subject: Reply with quote

Hello,

Perhaps a silly question:
Is it possible to run a game like counter strike under qemu/wine?
Would it run fast enought?
Back to top
View user's profile Send private message
pat2man
n00b
n00b


Joined: 30 Oct 2002
Posts: 17

PostPosted: Sun Apr 18, 2004 12:04 am    Post subject: Reply with quote

These guys http://darwine.opendarwin.org/ are trying to get wine to use qemu and then run under mac os x. In theory their work would also allow wine to use qemu in Linux
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Apr 18, 2004 1:39 am    Post subject: Re: Wine on ppc Reply with quote

bergs wrote:

err:module:PE_fixup_imports Module (file) KERNEL32.DLL (which is needed by C:\Program Files\panzergen.part01.exe) not found


Yeah, I still haven't managed to properly run wine under qemu (currently all I get is segfaults)... but it is very useful for running x86-only linux binaries and it now can even run ISOs of x86 linux cds.

I think I had your problem, too - basically wine wants its libs in a very specific place... From the above error message it looks like wine did not load kernel32.dll.so. So what you need to do is strace the open call and find out where wine is looking for the file:

Code:
$ strace -eopen qemu-i386 /usr/local/wine-i386/bin/wine c:/Program\ Files/panzergen.part01.exe


Then grep the output for "ENOENT" and you will find the "No such file or directory." error. Then just copy the kernel32.dll.so to the directory where wine is looking for it.

good luck and tell me if you actually get it running!

hth,
disk
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Apr 18, 2004 1:42 am    Post subject: Reply with quote

Granini wrote:
Hello,

Perhaps a silly question:
Is it possible to run a game like counter strike under qemu/wine?
Would it run fast enought?

You gotta be kidding me 8O
Or are you talking about some old text-only DOS game that I don't know about...
Back to top
View user's profile Send private message
Granini
n00b
n00b


Joined: 08 May 2003
Posts: 11
Location: Germany

PostPosted: Sun Apr 18, 2004 1:42 pm    Post subject: Reply with quote

Thanx nice answer.
Linuxers are so friendly :D
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 Apr 20, 2004 6:10 pm    Post subject: Reply with quote

export WINEDLLPATH=/usr/local/wine-i386/lib/wine/ solved my problem.

I am now able to run some windows programs (putty, cybersky, ...). However it's an old wine version, and my game (panzer general) does not work.

If you want to play old dos games, try dosbox. I am successfully running fantasy general with it!

Simon
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Tue Apr 20, 2004 8:03 pm    Post subject: Reply with quote

granini:

with a cutting edge pc from a year or two ago, you would be hard pressed to run counterstrike, on M$ windows. now put in the fact that you are running it under an x86 emulater, qemu and then under wine. which is not that fast. plus the graphics requirements are very veyr high.


message. if you want to run counterstrike, give up

killfire
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
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