Page 1 of 1

Windows Executable on Pi 2

Posted: Fri Mar 06, 2015 2:39 pm
by PaulPi
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

Re: Windows Executable on Pi 2

Posted: Fri Mar 06, 2015 2:43 pm
by mott555
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.

Re: Windows Executable on Pi 2

Posted: Fri Mar 06, 2015 2:46 pm
by fruitoftheloom
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

Re: Windows Executable on Pi 2

Posted: Fri Mar 06, 2015 2:48 pm
by RaTTuS
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 ;)