[PythonCE] PythonCE with WindowsCE.NET 4.2

2008-07-28 Thread Vicente Bal·le
Greetings to everyone.


I apologize to everybody for translation from Spanish to English I've done
with the translator of Google. I hope you understand my questions.


The theme is as follows:

I have to create an program for capturing data through the serial port and
bluetooth with PythonCE a Handheld PC whose characteristics are as follows:

 S.O.: Windows CE .NET 4.2

Microprocesador: Intel X-Scale PXA255 a 400 Mhz

Memoria: 32 MB SDRAM y 128 MB ROM (CF card)

Pantalla: QVGA 3,5" TFT color de 240 x 320

Puerto Serie: RS-232C (D-sub 9) y otro RS-232C (6 pin)

USB: Ver 1.1

Bluetooth: tipo CF card.


 Before I ask you help, and I tried to install the PythonCE 2.5 for ARM,
both installable from a PC as the direct installation on the HPC (. Cab).
Neither one nor the other what I have allowed. I have also tried to install
version Python-2.3.4/HPC-2000 and has not worked.
Finally I get off the PythonCE2.3.4-StorageCard the following address:

http://ft.atr.bydgoszcz.pl/~leeloo/PythonCE2.3.4-StorageCard.zip

So far this version has been executed well, I just needed to execute the
file link to me without an error (I forgot to take note of error) and can
finish setting up the python.

I must admit that my knowledge of WindowsCE is minimal, as with Python, but
still I have proposed in PythonCE and install the program with him, why you
want to raise the following issues:

On the one hand would like to know if I do well to get to PythonCE program
in the HPC (Handheld PC).
Moreover, it is possible to install PythonCE 2.5 on the WindowsCE.NET 4.2.
If so, what steps should I follow?.
In the case that can not be installed PythonCE 2.5; How to properly install
the pack PythonCE2.3.4-StorageCard?


I have many more questions that expose, but it makes no sense submission
until now has not resolved earlier.

Thanks in advance for your attention.

Vicente.
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] The State of Affairs

2008-07-28 Thread John Hampton

Alexandre Delattre wrote:
I was thinking that a first step to enhance distribution of PythonCE 
apps, would be to be able to create easily .cab for them.


.cab are installable over the air, as well by cross installing from desktop.

If I met enough positive feedback, I'll start trying to implement a 
distutils extension that will allow to create .cab the python way (i.e. 
Without using directly MS tools)


Sorry for a late response.

I would very much welcome this.  I am in the process of developing an 
application for out Symbol scanners that run Windows PocketPC 2003 and 
am planning on using python.  However, having an easy distribution 
method is essential.  I don't think I'd be much help in this endeavor, I 
don't have much experience with Windows mobile development, but I love 
the idea.


-John
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] pygame / distutils

2008-07-28 Thread Alexandre Delattre

Hi,

I've been able to make pygame-ctypes works with SDL.dll and 
SDL_Image.dll built from "unofficial" wince project files of SDL, with 
very minimal changes.


I'm keen to package this and make it public, but you must note this is 
very experimental and  is a bit slow. The constraints explained by 
Christopher, especially regarding current directory support, applies 
here too.


I did not manage to compile the C version with evc++4 but I'd like to 
give a try later with cegcc, unfortunately I do not have the time for 
this yet.


Also, before rushing in compilation, it may be interesting to benchmark 
pygame and pygame-ctypes on desktop to evaluate if there would be a 
really speed gain in using a compiled version.


As pygame is mostly a wrapper around SDL, I found it hard to evaluate 
the overhead caused by using ctypes instead of c code. A benchmark would 
help us to see clearer.


Regards,
Alexandre
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Alexandre Delattre

Hello,

I'm doubting the problem comes from the processor type, as you were able to
run the Python 2.2 port which is also compiled for arm. Unfortunately 
CeGCC support only arm platform yet (the two cross-compilation targets 
available are arm-wince-cegcc and arm-wince-mingw32) so I'm afraid it 
wouldn't be of any help if arm code wasn't compatible with xscale 
processor (which I'm doubting).


I'm suspecting more there is another constraint specified in the .inf 
file used to create the PythonCE cab that prevent installing on your 
device, but I don't see now what it could be exactly.


I suggest you to try to make a "hand-made" install by copying the 
\Program Files\Python 25\ dir from another install to your device and 
see if you could run python.exe.


Hope it helps,
Alexandre
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Alex Mandel
The confusion about activesync is that if the program had been compiled 
for multiple architectures then the processor specific cabs would all be 
inside the exe installer and activesync would select the appropriate one 
for the particular device. It sounds like you're going to need to figure 
out a way to compile for the Xscale without the use of Visual Studio.


As Jared suggested in another thread, try http://cegcc.sourceforge.net/ 
or maybe http://www.ronetix.at/software.html


I'm not sure on the difference between ARM and XScale but maybe VS left 
out something your specific devices need that isn't on other devices.


Alex

Lachezar Dobrev wrote:

  Well...

  First thanks for the Active Sync explanation. Reading the mailing
list archives I was left with the impression, that Active Sync was
actually translating the application for the architecture of the
connected device.
  So I found a friend, tricked him into installing Active Sync, and
trying to install the .EXE distribution files. Both the ARM and the
SmartPhone versions failed to install with a similar message.

  Another thing I am not grasping is the difference between ARM,
StrongARM and XScale. Probably wrong, but I thought XScale was
backwards compatible with the ARM processors, however a quick tour
around the Wikipedia hints otherwise...

  Pardon my bluntness, but until recently I had Java on every platform
I had in mind...
  Can someone compile a Python version for an XScale processor? How
does this work? Do I need a Windows host? Is the Python CE compilable
with a GNU toolkit set?

  Like I've said Windows based development is a No-No for us.

2008/7/28, Jared Forsyth <[EMAIL PROTECTED]>:

Firstly, the Active Sync method merely automates the copy .CAB/install
process--you're not missing out in anything.
The only problem I can thing of is that of your processor: your device runs
XSale, while I believe the .CABs are compiled for ARM



___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Adam Walley
One more word on the ASync - you are right that it does modify certain files
when they are transfered, but not all. I have not tested this properly, but
I believe that AS will recognise certain files (especially media) and
convert them to work on within the limitations of the PPC device (e.g. lower
resolution, etc...).

I believe there are a number of options as far as cross-compiling from Linux
to a WinCE target. I have used PellesC (with Wine), but I am also
investigating the use of ceGCC (on Jared's advice). I think ceGCC will be
more likely to work for XScale targets. Cross-compiling would avoid the need
to have a Windows host.

Adam

2008/7/28 Lachezar Dobrev <[EMAIL PROTECTED]>

>  Well...
>
>  First thanks for the Active Sync explanation. Reading the mailing
> list archives I was left with the impression, that Active Sync was
> actually translating the application for the architecture of the
> connected device.
>  So I found a friend, tricked him into installing Active Sync, and
> trying to install the .EXE distribution files. Both the ARM and the
> SmartPhone versions failed to install with a similar message.
>
>  Another thing I am not grasping is the difference between ARM,
> StrongARM and XScale. Probably wrong, but I thought XScale was
> backwards compatible with the ARM processors, however a quick tour
> around the Wikipedia hints otherwise...
>
>  Pardon my bluntness, but until recently I had Java on every platform
> I had in mind...
>  Can someone compile a Python version for an XScale processor? How
> does this work? Do I need a Windows host? Is the Python CE compilable
> with a GNU toolkit set?
>
>  Like I've said Windows based development is a No-No for us.
>
> 2008/7/28, Jared Forsyth <[EMAIL PROTECTED]>:
> > Firstly, the Active Sync method merely automates the copy .CAB/install
> > process--you're not missing out in anything.
> > The only problem I can thing of is that of your processor: your device
> runs
> > XSale, while I believe the .CABs are compiled for ARM
> ___
> PythonCE mailing list
> PythonCE@python.org
> http://mail.python.org/mailman/listinfo/pythonce
>
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Adam Walley
Hi, Lachezar.

I would agree with Jared. Not having used any XScale devices, I do not have
what you might call hard evidence, but a quick Google for ARM and XScale
lead me to the MSDN website, which seems to confirm that compiling for
XScale is a specific target (and would therefore suggest that ARM compiled
packages may not work).

My iPAQ uses WM5 v5.1.1702 and happily runs PythonCE 2.5.

One other thought is to try to update your operating system on the XScale
device as much as possible and then re-try the PythonCE install package
(maybe there are some compatibility settings you can enable/disable in the
OS?).

Adam


2008/7/28 Jared Forsyth <[EMAIL PROTECTED]>

> Firstly, the Active Sync method merely automates the copy .CAB/install
> process--you're not missing out in anything.
> The only problem I can thing of is that of your processor: your device runs
> XSale, while I believe the .CABs are compiled for ARM
>
>
> On Mon, Jul 28, 2008 at 4:27 AM, Lachezar Dobrev <[EMAIL PROTECTED]>wrote:
>
>>  * Apologies for the resending, the first message did not go through. *
>>
>>  Hello list members.
>>  Recently our project (Java based) grew into the mobile devices range.
>>  However the devices had a serious flaw (for us): the Windows CE
>> operating system.
>>  For some time we were able to develop based in the Pocket IE
>> available on the device and use an AJAX+Server-Side approach to do our
>> work.
>>
>>  Recently we hit some use cases where this approach would not work,
>> or would need serious development in order to provide the needed
>> interaction requirements.
>>
>>  We could not find a Java VM to suit our needs, and development using
>> Microsoft's development frame is a No-No for us.
>>
>>  That is why I undertook the challenge to evaluate Python based
>> development.
>>
>>  Here I took my first blow... The files on the SourceForge site did
>> not install on the device.
>>  The device is: http://www.mobilecompia.co.kr/en/sub01/sub01_1.php
>>  It features Windows CE 5.0 on an Intel XScale PXA processor with a
>> number of crucial features for our application (WLAN, WWAN, Barcode
>> scanner).
>>
>>  Since we are working with Linux/BSD workstations I was unable to try
>> the Active Sync method, and was forced to download the CAB files,
>> however when trying to install the application I get a 'Setup Failed'
>> message:
>>
>> >  The application cannot run on this device type.
>> >  Please install the application specific to this device type.
>>
>>  This is with both CAB files:
>>  PythonCE-25-20061219.PPC2003_ARM.CAB
>>   and
>>  PythonCE.WM.CAB
>>
>>  I tried also the 'Pocket PC Python' from
>> http://www.murkworks.com/Research/Python/PocketPCPython/Overview
>>  That WORKS! But since it's Python 2.2 the GUI toolkits refuse to
>> work (no annotations?).
>>
>>  Can you please advise further?
>> ___
>> PythonCE mailing list
>> PythonCE@python.org
>> http://mail.python.org/mailman/listinfo/pythonce
>>
>
>
> ___
> PythonCE mailing list
> PythonCE@python.org
> http://mail.python.org/mailman/listinfo/pythonce
>
>
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Lachezar Dobrev
  Well...

  First thanks for the Active Sync explanation. Reading the mailing
list archives I was left with the impression, that Active Sync was
actually translating the application for the architecture of the
connected device.
  So I found a friend, tricked him into installing Active Sync, and
trying to install the .EXE distribution files. Both the ARM and the
SmartPhone versions failed to install with a similar message.

  Another thing I am not grasping is the difference between ARM,
StrongARM and XScale. Probably wrong, but I thought XScale was
backwards compatible with the ARM processors, however a quick tour
around the Wikipedia hints otherwise...

  Pardon my bluntness, but until recently I had Java on every platform
I had in mind...
  Can someone compile a Python version for an XScale processor? How
does this work? Do I need a Windows host? Is the Python CE compilable
with a GNU toolkit set?

  Like I've said Windows based development is a No-No for us.

2008/7/28, Jared Forsyth <[EMAIL PROTECTED]>:
> Firstly, the Active Sync method merely automates the copy .CAB/install
> process--you're not missing out in anything.
> The only problem I can thing of is that of your processor: your device runs
> XSale, while I believe the .CABs are compiled for ARM
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Jared Forsyth
Firstly, the Active Sync method merely automates the copy .CAB/install
process--you're not missing out in anything.
The only problem I can thing of is that of your processor: your device runs
XSale, while I believe the .CABs are compiled for ARM

On Mon, Jul 28, 2008 at 4:27 AM, Lachezar Dobrev <[EMAIL PROTECTED]> wrote:

>  * Apologies for the resending, the first message did not go through. *
>
>  Hello list members.
>  Recently our project (Java based) grew into the mobile devices range.
>  However the devices had a serious flaw (for us): the Windows CE
> operating system.
>  For some time we were able to develop based in the Pocket IE
> available on the device and use an AJAX+Server-Side approach to do our
> work.
>
>  Recently we hit some use cases where this approach would not work,
> or would need serious development in order to provide the needed
> interaction requirements.
>
>  We could not find a Java VM to suit our needs, and development using
> Microsoft's development frame is a No-No for us.
>
>  That is why I undertook the challenge to evaluate Python based
> development.
>
>  Here I took my first blow... The files on the SourceForge site did
> not install on the device.
>  The device is: http://www.mobilecompia.co.kr/en/sub01/sub01_1.php
>  It features Windows CE 5.0 on an Intel XScale PXA processor with a
> number of crucial features for our application (WLAN, WWAN, Barcode
> scanner).
>
>  Since we are working with Linux/BSD workstations I was unable to try
> the Active Sync method, and was forced to download the CAB files,
> however when trying to install the application I get a 'Setup Failed'
> message:
>
> >  The application cannot run on this device type.
> >  Please install the application specific to this device type.
>
>  This is with both CAB files:
>  PythonCE-25-20061219.PPC2003_ARM.CAB
>   and
>  PythonCE.WM.CAB
>
>  I tried also the 'Pocket PC Python' from
> http://www.murkworks.com/Research/Python/PocketPCPython/Overview
>  That WORKS! But since it's Python 2.2 the GUI toolkits refuse to
> work (no annotations?).
>
>  Can you please advise further?
> ___
> PythonCE mailing list
> PythonCE@python.org
> http://mail.python.org/mailman/listinfo/pythonce
>
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


[PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Lachezar Dobrev
  * Apologies for the resending, the first message did not go through. *

  Hello list members.
  Recently our project (Java based) grew into the mobile devices range.
  However the devices had a serious flaw (for us): the Windows CE
operating system.
  For some time we were able to develop based in the Pocket IE
available on the device and use an AJAX+Server-Side approach to do our
work.

  Recently we hit some use cases where this approach would not work,
or would need serious development in order to provide the needed
interaction requirements.

  We could not find a Java VM to suit our needs, and development using
Microsoft's development frame is a No-No for us.

  That is why I undertook the challenge to evaluate Python based development.

  Here I took my first blow... The files on the SourceForge site did
not install on the device.
  The device is: http://www.mobilecompia.co.kr/en/sub01/sub01_1.php
  It features Windows CE 5.0 on an Intel XScale PXA processor with a
number of crucial features for our application (WLAN, WWAN, Barcode
scanner).

  Since we are working with Linux/BSD workstations I was unable to try
the Active Sync method, and was forced to download the CAB files,
however when trying to install the application I get a 'Setup Failed'
message:

>  The application cannot run on this device type.
>  Please install the application specific to this device type.

  This is with both CAB files:
  PythonCE-25-20061219.PPC2003_ARM.CAB
   and
  PythonCE.WM.CAB

  I tried also the 'Pocket PC Python' from
http://www.murkworks.com/Research/Python/PocketPCPython/Overview
  That WORKS! But since it's Python 2.2 the GUI toolkits refuse to
work (no annotations?).

  Can you please advise further?
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce