[PythonCE] Python on Windows CE/x86

Ulrich Eckhardt eckhardt at satorlaser.com
Fri Sep 26 13:57:11 CEST 2008

On Friday 26 September 2008, Roberto Aguilar wrote:
> Do you have any suggestions for getting Python compiled on x86?
> Almost everything I have found is for getting it compiled on ARM.  Any
> suggestions are helpful.

Okay, in general I would suggest you first try to compile for Pocket PC 2003 
first, since that seems to be the most widely supported one. Once you have 
that working, I'd change to compiling for x86. Now, for compiling, I 
basically followed the instructions included:
 - install Python 2.5
 - open a terminal window and CD to PCBuild/WinCE
 - run 'scons.bat'

As far as switching to x86 is concerned, there are several places to adjust:
1. msevc.py
 - replace /machine:ARM with /machine:x86
 - replace clarm with cl or clarm.exe with cl.exe
 - replace in CPPDEFINES "ARM _ARM_ ARMV4I" with "x86 _x86_"
2. SConstruct
 - replace 'POCKET PC 2003' with your SDK's name (see path under 
ProgramFiles/Windows CE Tools/...)
 - replace 'WCE ARMV4I' with 'WCE x86'
 - replace 'PPC_2003' with something else (ATM, I have simply skipped the 
whole CAB-file generation).

> I also understand you are just starting, so if you do learn anything
> along the way, the info is much appreciated.

I typically post updates to the mailinglist of such projects, so stay in touch 
with python-dev or pythonce. That's also why I put the PythonCE mailinglist 
in the CC, keep any discussions there to get a wider audience.


Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

           Visit our website at <http://www.satorlaser.de/>
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.


More information about the PythonCE mailing list