SANAY
Posts: 5
Joined: Sun May 09, 2021 11:47 am

run exe file on raspberry pi

Sun May 09, 2021 6:28 pm

Hello, I haven’t found any solution to this problem and I have tried everything and nothing works at all, the problem is that I need to run exe even through an emulator, but how? will help

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

Re: run exe file on raspberry pi

Sun May 09, 2021 11:58 pm

Run a x86 emulator (to emulate the intel CPU)

I suggest running dosbox

User avatar
RaspbianUser1
Posts: 841
Joined: Thu Mar 05, 2020 6:34 pm
Location: ~/

Re: run exe file on raspberry pi

Mon May 10, 2021 12:03 am

What are you trying to run?

Also considering that the pi is an ARM CPU you wont find armhf windows binaries.

You might want to consider a Linux version of whatever software you are trying to run
Running with a Raspberry Pi 4B 4GB with Raspberry Pi OS with MATE Desktop
Why not overclock, push some more performance out of your computer!
Think before you delete something a stranger on the internet told you to.

GlowInTheDark
Posts: 1731
Joined: Sat Nov 09, 2019 12:14 pm

Re: run exe file on raspberry pi

Mon May 10, 2021 2:33 am

Setup your Windows box as a VNC server.

Then run VNC client on the Pi, connect to the Windows box, and run your EXE. Done.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

Loves Linux; loves to dance.

Geek3579
Posts: 17
Joined: Sun Feb 28, 2021 6:38 am

Re: run exe file on raspberry pi

Mon May 10, 2021 6:52 am

I use Box86 to run wine, and then several Windows programs on a Pi4, starting from a .exe file. TwisterOS has this as part of Pi-Apps. Mostly works well. Box86 has been around for a couple of years, mostly utilized by pi gamers. Pi-Apps makes it super easy to install and use .

SANAY
Posts: 5
Joined: Sun May 09, 2021 11:47 am

Re: run exe file on raspberry pi

Mon May 10, 2021 7:43 am

RaspbianUser1 wrote:
Mon May 10, 2021 12:03 am
What are you trying to run?

Also considering that the pi is an ARM CPU you wont find armhf windows binaries.

You might want to consider a Linux version of whatever software you are trying to run
I will run not heavy games, but not old ones, and the programs
Last edited by SANAY on Mon May 10, 2021 7:45 am, edited 1 time in total.

SANAY
Posts: 5
Joined: Sun May 09, 2021 11:47 am

Re: run exe file on raspberry pi

Mon May 10, 2021 7:43 am

I want to run not heavy but not old games, and some other programs.
DosBox is it suitable for this?
Windows VNC will this method work with 64 bit official system?

thradtke
Posts: 693
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: run exe file on raspberry pi

Mon May 10, 2021 8:03 am

SANAY wrote:
Mon May 10, 2021 7:43 am
I want to run not heavy but not old games, and some other programs.
DosBox is it suitable for this?
No. DosBox doesn't run new games, and box86 + wine is extremly slow on the pi. Programs in general may or may not run.

If you expect a speed compareable to a very old machine like a Pentium 1, then forget about it. The Pi is not up to the task.
Rocket Scientist.

fruitoftheloom
Posts: 26838
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: run exe file on raspberry pi

Mon May 10, 2021 8:12 am

SANAY wrote:
Mon May 10, 2021 7:43 am
I want to run not heavy but not old games, and some other programs.
DosBox is it suitable for this?
Windows VNC will this method work with 64 bit official system?

Try BOX86 yourself, you are the only one who will be able to assess it usefulness for your purpose, anything else is conjecture:

https://github.com/ptitSeb/box86
The information is out there....you just have to let it in.

My other Linux machines: ChromeBox
https://www.aliexpress.com/item/32966393971.html
& Stone Desktop Intel CoreDuo circa 2010

SANAY
Posts: 5
Joined: Sun May 09, 2021 11:47 am

Re: run exe file on raspberry pi

Mon May 10, 2021 5:38 pm

fruitoftheloom wrote:
Mon May 10, 2021 8:12 am
SANAY wrote:
Mon May 10, 2021 7:43 am
I want to run not heavy but not old games, and some other programs.
DosBox is it suitable for this?
Windows VNC will this method work with 64 bit official system?

Try BOX86 yourself, you are the only one who will be able to assess it usefulness for your purpose, anything else is conjecture:

https://github.com/ptitSeb/box86
I put box86 according to the instructions and I got an error when compiling here is the error:

$ make -j1
cc: error: unrecognized command line option '-marm'; did you mean '-fasm'?
cc: error: unrecognized command line option '-mfpu=neon-fp-armv8'
cc: error: unrecognized command line option 'mfloat-abi=hard '
cc: error: unrecognized command line option '-marm' did you mean '-fasm'?
make[2]: *** [CMakeFiles/dynarec_arm.dir/build.make:63: CMakeFiles/dynarec_arm.dir/src/dynarec/dynablock.c.o] error 1
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/dynarec_arm.dir/all] error 2
make: *** [Makefile:141: all ] error 2

I have not found a solution to this error

fruitoftheloom
Posts: 26838
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: run exe file on raspberry pi

Mon May 10, 2021 5:44 pm

SANAY wrote:
Mon May 10, 2021 5:38 pm
fruitoftheloom wrote:
Mon May 10, 2021 8:12 am
SANAY wrote:
Mon May 10, 2021 7:43 am
I want to run not heavy but not old games, and some other programs.
DosBox is it suitable for this?
Windows VNC will this method work with 64 bit official system?

Try BOX86 yourself, you are the only one who will be able to assess it usefulness for your purpose, anything else is conjecture:

https://github.com/ptitSeb/box86
I put box86 according to the instructions and I got an error when compiling here is the error:

$ make -j1
cc: error: unrecognized command line option '-marm'; did you mean '-fasm'?
cc: error: unrecognized command line option '-mfpu=neon-fp-armv8'
cc: error: unrecognized command line option 'mfloat-abi=hard '
cc: error: unrecognized command line option '-marm' did you mean '-fasm'?
make[2]: *** [CMakeFiles/dynarec_arm.dir/build.make:63: CMakeFiles/dynarec_arm.dir/src/dynarec/dynablock.c.o] error 1
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/dynarec_arm.dir/all] error 2
make: *** [Makefile:141: all ] error 2

I have not found a solution to this error

Ask the developers to support their software on Discord ;)
The information is out there....you just have to let it in.

My other Linux machines: ChromeBox
https://www.aliexpress.com/item/32966393971.html
& Stone Desktop Intel CoreDuo circa 2010

Moonmarch
Posts: 676
Joined: Thu Mar 07, 2019 1:34 am

Re: run exe file on raspberry pi

Mon May 10, 2021 9:32 pm

DOSBox will run .EXE files only if the .EXE files was designed for the MS-DOS operating system. You will not be able to run Windows .EXE files with DOSBox unless you install Windows in DOSBox. The you would need to see which version of Windows the .EXE file was designed for. Even the ARM computer version of Windows 10 uses a X86 emulator. Is that what you are trying to achieve, run a X86 emulator on the Raspberry Pi computer? If you are not familiar with building software on a Linux computer, I would avoid this X86 emulation project. You would have to install software on top of software, and install more software after, which is complicated.

drtechno
Posts: 237
Joined: Fri Apr 09, 2021 6:33 pm

Re: run exe file on raspberry pi

Mon May 10, 2021 9:53 pm

Moonmarch wrote:
Mon May 10, 2021 9:32 pm
DOSBox will run .EXE files only if the .EXE files was designed for the MS-DOS operating system. You will not be able to run Windows .EXE files with DOSBox unless you install Windows in DOSBox. The you would need to see which version of Windows the .EXE file was designed for. Even the ARM computer version of Windows 10 uses a X86 emulator. Is that what you are trying to achieve, run a X86 emulator on the Raspberry Pi computer? If you are not familiar with building software on a Linux computer, I would avoid this X86 emulation project. You would have to install software on top of software, and install more software after, which is complicated.
Well, it really isn't designed to be a desktop computer. Just learn how to program with some GPIO.

GlowInTheDark
Posts: 1731
Joined: Sat Nov 09, 2019 12:14 pm

Re: run exe file on raspberry pi

Mon May 10, 2021 10:13 pm

You would have to install software on top of software, and install more software after, which is complicated.
Wouldn't it be a lot simpler and more straightforward (especially for a noob) to just install and use VNC like I suggested a few posts back?
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

Loves Linux; loves to dance.

User avatar
Imperf3kt
Posts: 4467
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia
Contact: Twitter

Re: run exe file on raspberry pi

Mon May 10, 2021 11:00 pm

GlowInTheDark wrote:
Mon May 10, 2021 10:13 pm
You would have to install software on top of software, and install more software after, which is complicated.
Wouldn't it be a lot simpler and more straightforward (especially for a noob) to just install and use VNC like I suggested a few posts back?
Assuming said person wants to waste electricity by running two computers when they could just play the games on the windows PC in the first place, yes.
55:55:44:44:4C
52:4C:52:42:41

Rose tinted glasses are difficult to see through.

ptitSeb
Posts: 229
Joined: Tue May 19, 2015 2:49 pm

Re: run exe file on raspberry pi

Tue May 11, 2021 6:11 am

SANAY wrote:
Mon May 10, 2021 5:38 pm
fruitoftheloom wrote:
Mon May 10, 2021 8:12 am
SANAY wrote:
Mon May 10, 2021 7:43 am
I want to run not heavy but not old games, and some other programs.
DosBox is it suitable for this?
Windows VNC will this method work with 64 bit official system?

Try BOX86 yourself, you are the only one who will be able to assess it usefulness for your purpose, anything else is conjecture:

https://github.com/ptitSeb/box86
I put box86 according to the instructions and I got an error when compiling here is the error:

$ make -j1
cc: error: unrecognized command line option '-marm'; did you mean '-fasm'?
cc: error: unrecognized command line option '-mfpu=neon-fp-armv8'
cc: error: unrecognized command line option 'mfloat-abi=hard '
cc: error: unrecognized command line option '-marm' did you mean '-fasm'?
make[2]: *** [CMakeFiles/dynarec_arm.dir/build.make:63: CMakeFiles/dynarec_arm.dir/src/dynarec/dynablock.c.o] error 1
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/dynarec_arm.dir/all] error 2
make: *** [Makefile:141: all ] error 2

I have not found a solution to this error
Read the doc/COMPILE.md file: your are building on aarch64 OS, there are some special step required there.

Geek3579
Posts: 17
Joined: Sun Feb 28, 2021 6:38 am

Re: run exe file on raspberry pi

Tue May 11, 2021 8:29 am

I should have made it clearer - Box86 needs to be run from an installation of pi-apps in Raspbian, so all the hard work of installing Box86 is avoided.

thradtke
Posts: 693
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: run exe file on raspberry pi

Tue May 11, 2021 9:26 am

I already wondered what this is all about. I installed the binary from the repo, not missing anything.
Rocket Scientist.

SANAY
Posts: 5
Joined: Sun May 09, 2021 11:47 am

Re: run exe file on raspberry pi

Tue May 11, 2021 5:31 pm

ptitSeb wrote:
Tue May 11, 2021 6:11 am
SANAY wrote:
Mon May 10, 2021 5:38 pm
fruitoftheloom wrote:
Mon May 10, 2021 8:12 am



Try BOX86 yourself, you are the only one who will be able to assess it usefulness for your purpose, anything else is conjecture:

https://github.com/ptitSeb/box86

I put box86 according to the instructions and I got an error when compiling here is the error:

$ make -j1
cc: error: unrecognized command line option '-marm'; did you mean '-fasm'?
cc: error: unrecognized command line option '-mfpu=neon-fp-armv8'
cc: error: unrecognized command line option 'mfloat-abi=hard '
cc: error: unrecognized command line option '-marm' did you mean '-fasm'?
make[2]: *** [CMakeFiles/dynarec_arm.dir/build.make:63: CMakeFiles/dynarec_arm.dir/src/dynarec/dynablock.c.o] error 1
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/dynarec_arm.dir/all] error 2
make: *** [Makefile:141: all ] error 2

I have not found a solution to this error
Read the doc/COMPILE.md file: your are building on aarch64 OS, there are some special step required there.
what kind?

ptitSeb
Posts: 229
Joined: Tue May 19, 2015 2:49 pm

Re: run exe file on raspberry pi

Wed May 12, 2021 6:28 am

SANAY wrote:
Tue May 11, 2021 5:31 pm
ptitSeb wrote:
Tue May 11, 2021 6:11 am
SANAY wrote:
Mon May 10, 2021 5:38 pm



I put box86 according to the instructions and I got an error when compiling here is the error:

$ make -j1
cc: error: unrecognized command line option '-marm'; did you mean '-fasm'?
cc: error: unrecognized command line option '-mfpu=neon-fp-armv8'
cc: error: unrecognized command line option 'mfloat-abi=hard '
cc: error: unrecognized command line option '-marm' did you mean '-fasm'?
make[2]: *** [CMakeFiles/dynarec_arm.dir/build.make:63: CMakeFiles/dynarec_arm.dir/src/dynarec/dynablock.c.o] error 1
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/dynarec_arm.dir/all] error 2
make: *** [Makefile:141: all ] error 2

I have not found a solution to this error
Read the doc/COMPILE.md file: your are building on aarch64 OS, there are some special step required there.
what kind?
Copy/Paster from COMPILE.md:

Code: Select all

#### for Raspberry Pi

  _a build for model 2, 3 and 4 can be done. Model 1 and 0 cannot (at least not with Dynarec, as they lack NEON support)_
 
```
git clone https://github.com/ptitSeb/box86
cd box86
mkdir build; cd build; cmake .. -DRPI4=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
sudo make install
sudo systemctl restart systemd-binfmt
```
 
  _For Pi4. Change to RPI2 or RPI3 for other models.  Change to RPI4ARM64 for compiling on arm64. (armhf multiarch or chroot required alongside armhf gcc. Install it with 'sudo apt install gcc-arm-linux-gnueabihf'.)_
  
So last line: "sudo apt install gcc-arm-linux-gnueabihf"
But you'll also need armhf libs to run stuff once box86 is built and installed, so you'll have to install more libs probably, doing things like "sudo apt install libsdl2-2.0-0:armhf"
Last edited by ptitSeb on Wed May 12, 2021 7:46 am, edited 1 time in total.

jj_0
Posts: 129
Joined: Wed Jul 11, 2012 7:07 am

Re: run exe file on raspberry pi

Wed May 12, 2021 8:36 am

SANAY wrote:
Sun May 09, 2021 6:28 pm
Hello, I haven’t found any solution to this problem and I have tried everything and nothing works at all, the problem is that I need to run exe even through an emulator, but how? will help
What's the program you are trying to run? Is it Windows 32-bit or 64-bit?

I've had some success in installing Wine (using the 'qemu-user-static' package, and if not already installed the 'binfmt-support' package for on-the-fly x86 emulation, and you;d need add the i386 architecture as well before installing Wine).

But it might be easier to use TwisterOS instead on the Pi, apparently it has Wine and BOX86 pre-installed.

Geek3579
Posts: 17
Joined: Sun Feb 28, 2021 6:38 am

Re: run exe file on raspberry pi

Thu May 13, 2021 7:26 am

Yes, TwisterOS has WINE as part of BOX-86 which is installed under Pi-Apps.

Its a bit slow to start any ,exe application, but once running isnt too bad speed wise in a Pi4 with minumum 4GB Ram .

Return to “General discussion”