salvaliebana
Posts: 38
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: 5769
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: 38
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: 17277
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

salvaliebana
Posts: 38
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: 17277
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

fruitoftheloom
Posts: 17277
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

salvaliebana
Posts: 38
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: 10848
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: 38
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: 38
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: 38
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!

Return to “Gaming”

Who is online

Users browsing this forum: Google [Bot] and 7 guests