2 Replies - 2366 Views - Last Post: 15 June 2010 - 12:11 PM Rate Topic: -----

#1 Aaron@ncsu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-June 10

Compiling Python code for Windows CE x86 (not ARM)

Posted 14 June 2010 - 10:31 AM

Hi all,
I'm an intern in Raleigh, NC and a python newbie. I am also a
senior in computer engineering at NC State (GO PACK!). At work we're
having a difficult time finding a compiling our python code for a
target Windows CE device with an x86 processor. From my research I've
noticed that their isn't a big "need" for this compiler. The
"PythonCE" compilers I've found are designed ONLY for ARM processors.
I have used a C/C++ compiler for Windows CE (the i386-mingw32ce
compiler) which successfully compiled some of our other C code for the
device successfully. We then assumed another direction may be to
find a Python-to-C or Python-to-Java compiler and then compile the
interpreted code for our target x86 device. I have tried ShedSkin, a
Python-to-C++ compiler, but it has many problems compiling the code
such as it won't compile some of the included libraries we need. This
tells me that the approach to "interpret Python into another language
and then compile that language for Windows CE x86" may be a bad
approach. Any direction would be greatly appreciated!

Thanks in advance,
Aaron Snipes
atsnipes@Ncsu.edu

Is This A Good Question/Topic? 0
  • +

Replies To: Compiling Python code for Windows CE x86 (not ARM)

#2 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 452
  • View blog
  • Posts: 796
  • Joined: 08-June 10

Re: Compiling Python code for Windows CE x86 (not ARM)

Posted 14 June 2010 - 11:28 AM

View PostAaron@ncsu, on 14 June 2010 - 11:31 AM, said:

Hi all,
I'm an intern in Raleigh, NC and a python newbie. I am also a senior in computer engineering at NC State (GO PACK!). At work we're having a difficult time finding a compiling our python code for a target Windows CE device with an x86 processor. From my research I've noticed that their isn't a big "need" for this compiler. The "PythonCE" compilers I've found are designed ONLY for ARM processors. I have used a C/C++ compiler for Windows CE (the i386-mingw32ce compiler) which successfully compiled some of our other C code for the device successfully. We then assumed another direction may be to find a Python-to-C or Python-to-Java compiler and then compile the interpreted code for our target x86 device. I have tried ShedSkin, a Python-to-C++ compiler, but it has many problems compiling the code such as it won't compile some of the included libraries we need. This tells me that the approach to "interpret Python into another language and then compile that language for Windows CE x86" may be a bad approach. Any direction would be greatly appreciated!

Thanks in advance,
Aaron Snipes
atsnipes@Ncsu.edu


If the processor you are using is based on the x86 architecture, won't the standard py2exe work?
Was This Post Helpful? 1
  • +
  • -

#3 Aaron@ncsu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-June 10

Re: Compiling Python code for Windows CE x86 (not ARM)

Posted 15 June 2010 - 12:11 PM

I've looked into py2exe already but I'm having a hard time finding anyone who has successfully built the python code for my target with py2exe.

Just about the only documentation found: http://mail.python.o...une/001477.html wasn't very helpful of how to setup up py2exe. I found the ctypes library that it referred to but I'm not exactly sure how it will help me. Like I mentioned before, the most commonly used processor used with Windows CE is the ARM processor, their barely is any help compiling for the x86 processor running Windows CE.

I'm also getting Visual 2005 along with the Windows CE 6.0 SDK and the Platform Builder. I've heard talk that their may be some helpful toolchains created for visual 2005 that may help me compile for this target (x86 Windows CE).

Has anyone successfully compiled python code for Windows CE 6.0 w/ x86 processor?

Thanks for the help,
Aaron
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1