salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Wed May 30, 2018 9:28 pm

HI!!
I am trying to run one of these binaries compiled by notaz http://notaz.gp2x.de/misc/starec/ .The one it´s compressed on libscr.tar.xz.
I Install wine on raspbian, use the next command LD_LIBRARY_PATH=. set arch linux32 -L wine libscr_sa_arm.exe.so and absolutely nothing happens, no error, nothing.
It's starcraft btw...

klricks
Posts: 6065
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Run Windows recompiled ARM binaries on raspbian with WINE

Wed May 30, 2018 11:27 pm

salvaliebana wrote:
Wed May 30, 2018 9:28 pm
HI!!
I am trying to run one of these binaries compiled by notaz http://notaz.gp2x.de/misc/starec/ .The one it´s compressed on libscr.tar.xz.
I Install wine on raspbian, use the next command LD_LIBRARY_PATH=. set arch linux32 -L wine libscr_sa_arm.exe.so and absolutely nothing happens, no error, nothing.
It's starcraft btw...
WINE will not work unless you also install an emulator such as: https://eltechs.com/product/exagear-desktop/
Even after spending the $30.00 for the emulator software there is no guarantee that your application will work satisfactorily or at all.
IMO You are much better off getting a Linux equivalent of whatever Windows software you want to run.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Re: Run Windows recompiled ARM binaries on raspbian with WINE

Thu May 31, 2018 12:16 am

Thats the problem, i want to run an ARM recompiled exe, not a x86 exe. I dont want to emulate nothing at all!!

fruitoftheloom
Posts: 18482
Joined: Tue Mar 25, 2014 12:40 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE

Thu May 31, 2018 6:08 am

salvaliebana wrote:
Thu May 31, 2018 12:16 am
Thats the problem, i want to run an ARM recompiled exe, not a x86 exe. I dont want to emulate nothing at all!!

Confused why you need WINE which is for x86 cpu architecture machines:

https://wiki.winehq.org/Debian


If you can inform use what Game you are trying to run, maybe it has already been ported or if MS-DOS based it may run natively in DOSBOX ??


There is a paid for option which allegedly runs Windows Software but only you can decide whether or not worth the cost:

https://eltechs.com/new-era-of-gaming-on-raspberry-pi/
adieu

My other Computer is an Asus CS10 ChromeBit

salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Re: Run Windows recompiled ARM binaries on raspbian with WINE

Thu May 31, 2018 4:57 pm

It's a Starcraft recompiled exe to work NATIVELY on ARM with wine. repo http://notaz.gp2x.de/misc/starec/libscr.tar.xz

wine it's not for x86. wine was made to "simulate" a windows environment. I dont know why isnt working or how to make it work with these binaries..

fruitoftheloom
Posts: 18482
Joined: Tue Mar 25, 2014 12:40 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE

Thu May 31, 2018 5:18 pm

salvaliebana wrote:
Thu May 31, 2018 4:57 pm
It's a Starcraft recompiled exe to work NATIVELY on ARM with wine. repo http://notaz.gp2x.de/misc/starec/libscr.tar.xz

wine it's not for x86. wine was made to "simulate" a windows environment. I dont know why isnt working or how to make it work with these binaries..

The Wine link states:

Raspbian users: the WineHQ packages are for x86 architecture only; they cannot be installed on an ARM system.
adieu

My other Computer is an Asus CS10 ChromeBit

fruitoftheloom
Posts: 18482
Joined: Tue Mar 25, 2014 12:40 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE

Thu May 31, 2018 5:21 pm

salvaliebana wrote:
Thu May 31, 2018 4:57 pm
It's a Starcraft recompiled exe to work NATIVELY on ARM with wine. repo http://notaz.gp2x.de/misc/starec/libscr.tar.xz

wine it's not for x86. wine was made to "simulate" a windows environment. I dont know why isnt working or how to make it work with these binaries..

Old post: viewtopic.php?f=78&t=96742
adieu

My other Computer is an Asus CS10 ChromeBit

salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Thu May 31, 2018 5:37 pm

you should check out stratagus and see what is it... no campaigns, no nothing...
thanks anyway

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11300
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Thu May 31, 2018 5:38 pm

There is no WINE for non X86 systems, as Wine is not an emulator, so there is no WINE for ARM systems.
WINE is designed for X86 Linux systems.

However, in this case your recompiled for ARM, previously X86 binaries can run on a ARM-Linux system, if that ARM-Linux system supports 3D drivers, so in fact it runs natively on Raspbian.

salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Thu May 31, 2018 5:56 pm

I encourage you all to test these binaries, because there are 2 of the greatest games of all time, starcraft and diablo II (and jazz rabbit 2 :D ). If someone can make it run natively on a pi 3, it will be awesome guys. and please, make a tutorial.

salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Fri Jun 01, 2018 1:28 am

Notes from Notaz
on forum: https://pyra-handheld.com/boards/thread ... st-1292341

I've finally done the armhf static recompiles, should be compatible with various ARM devboards (like Raspberry Pi 2) and of course Pyra:
http://notaz.gp2x.de/misc/starec/

Be sure to read the notes, it's not very straightforward to get things to work.

Repo for pandora: https://repo.openpandora.org/?page=deta ... .starcraft

The .txt from http://notaz.gp2x.de/misc/starec/

ARM recompiled exe of StarCraft

requires: 1.16.1 version of the game data files
usage: LD_LIBRARY_PATH=. setarch linux32 -L wine libscr_sa_arm.exe.so

"setarch -L" is needed because the game (or more likely compiled-in m$ c++
runtime) relies on pointers to be below 0x80000000 (as they are on Windows).
Since 3.3 kernel ARM Linux uses so called topdown mapping and uses addresses
above 0x80000000 by default.

LD_LIBRARY_PATH=. is needed for dynamic loader to find standard.snp_arm,
which is an ELF shared object after recompilation.

Beware of GCC bug 67037!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67037
Some distributions (like Debian jessie) are affected by it.
workaround:
$ cd src/wine/dlls/kernel32
$ touch volume.c
$ sed -i -e 's/-O2/-Os/' Makefile
$ make

You may also want to disable wine's OpenGL blits and use gdi instead,
see DirectDrawRenderer in http://wiki.winehq.org/UsefulRegistryKeys

salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Sat Jun 02, 2018 2:04 am

I use another kernel an WINE WORKS!!!
THE KERNEL WAS THE PROBLEM...
you need a 1G/3G kernel to run wine..

but.. the binaries not run properly

nhandled exception: illegal instruction in 32-bit code (0x7bc85690).
Register dump:
Thumb User Mode
Pc:7bc85690 Sp:b5f5fcb8 Lr:00000000 Cpsr:20000030(--C-)
r0:b5f5fd00 r1:b5f5fcb8 r2:7bc86df4 r3:49be487f
r4:b641b780 r5:49be487f r6:b641b78c r7:b6000000
r8:b641b794 r9:00000001 r10:b641b778 Fp:bed9e308 Ip:7bc85691
Stack dump:
0xb5f5fcb8: 00200003 b641b77c 279c265c dddddddd
0xb5f5fcc8: 49be487f b641b780 49be487f b641b78c
0xb5f5fcd8: b6000000 b641b794 00000001 b641b778
0xb5f5fce8: bed9e308 b641b784 b5f5fd50 00000000
0xb5f5fcf8: b6191710 20000010 c0000005 00000000
0xb5f5fd08: 00000000 b6191710 00000002 00000000
Backtrace:
=>0 0x7bc85690 (0xbed9e308)
0x7bc85690:
Unknown Thumb2 Instruction: ff32e12f
Modules:
Module Address Debug info Name (19 modules)
PE 7b810000-7b9b0000 Deferred kernel32
PE 7bc10000-7bc14000 Deferred ntdll
PE b4b70000-b4b74000 Deferred uxtheme
PE b4e20000-b4e24000 Deferred winex11
PE b5300000-b530a000 Deferred winspool
PE b5350000-b537f000 Deferred comctl32
PE b5450000-b54e9000 Deferred comdlg32
PE b5540000-b5548000 Deferred shlwapi
PE b55c0000-b571f000 Deferred shell32
PE b57f0000-b57f9000 Deferred msacm32
PE b5830000-b5834000 Deferred rpcrt4
PE b58c0000-b58c8000 Deferred ole32
PE b59d0000-b5a48000 Deferred winmm
PE b5aa0000-b5aa4000 Deferred msvcrt
PE b5b40000-b5b44000 Deferred imm32
PE b5b70000-b5b74000 Deferred version
PE b5ba0000-b5ba4000 Deferred advapi32
PE b5c10000-b5c17000 Deferred gdi32
PE b5d30000-b5d6b000 Deferred user32
Threads:
process tid prio (all id:s are in hex)
00000008 (D) E:\home\pi\starcraft\libscr_sa_arm.exe
00000009 0 <==
0000000e services.exe
0000001e 0
0000001d 0
00000014 0
00000010 0
0000000f 0
00000012 winedevice.exe
0000001a 0
00000019 0
00000018 0
00000013 0
0000001b plugplay.exe
00000020 0
0000001f 0
0000001c 0
00000021 explorer.exe
00000027 0
00000026 0
00000025 0
00000022 0
System information:
Wine build: wine-1.8.7 (Raspbian 1.8.7-2)
Platform: arm
Version: Windows XP
Host system: Linux
Host version: 4.9.80-v7+


User avatar
zeroking
Posts: 1
Joined: Tue Sep 11, 2018 12:27 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Tue Sep 11, 2018 12:29 pm

great! Can you share the instructions on how you did it?

Thank you!

jdonald
Posts: 138
Joined: Fri Nov 03, 2017 4:36 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Sun Nov 18, 2018 5:54 am

I came upon this thread today after reading something related on reddit: https://www.reddit.com/r/raspberry_pi/c ... ry_pi_and/ -> https://gist.github.com/MIvanchev/14de5 ... 0cf1c0b01e

Thanks for bringing this up, salvaliebana. I tried out the binaries according to the instructions, including downloading the 1.16.1 data files. It ran for me with the command you provided, albeit never at more than 1 fps and it seemed to take more than 30 minutes just to get past the loading screen with Kerrigan's face. I gave up at the point of trying to select the Protoss campaign as it's not really my intention to play the game anyhow. I think this is an awesome proof-of-concept and it would be great to see more Windows games made to run on the Pi natively.

(Edit: Later I got something running closer to salvaliebana's video by running sudo raspi-config to enable the full OpenGL driver.)

It’s interesting how this thread has all the naysaying like bringing up Stratagus or saying “There is no WINE for non X86 systems”. Yes, Wine originally targeted x86 systems because at one time all Windows software was x86-only. Also the website note "Raspbian users: the WineHQ packages are for x86 architecture only” is referring only to the WineHQ packages, not Wine itself. A nice overview of using Wine for Windows on ARM software can be found in the gist link above.
Last edited by jdonald on Tue Nov 20, 2018 6:54 pm, edited 2 times in total.

hippy
Posts: 4336
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Sun Nov 18, 2018 3:04 pm

jdonald wrote:
Sun Nov 18, 2018 5:54 am
It’s interesting how this thread has all the naysaying like bringing up Stratagus or saying “There is no WINE for non X86 systems”.
It's basically people's ignorance, misunderstandings, preconceived but false notions of wine limitations. You'll find it elsewhere as well as here; people believing they have authoritative knowledge when they don't, making claims they really shouldn't.

fruitoftheloom
Posts: 18482
Joined: Tue Mar 25, 2014 12:40 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Sun Nov 18, 2018 3:24 pm

hippy wrote:
Sun Nov 18, 2018 3:04 pm
jdonald wrote:
Sun Nov 18, 2018 5:54 am
It’s interesting how this thread has all the naysaying like bringing up Stratagus or saying “There is no WINE for non X86 systems”.
It's basically people's ignorance, misunderstandings, preconceived but false notions of wine limitations. You'll find it elsewhere as well as here; people believing they have authoritative knowledge when they don't, making claims they really shouldn't.

Yes OK if one has knowledge one can get an open-source equivalent to Exagear working. So yes I will detract all my previous comments.
:oops:


Though am I correct that it only achieves x86-32 ???


Is this similar which code_exec achieves ?

search.php?author_id=278862&sr=posts
adieu

My other Computer is an Asus CS10 ChromeBit

jdonald
Posts: 138
Joined: Fri Nov 03, 2017 4:36 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Sun Nov 18, 2018 10:23 pm

fruitoftheloom wrote:
Sun Nov 18, 2018 3:24 pm
Yes OK if one has knowledge one can get an open-source equivalent to Exagear working. So yes I will detract all my previous comments.
:oops: Though am I correct that it only achieves x86-32 ??? Is this similar which code_exec achieves ?
Thanks for the link. It appears that code_exec has built upon the earlier work of mikerr and others for running qemu + wine32:i386. That is an "open-source equivalent to Exagear" as you call it.

However, what salvaliebana is running here is a Windows on ARM binary via wine32:armhf. Even if Starcraft isn't smooth yet (although it sure looks good in his video), see the reddit/gist I linked above for an overview of what has been demonstrated with Notepad++. This is a means to run Windows apps with potentially native performance, because no emulation is involved.

mivanchev
Posts: 2
Joined: Fri Nov 16, 2018 1:30 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Tue Nov 20, 2018 6:23 pm

Hey friends, I'm the author of the article linked by jdonald :) I'm here to answer any question you might have.

jdonald
Posts: 138
Joined: Fri Nov 03, 2017 4:36 pm

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Tue Nov 20, 2018 10:01 pm

Welcome, mivanchev!

I just discovered your topic on this via your post history. Unfortunately it's so easy to miss related things on this board with 40 subforums, so for everyone's reference here's the link: viewtopic.php?f=63&t=227055

salvaliebana
Posts: 39
Joined: Wed Sep 13, 2017 3:27 am

Re: Run Windows recompiled ARM binaries on raspbian with WINE [does not work]

Mon Dec 10, 2018 5:48 pm

SORRY, I made a lot of progress on this. i made my own build of raspbian to run wine natively and even rufus works. check my youtube channel please.

Return to “Gaming”