maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Running i386 win32 bins (https://talk.maemo.org/showthread.php?t=75048)

marmistrz 2011-07-18 17:38

Running i386 win32 bins
 
Hi
Is it possible to run i386 win32 bins via wine?
thanks in advance

barzam 2011-07-18 17:56

Re: Running i386 win32 bins
 
Quote:

Originally Posted by marmistrz (Post 1053523)
Hi
Is it possible to run i386 win32 bins via wine?
thanks in advance

No, it's not possible because of the different CPU architectures.

skykooler 2011-07-18 18:04

Re: Running i386 win32 bins
 
Quote:

Originally Posted by barzam (Post 1053540)
No, it's not possible because of the different CPU architectures.

Well...in theory you could port Qemu or something that could emulate the i386 CPU. But it would be really slow. DOSBox does something like that, I think.

ivyking 2011-07-18 18:08

Re: Running i386 win32 bins
 
this has been discussed alot before, and most probably searching for one minute will give you the answer..

no you can't use wine to run i386 programs on an arm processor, as wine is not an emulator

w ine
i s
n ot
e mulator

so using wine alone, this can't be done. the wine package in the repository is there to run windows programs recompiled for arm only..

if you are dying to run a program compiled for x86, you can still do so by using Qemu in user mode, this combined with wine will let you run the program at a miserable speed.

you can do so by installing wine on your PC, install the program you want to use, make sure it's running, then clone your linux partition, and from the n900 install qemu, then copy qemu-i386-static into /usr/bin of your cloned linux partition, then chroot into it.

now you can attempt to run the program by changing your directory to where the program is located, then using wine./program.exe

this is not reliable and you may run into several Qemu crashes and segfaults..

jedi 2011-07-18 18:12

Re: Running i386 win32 bins
 
Quote:

Originally Posted by marmistrz (Post 1053523)
Hi
Is it possible to run i386 win32 bins via wine?
thanks in advance

It's as easy as porting Symbian.

Oh, by the way - how is your project coming along? All the threads you started a couple of weeks ago have been very quiet...

;)

barzam 2011-07-18 19:25

Re: Running i386 win32 bins
 
Quote:

Originally Posted by skykooler (Post 1053544)
Well...in theory you could port Qemu or something that could emulate the i386 CPU. But it would be really slow. DOSBox does something like that, I think.

Yes I know, but since OP specifically asked about Wine I didn't really see the relevance..

marmistrz 2011-07-19 08:35

Re: Running i386 win32 bins
 
I'm a bit busy this time... I'm searching for an answer how to compile this

Captwheeto 2011-07-19 08:52

Re: Running i386 win32 bins
 
What exactly are you trying to compile?

Radicalz38 2011-07-19 08:53

Re: Running i386 win32 bins
 
Hmm just wondering if it's possible to run i386 how about 64bit apps? :/

jedi 2011-07-19 08:55

Re: Running i386 win32 bins
 
Quote:

Originally Posted by Radicalz38 (Post 1053946)
Hmm just wondering if it's possible to run i386 how about 64bit apps? :/

See reply #2

Captwheeto 2011-07-19 09:03

Re: Running i386 win32 bins
 
At least ARM and x86 are 32bit. It'd be even harder to do 64.

Radicalz38 2011-07-19 09:04

Re: Running i386 win32 bins
 
Quote:

Originally Posted by jedi (Post 1053948)
See reply #2

Sorry then what I meant was emulate it.

marmistrz 2011-07-19 11:33

Re: Running i386 win32 bins
 
Compile what - talking about symbian900, symbianit, or how-it's-called. I've not decided yet

Captwheeto 2011-07-19 11:40

Re: Running i386 win32 bins
 
Compile the kernel first then and then in a chroot compile the userland tools and build inside out from there?

Have you ever built an OS from scratch? It varies and it's not an easy thing, even if you are just porting.

EDIT: That doesn't even make sense in a mobile environment. Scratch that. Kernel first still applies though

marmistrz 2011-07-21 08:39

Re: Running i386 win32 bins
 
any way of porting w32 apps? that aint open src

jedi 2011-07-21 08:49

Re: Running i386 win32 bins
 
Quote:

Originally Posted by marmistrz (Post 1055241)
any way of porting w32 apps? that aint open src

To port an app, you need the source. You can't port it without...

http://en.wikipedia.org/wiki/Porting

ivgalvez 2011-07-21 10:02

Re: Running i386 win32 bins
 
Quote:

Originally Posted by jedi (Post 1055243)
To port an app, you need the source. You can't port it without...

http://en.wikipedia.org/wiki/Porting

Not really, although it would be extremely hard and almost undoable for big applications, but you could (theoretically) disassemble the application convert it to C++ (there are tools for that, though the code is unreadable) and then port it.

Please check this:
http://www.abadiadelcrimen.com/
It's a remake of a very ancient game. The author did it by directly hacking the original x86 asm code disassembled by him.
Then another guy "ported" it to C++ using a tool called VIGASOCO:
http://www.abadiadelcrimen.com/vigasoco.html

Nice, isn't it?

Captwheeto 2011-07-21 10:12

Re: Running i386 win32 bins
 
You'd need a passion to convert something from x86 ASM. And I doubt it was written in a low level language like that game. Looking at a .net program through a decompiler is like staring into an abyss

jedi 2011-07-21 11:12

Re: Running i386 win32 bins
 
Quote:

Originally Posted by ivgalvez (Post 1055276)
Not really, although it would be extremely hard and almost undoable for big applications, but you could (theoretically) disassemble the application convert it to C++ (there are tools for that, though the code is unreadable) and then port it.

Please check this:
http://www.abadiadelcrimen.com/
It's a remake of a very ancient game. The author did it by directly hacking the original x86 asm code disassembled by him.
Then another guy "ported" it to C++ using a tool called VIGASOCO:
http://www.abadiadelcrimen.com/vigasoco.html

Nice, isn't it?

I was trying to answer in the context the question was asked ;)

ivgalvez 2011-07-21 11:24

Re: Running i386 win32 bins
 
Quote:

Originally Posted by jedi (Post 1055321)
I was trying to answer in the context the question was asked ;)

Haha, yes but there is always someone out there doing amazing things!


All times are GMT. The time now is 10:53.

vBulletin® Version 3.8.8