PaulPi
Posts: 7
Joined: Thu Feb 19, 2015 4:41 pm

Windows Executable on Pi 2

Fri Mar 06, 2015 2:39 pm

Hi

I've just spent a lot of time compiling/linking a c++ console project using g++ on a Pi 1. However; in converting the many .cpp and .h files for Linux, I have had to make a number of function/header file changes and am wary that this may ultimately have introduced problems. I have a couple of questions and would be grateful if someone could point me in the right direction?

Firstly; am I correct in assuming the original professionally windows compiled executable can never be run on a Pi1?

Secondly; this article http://en.wikipedia.org/wiki/Raspberry_Pi implies that Windows 10 (running natively??) may be used on the Pi2 and will be available free of charge. Is this available now if I buy a Pi2? Also as in the first question, with my original pro compiled console exe, can I run that on a Pi2 without and/or with Win 10 installed?

Any help much appreciated before I spend more time and money :D

mott555
Posts: 25
Joined: Fri Feb 20, 2015 3:28 pm

Re: Windows Executable on Pi 2

Fri Mar 06, 2015 2:43 pm

Unless you cross-compiled for the Pi and ARMv7 on Windows, an executable built on Windows will not run on a Pi.

As for the Windows 10 stuff, I think that's still well in the future but I'm not really in the know. I've also heard that Windows 10 for the Pi isn't going to be what everyone thinks it will be.

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

Re: Windows Executable on Pi 2

Fri Mar 06, 2015 2:46 pm

PaulPi wrote:Hi

I've just spent a lot of time compiling/linking a c++ console project using g++ on a Pi 1. However; in converting the many .cpp and .h files for Linux, I have had to make a number of function/header file changes and am wary that this may ultimately have introduced problems. I have a couple of questions and would be grateful if someone could point me in the right direction?

Firstly; am I correct in assuming the original professionally windows compiled executable can never be run on a Pi1?

Secondly; this article http://en.wikipedia.org/wiki/Raspberry_Pi implies that Windows 10 (running natively??) may be used on the Pi2 and will be available free of charge. Is this available now if I buy a Pi2? Also as in the first question, with my original pro compiled console exe, can I run that on a Pi2 without and/or with Win 10 installed?

Any help much appreciated before I spend more time and money :D
Badly mis-informed by overhype, the Windows10 is for developing Apps like one uses a Intel Galileo for...

https://dev.windows.com/en-us/featured/ ... pi2support
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Windows Executable on Pi 2

Fri Mar 06, 2015 2:48 pm

windows 10 for the RPI will not be able to play games and such.

compiled stuff, that you do - porting from one device to another will work [YMMV depending on the quality of your code]
if it is just a console app - i.e. simple I/O - then you should have very few worries [apart from your code]

now is a good time to learn about portable software
and how to include only the things you need ;)
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Beginners”